/* General styles */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: white;
}

.background {
    height: 100vh;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: slideshow 30s ease-in-out infinite;
    z-index: 0; /* Keep the background element at the bottom */
}

.background::before,
.background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out; /* Smooth opacity transition */
    opacity: 0; /* Initially hidden */
}

.background::before {
    background-image: url("assets/the_cape.jpg");
}

.background::after {
    background-image: url("assets/the_burg.jpg");
}

@keyframes slideshow {
    0% {
        background-image: url("assets/the_cape.jpg");
        opacity: 1; /* Fully visible */
    }
    25% {
        background-image: url("assets/the_burg.jpg");
        opacity: 1; /* Fully visible */
    }
    50% {
        background-image: url("assets/bloem.jpeg");
        opacity: 1; /* Fully visible */
    }
    75% {
        background-image: url("assets/sun_city.jpeg");
        opacity: 1; /* Fully visible */
    }
    100% {
        background-image: url("assets/the_cape.jpg"); /* Loop back to the first image */
        opacity: 1; /* Fully visible */
    }
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 8px solid #ffde52; /* Yellow border below the title bar */
    z-index: 10; /* Navbar above the background */
    position: relative; /* Ensure the navbar is above other elements */
}

.navbar .logo img {
    height: 80px;
    width: 210px;
    margin-right: 10px;
    margin-left: 10px;
}

.navbar .menu {
    list-style: none;
    display: inline-flex;
    gap: 100px;
}

.navbar .menu li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin-right: 90px;
}

.navbar .menu li a:hover {
    color: #ffde52; /* Yellow color on hover */
}

.navbar .auth a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    margin-right: 10px;
    font-size: 14px;
}

/* Search form container styles */
.search-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 30px;
    width: 400px;
    border: 8px solid rgba(255, 222, 82, 0.8); /* Yellow border with transparency */
    z-index: 20; /* Ensure search form is above the background */
    pointer-events: all; /* Make sure it can interact with user */
}

/* Search form styles */
.search-form {
    display: flex;
    flex-direction: column;
}

.search-form .input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: white; /* White text fields */
    border-radius: 10px;
    padding: 10px;
    color: black;
}

.search-form .input-group input {
    border: none;
    outline: none;
    flex-grow: 1;
    font-size: 14px;
    padding: 5px;
}

.search-form .input-group img {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

/* Align checkbox and button */
.search-form .checkbox-button-group {
    display: flex;
    align-items: center; /* Ensures vertical alignment */
    justify-content: space-between; /* Space between checkbox and button */
    margin-top: 15px;
}

.search-form .checkbox {
    display: flex;
    align-items: center;
}

/* Checkbox styles */
.search-form .checkbox input[type="checkbox"] {
    appearance: none; /* Remove default checkbox styling */
    width: 16px;
    height: 16px;
    border: 2px solid white; /* Border color */
    border-radius: 3px; /* Slightly rounded corners */
    background-color: transparent; /* Default background */
    cursor: pointer; /* Add a pointer cursor for interactivity */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-form .checkbox input[type="checkbox"]:checked {
    background-color: #ffde52; /* Yellow background when checked */
    border-color: #ffde52; /* Optional: match the border to the background color */
}

.search-form .checkbox label {
    margin-left: 10px;
    font-size: 14px;
    cursor: pointer; /* Add pointer cursor to the label */
}

.search-form button {
    background-color: white; /* Default white color */
    border: none;
    padding: 10px;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    height: 40px; /* Consistent button size */
    width: 40px;
}

.search-form button:hover {
    background-color: #ffde52; /* Yellow color on hover */
}

.search-form button img {
    width: 20px;
    height: 20px;
}

/* === MOBILE-ONLY STYLES === */
@media screen and (max-width: 768px) {
    /* Navbar styling for mobile */
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        border-bottom: 4px solid #ffde52;
        z-index: 10;
    }

    .navbar .logo img {
        height: 70px;
        width: 180px; /* Smaller logo */
    }

    .navbar .menu {
        display: none;
        list-style: none;
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .navbar .menu li {
        margin: 10px 0;
    }

    .navbar .menu li a {
        color: white;
        text-decoration: none;
        font-weight: 700;
    }

    .navbar .auth {
        margin-top: 10px;
    }

    /* Burger Menu (hidden by default) */
    .burger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }

    .burger-menu span {
        background-color: white;
        height: 5px;
        width: 100%;
    }

    /* Search box adjustments for mobile */
    .search-section {
        background-color: rgba(0, 0, 0, 0.3);
        border: none; /* Remove border */
        box-shadow: none; /* Remove shadow */
        padding: 5px;

    }

    .search-form .input-group {
        background: transparent; /* Transparent input group */
        border-bottom: 2px solid #ffde52; /* Yellow underline */
        border-radius: 0;
        padding: 5px 0;
    }

    .search-form .input-group input {
        background: transparent;
        color: white;
        font-size: 16px;
    }

    .search-form .input-group input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .search-form .input-group img {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
    }

    .search-form .checkbox-button-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .search-form .checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .search-form .checkbox label {
        font-size: 12px;
    }

    .search-form button {
        background-color: #ffde52;
        border: none;
        padding: 10px;
        border-radius: 30%;
        cursor: pointer;
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .search-form button img {
        width: 20px;
        height: 20px;
    }

    /* Burger menu toggle */
    .navbar .burger-menu.active + .menu {
        display: flex;
    }
}
