/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('../main-background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
/* Header */
header {
    background-color: #222;
    color: white;
    padding: 20px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    font-family: Arial, sans-serif;
    background-color: transparent;
    color: black;
    display: flex;
    flex-direction: column;
    background-image: url('../main-background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

/* General Styling */
nav {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
  }
  
  nav a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
  }
  
  nav a:hover {
    background-color: #555;
  }
  
 /* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    background-color: #333;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: white;
    padding: 15px 20px;
    display: block;
    text-decoration: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.nav_menu {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 90px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown .nav_menu {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 90px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .nav_menu {
    display: block;
}
.navbar ul li a:hover {
    background-color: #444;
}


/* Search Bar */
.search-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 20px;
    padding-right: 133px;
}

.search-bar {
    width: 300px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    outline: none;
    text-align: center;
    background-color: #444;
    color: white;
    transition: 0.3s ease-in-out;
}

.search-bar::placeholder {
    color: #ccc;
}

.search-bar:focus::placeholder {
    color: transparent;
}

/* Right Side - Login, Signup, Cart */
.user-actions {
    display: flex;
    align-items: center;
}

#logged-out-actions, #logged-in-actions {
    display: flex;
    align-items: center;
}

#logged-in-actions {
    display: none; /* Initially hidden */
}
.user-actions .btn {
    text-decoration: none;
    color: white;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 10px;
    transition: 0.3s;
}

.user-actions .btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Cart */
.cart {
    margin-left: 15px;
    font-size: 18px;
    position: relative;
}

.cart a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

/* Main Content */
main {
    flex: 1;
    padding: 20px;
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 15px;
    margin-top: 20px;
}

.curved-image {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

footer {
    background-color: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-column p {
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ff4c4c;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ff4c4c;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 20px;
    font-size: 14px;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    color: white;
}

p {
    color: #555;
    line-height: 1.6;
}

.faq-section {
    margin-top: 40px;
    padding: 40px 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    background-color: white;
    border-radius: 10px
}

.faq-item h3 {
    color: #007bff;
    margin-bottom: 10px;
    text-align: center;
}

.faq-item p {
    color: #666;
    text-align: center;
}

.footer-container{
    color: white;
}

#userName {
    color: white; /* Set the text color to white */
    font-size: 16px; /* Adjust font size if needed */
    margin-right: 10px; /* Add some spacing between the name and the logout button */
    font-weight: bold; /* Optional: Make the text bold */
}

/* Updated responsive adjustments */
@media screen and (max-width: 1400px) {
    .carousel-container {
        max-width: 90%;
        aspect-ratio: 16 / 9;
    }
}

@media screen and (max-width: 768px) {
    .carousel-container {
        max-width: 95%;
        aspect-ratio: 16 / 8; /* Slightly different aspect ratio for tablets */
    }
}

@media screen and (max-width: 480px) {
    .carousel-container {
        max-width: 98%;
        aspect-ratio: 16 / 7; /* More compact for mobile */
    }
    
    .carousel-button {
        padding: 0.5rem; /* Smaller buttons on mobile */
        font-size: 1rem;
    }
}

/* Responsive navbar adjustments for screen widths below 1100px */
@media screen and (max-width: 1100px) {
    /* Adjust the navbar to be more compact */
    .navbar {
        padding: 5px 10px;
    }
    
    /* Make the search bar smaller */
    .search-container {
        padding-right: 0;
        margin: 0 10px;
    }
    
    .search-bar {
        width: 200px;
    }
    
    /* Adjust spacing of user actions */
    .user-actions .btn {
        padding: 6px 10px;
        font-size: 14px;
        margin-left: 5px;
    }
    
    /* Make the username display smaller */
    #userName {
        font-size: 14px;
        margin-right: 5px;
    }
    
    /* Adjust the logout button */
    #logout {
        padding: 6px 10px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    /* Adjust the cart styling */
    .cart {
        margin-left: 5px;
    }
}

/* For even smaller screens */
@media screen and (max-width: 800px) {
    /* Stack the navbar components vertically if needed */
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .navbar ul {
        margin-bottom: 10px;
    }
    
    .search-container {
        width: 100%;
        margin: 10px 0;
    }
    
    .search-bar {
        width: 90%;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}