/* General Body Styles */
body {
    background-color: #f8f9fa;
    color: #343a40;
    font-family: Arial, sans-serif;
}

/* Main Container Styling */
.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Heading Styles */
h2 {
    text-align: center;
    color: #6f4c3e;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.8rem;
}

/* Form Styles */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #6f4c3e;
    border-radius: 5px;
    background-color: #fdfcfb;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    border-color: #8c5a47;
    outline: none;
    box-shadow: 0 0 5px rgba(111, 76, 62, 0.2);
}

/* Button Styles */
.btn-primary {
    background-color: #6f4c3e;
    border-color: #6f4c3e;
    margin-top: 10px;
    width: 100%;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #8c5a47;
    border-color: #8c5a47;
}

.btn-secondary {
    background-color: #b19b7a;
    border-color: #b19b7a;
    padding: 10px;
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5eb95e;
    border-color: #5eb95e;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #3b2a22;
    color: #ffffff;
}

/* Navbar and Link Hover Effects */
.navbar {
    background-color: #6f4c3e !important;
}

.navbar .nav-link {
    color: #ffffff !important;
}

.navbar .nav-link:hover {
    color: #5eb95e !important;
}

/* Success and Error Messages */
.alert-success,
.alert-error {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Image Styling */
img {
    max-width: 100%;
    height: auto;
}

/* Carousel Frame Styling (75% width) */
.carousel-container {
    width: 75%;
    margin: 0 auto;
    border: 2px solid #6f4c3e;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: #ffffff;
}

/* Carousel Item Styling */
.carousel-item {
    position: relative;
    color: #ffffff;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 1%;
}

/* Background Color and Styling for Caption */
.carousel-caption {
    background-color: rgba(111, 76, 62, 0.8); /* The brown color for the caption background */
    color: #ffffff; /* White text color */
    padding: 10px 15px; /* Adds slight padding */
    border-radius: 5px; /* Rounded corners */
}

/* Optional: Caption Text Styling for Better Readability */
.carousel-caption p .carousel-caption h3 {
    color: #f9f9f9; /* Slightly off-white for softer readability */
}

/* Carousel Item Height for Smaller Screens */
@media (max-width: 768px) {
    .carousel-item img {
        height: 400px;
    }

    .carousel-container {
        width: 90%;
    }
}
