/* Basic CSS for index.html with red background and white text */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff; /* Set to white or any neutral color */
    background-image: none; /* Remove any background image */
    color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}
* {
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}
/* Ensure content is responsive */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile-first design */
h1, h2, h3 {
    margin: 0 0 15px;
    text-align: left;
}
p {
    text-align: left; /* Align text to the left */
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1.2rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1.5rem;
    }
}

/* Navigation Menu */
header nav {
    display: flex;
    justify-content: center; /* Center the entire menu horizontally */
    align-items: center; /* Vertically align items */
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header nav .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center; /* Center the menu items */
    align-items: center; /* Vertically align items */
    gap: 20px; /* Add spacing between menu items */
}

header nav .menu li {
    display: flex;
    align-items: center;
}

header nav .menu li a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    padding: 10px 15px; /* Add padding for spacing */
    transition: background-color 0.3s ease; /* Smooth hover effect */
    border-radius: 8px; /* Rounded corners */
}

header nav .menu li a:hover {
    background-color: #ff0000; /* Red background on hover */
    color: #fff; /* White text on hover */
    border-radius: 8px; /* Rounded corners */
}

header nav .menu .logo img {
    max-height: 40px; /* Shrink the logo */
    width: auto; /* Maintain aspect ratio */
}
header nav .menu .logo a:hover {
    text-decoration: none; /* Remove underline on hover */
    background-color: white; /* White background on hover */
}

header nav .hamburger {
    display: none; /* Hide the hamburger button by default */
}

header nav .mobile-header {
    display: none; /* Hide the mobile header by default */
    font-size: 24px; /* Adjust font size for mobile header */
    color: #000; /* Text color for mobile header */
    padding: 10px; /* Add padding for spacing */
    cursor: pointer; /* Change cursor to pointer */
}

/* Mobile Styles */
@media (max-width: 768px) {
    header nav {
        justify-content: space-between; /* Space out the hamburger and menu */
    }

    header nav .menu {
        display: none; /* Hide the menu by default */
        flex-direction: column; /* Stack menu items vertically */
        position: fixed; /* Fix position to the top */
        top: 60px; /* Position below the navigation bar */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000; /* Ensure the menu is always on top */
    }

    header nav .menu.active {
        display: flex; /* Show the menu when active */
    }

    header nav .menu li {
        margin: 10px 0; /* Add spacing between menu items */
        text-align: center;
    }
    header nav .mobile-header {
        display: block; /* Show the mobile header */
        height: 60px; /* Set height for the mobile header */
        width: auto; /* maintain aspect ratio */
        background-color: #fff; /* White background for the mobile header */
        justify-content: center; /* Center the mobile header content */
    }

    /* hide home in menu */
    header nav .menu li.logo {
        display: none; /* Hide the home link in the menu */
    }

    header nav .hamburger {
        display: block; /* Show the hamburger button */
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100; /* Ensure it appears above the menu */
        position: fixed ; /* Fix position to the top right */
        top: 20px; /* Position at the top */
        right: 20px; /* Position to the right */
    }
}

/* Style for the white box with a faint background image */
.content-box {
    background-color: #fff; /* Dark background for the content */
    color: #111; /* White text color */
    /* border: 5px solid #ff0000; /* Red border */
    /* Old colour scheme on next two lines */
    /* color: #000; */
    /* background-color: #fff; /* White background for the content */
    /*border: 5px solid #ff0000; /* Red border - removed to not have red frame */
    width: 80%; /* Set the width to 80% of the container */
    margin: 20px auto; /* Center horizontally and add top/bottom margin */
    padding: 30px; /* Add padding inside the box */
    box-shadow: 0 15px 10px rgb(250, 1, 1); /* Optional: Add a subtle shadow */
    text-align: left; /* Left-align the text */
    position: relative; /* Create a stacking context for the background image */
    overflow: hidden; /* Ensure the background image doesn't overflow */
    opacity: 1; /* Make the content box fully opaque */
    z-index: 1; /* Ensure the content box is above the background image */
    border-radius: 10px; /* Optional: Add rounded corners */
}

.content-box::before {
    content: ''; /* Add a pseudo-element for the background image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Watssapp1.jpg'); /* Path to your image */
    background-size: cover; /* Cover the entire box */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent image repetition */
    opacity: 0.15; /* Make the image faint */
    z-index: -1; /* Place the image behind the content */
}

/* Content box without a background image */
.content-box.no-background {
    background-color: #fff; /* Dark background for the content */
    color: #111; /* White text color */
    box-shadow: 0 15px 10px rgb(250, 1, 1); /* Optional: Add a subtle shadow */
    /* Next two lines commented out to inherit backgfround and colour from parent */
    /* background-color: #fff; /* White background for the content */
    /* border: 5px solid #ff0000; /* Red border */
    width: 80%; /* Set the width to 80% of the container */
    margin: 20px auto; /* Center horizontally and add top/bottom margin */
    padding: 30px; /* Add padding inside the box */
    text-align: left; /* Left-align the text */
    position: relative; /* Create a stacking context */
    overflow: hidden; /* Ensure no overflow */
}
/* Exclude the ::before pseudo-element for no-background content boxes */
.content-box.no-background::before {
    content: none; /* Disable the pseudo-element */
}

/* Style for the events list */
.events-list {
    list-style-type: decimal !important; /* Force numbers for the list items */
    padding-left: 20px; /* Add left padding for proper alignment */
    margin: 20px 0; /* Add spacing above and below the list */
    display: grid; /* Use CSS Grid for layout */
    grid-template-columns: 1fr 1fr; /* Create two equal-width columns */
    gap: 10px; /* Add spacing between items */
}

.events-list ul li {
    line-height: 1.5; /* Add spacing between lines */
    list-style-type: decimal !important; /* Force numbers for the list items */
}

/* Container for the event list */
.event-list {
    display: grid; /* Use CSS Grid for layout */
    grid-template-columns: 1fr 1fr; /* Create two equal-width columns */
    gap: 20px; /* Add spacing between the boxes */
    margin-top: 20px; /* Add spacing above the list */
}

/* Individual event items */
.event-item {
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 15px; /* Add padding inside the box */
    text-align: center; /* Center-align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    font-size: 1.25rem; /* Make the text 25% larger */
    color: #333; /* Darker text color */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.event-item:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
}

footer p {
    font-size: 8px; /* Set font size for footer text */
    text-align: center; /* Center the text */   
}

/* Contact Us Section */
.contact-boxes {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space out the boxes horizontally */
    gap: 20px; /* Add spacing between the boxes */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 20px; /* Add spacing above the boxes */
}

.contact-box {
    flex: 1; /* Make all boxes take equal space */
    min-width: 250px; /* Ensure boxes don't shrink too much */
    max-width: 30%; /* Limit the maximum width of each box */
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add padding inside the box */
    text-align: center; /* Center-align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.contact-box h3 {
    margin-bottom: 10px; /* Add spacing below the heading */
    font-size: 1.2rem; /* Adjust heading size */
    color: #333; /* Darker text color */
}

.contact-box p {
    margin: 0; /* Remove default margin */
    font-size: 1rem; /* Adjust font size */
    color: #555; /* Slightly lighter text color */
}

.contact-box a {
    color: #007BFF; /* Link color */
    text-decoration: none; /* Remove underline */
}

.contact-box a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Booking Form Grid */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Add spacing between columns */
    margin: 0 5%; /* Add 5% margin on both sides */
}

/* Form Column Styling */
.form-column {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Add spacing between form groups */
}

/* Explicit placement for each form group */

/* Left Column */ 
.booking-grid .form-group:nth-child(1) { grid-column: 1; grid-row: 1; } /* Name */
.booking-grid .form-group:nth-child(2) { grid-column: 1; grid-row: 2; } /* Email */
.booking-grid .form-group:nth-child(3) { grid-column: 1; grid-row: 3; } /* Phone */
.booking-grid .form-group:nth-child(4) { grid-column: 1; grid-row: 4; } /* Vehicle Type */

/* Middle Column */
.booking-grid .form-group:nth-child(5) { grid-column: 2; grid-row: 1; } /* Date of Hire */
.booking-grid .form-group:nth-child(6) { grid-column: 2; grid-row: 2; } /* Pickup Time */
.booking-grid .form-group:nth-child(7) { grid-column: 2; grid-row: 3; } /* Pickup Location */
.booking-grid .form-group:nth-child(8) { grid-column: 2; grid-row: 4; } /* Drop-off Address */
.booking-grid .form-group:nth-child(9) { grid-column: 2; grid-row: 5; } /* Return Trip */

/* Right Column */
.booking-grid .form-group:nth-child(10) { grid-column: 3; grid-row: 1; } /* Luggage Quantities */
.booking-grid .form-group:nth-child(11) { grid-column: 3; grid-row: 2; } /* Additional Comments */

/* Full-Width Submit Button */
.form-group.full-width {
    grid-column: 1 / -1; /* Make the submit button span all columns */
    text-align: center; /* Center-align the button */
}

.form-group {
    color: #333; /* Darker text color */
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 15px; /* Add padding inside the box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.form-group label {
    display: block; /* Ensure labels are on their own line */
    margin-bottom: 5px; /* Add spacing below labels */
    font-weight: bold; /* Make labels bold */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; /* Make inputs take full width */
    padding: 10px; /* Add padding inside inputs */
    border: 1px solid #ccc; /* Light border for inputs */
    border-radius: 4px; /* Rounded corners for inputs */
    font-size: 1rem; /* Adjust font size */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing only */
}

/* Submit Button Styling */
button[type="submit"] {
    background-color: #ff0000; /* Red background */
    color: #fff; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding */
    font-size: 1rem; /* Adjust font size */
    font-weight: bold; /* Make text bold */
    border-radius: 5px; /* Add rounded corners */
    cursor: pointer; /* Change cursor to pointer */
    width: auto; /* Let the button size adjust naturally */
}

button[type="submit"]:hover {
    background-color: #cc0000; /* Darker red on hover */
}

/* Fleet Section Grid */
.fleet-grid {
    display: grid; /* Use CSS Grid for layout */
    grid-template-columns: 1fr 1fr; /* Two columns: one for the image, one for the stats */
    gap: 20px; /* Add spacing between the columns */
    align-items: stretch; /* Stretch items to fill the grid height */
    height: auto; /* Let the height adjust based on content */
    min-height: 100vh; /* Ensure the grid takes at least the full viewport height */
    padding: 20px; /* Add padding for spacing */
}

/* Left Column: Image */
.fleet-image {
    grid-column: 1; /* Place the image in the first column */
    grid-row: 1; /* Place the image in the first row */
    position: relative; /* Ensure the image is the base layer */
}

.fleet-image img {
    width: 100%; /* Make the image responsive */
    height: 100%; /* Ensure the image fills the height of the grid */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}
/* Move the image in the adult care section to the left */
#adultcare .fleet-image {
    margin-left: -50px; /* Move the image 50px to the left */
}

/* Right Column: Statistics Boxes */
.fleet-stats {
    display: grid; /* Use CSS Grid for layout */
    grid-template-rows: repeat(auto-fit, minmax(150px, 1fr)); /* Create rows that scale */
    gap: 20px; /* Add spacing between the boxes */
    align-items: stretch; /* Stretch boxes to fill available space */
    justify-items: stretch; /* Stretch boxes horizontally */
}

/* Individual Stat Boxes */
.stat-box {
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add padding inside the box */
    text-align: center; /* Center-align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    flex: 1; /* Allow the boxes to grow and fill available space */
    margin: 10px 0; /* Add spacing between the boxes */
    display: flex; /* Use flexbox for internal alignment */
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    width: 100%; /* Make the boxes take the full width of the column */
}

/* Responsive Overlay */
@media (max-width: 768px) {
    .fleet-grid {
        grid-template-columns: 1fr; /* Switch to a single column layout */
        height: auto; /* Ensure the grid takes the full height */
    }

    .fleet-stats {
        grid-column: 1; /* Make the stats share the same column as the image */
        grid-row: 1; /* Overlay the stats on top of the image */
        position: relative; /* Overlay the stats on top of the image */
        top: 0;
        left: 0;
        width: 100%; /* Make the stats take the full width */
        height: auto; /* Make the stats take the full height */
        display: flex; /* Use flexbox for layout */
        flex-direction: column; /* Stack items vertically */
        justify-content: center; /* Center the stats vertically */
        align-items: center; /* Center the stats horizontally */
        gap: 20px; /* Add spacing between the boxes */
        padding: 20px; /* Add padding inside the overlay */
        border-radius: 8px; /* Match the image's rounded corners */
    }

    .stat-box {
        width: 80%; /* Reduce the width of the boxes */
    }

    /* Hide the fleet image on mobile */
    .fleet-image {
        display: none; /* Hide the image on mobile */
    }
}

/* Statistics Box Styling */
.stat-box {
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add padding inside the box */
    text-align: center; /* Center-align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    flex-shrink: 0; /* Prevent the boxes from shrinking */
    overflow-y: visible; /* Tuen off scrolling inside the box if content overflows */
}

.stat-box h3 {
    font-size: 2rem; /* Large number font size */
    margin: 0; /* Remove default margin */
    color: #333; /* Darker text color */
}

.stat-box p {
    font-size: 1rem; /* Adjust font size for description */
    margin: 10px 0 0; /* Add spacing above the text */
    color: #555; /* Slightly lighter text color */
}

/* Default styles for the menu (hidden by default on mobile) */
.menu {
    display: none; /* Hide the menu by default */
    flex-direction: column; /* Stack menu items vertically */
    position: absolute; /* Position the menu */
    top: 60px; /* Position below the navigation bar */
    left: 0;
    width: 100%; /* Full width */
    background-color: #fff; /* Background color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow */
    z-index: 1000; /* Ensure it appears above other elements */
}

/* Show the menu when the "active" class is added */
.menu.active {
    display: flex; /* Display the menu */
}

/* Hamburger button (visible on mobile) */
.hamburger {
    display: block; /* Show the hamburger button */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100; /* Ensure it appears above the menu */
}

/* Hide the hamburger button on larger screens */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .menu {
        display: flex; /* Show the menu by default on larger screens */
        position: static; /* Reset positioning */
        flex-direction: row; /* Align items horizontally */
        width: auto; /* Reset width */
        box-shadow: none; /* Remove shadow */
    }
}

/* Checkbox-style list */
.checkbox-list {
    list-style: none; /* Remove default bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.checkbox-list li {
    position: relative; /* Position for the custom checkbox */
    padding-left: 50px; /* Add space for the checkbox */
    margin-bottom: 10px; /* Add spacing between list items */
    font-size: 1rem; /* Adjust font size */
    line-height: 1.5; /* Improve readability */
}

.checkbox-list li::before {
    content: ''; /* Add a custom checkbox */
    position: absolute;
    left: 20px;
    top: 0.2em; /* Adjust vertical alignment */
    width: 20px;
    height: 20px;
    border: 2px solid #007BFF; /* Border color for the checkbox */
    border-radius: 4px; /* Optional: Rounded corners for the checkbox */
    background-color: #fff; /* Checkbox background color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.checkbox-list li::after {
    content: '✔'; /* Add a checkmark */
    position: absolute;
    left: 24px; /* Adjust position inside the checkbox */
    top: 0.1em; /* Adjust vertical alignment */
    font-size: 1.2rem; /* Adjust checkmark size */
    color: #007BFF; /* Checkmark color */
    opacity: 1; /* Always show the checkmark */
}

/* Home Section Background */
#home.page-section {
    background-image: url('../img/SchoolFronted.png'); /* Default image */
    transition: opacity 0.5s ease-in-out; /* Smooth fade effect */
    background-size: cover; /* Ensure the image covers the entire section */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    height: 100vh; /* Make the section fill the full viewport height */
    display: flex; /* Use flexbox for centering content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: relative; /* Ensure proper stacking context */
    color: #fff; /* Default text color for contrast */
    text-align: center; /* Center-align text */
    opacity: 1; /* Fully visible by default */
}

/* Semi-transparent image overlay for all sections except #home */
.page-section:not(#home) {
    /* make the background white */
    background-color: rgba(255, 255, 255, 0.8); /* White background with 80% opacity */
    min-height: 100vh; /* Ensure the section takes at least the full viewport height */
    width: 100%; /* Ensure the section spans the full width */
    position: relative; /* Ensure proper stacking context */
    color: #fff; /* Default text color for contrast */
}

/* Button Container */
.button-container {
    display: flex; /* Align buttons horizontally */
    gap: 20px; /* Add spacing between buttons */
    z-index: 1000; /* Ensure it appears above other elements */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px; /* Add padding for a button-like appearance */
    font-size: 1.2rem; /* Adjust font size */
    font-weight: bold;
    color: #fff; /* Button text color */
    background-color: rgba(255, 0, 0, 0.8); /* Red background with 80% opacity */
    border: none; /* Remove default border */
    border-radius: 5px; /* Add rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease, opacity 0.3s ease; /* Add hover effect */
}

/* Button Hover Effect */
.btn:hover {
    background-color: rgba(200, 0, 0, 1); /* Darker red on hover with full opacity */
    opacity: 1; /* Ensure full opacity on hover */
    color: #fff; /* Ensure text color remains white */
}

/* Hide all sections by default */
.page-section {
    display: none;
}

/* Show the active section */
.page-section.active {
    display: block;
}

/* Fleet Stats Container */
.fleet-stats {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack the boxes vertically */
    gap: 20px; /* Add spacing between the boxes */
    align-items: stretch; /* Ensure boxes stretch to fit the container width */
}

/* Individual Stat Boxes */
.stat-box {
    background-color: #f9f9f9; /* Light gray background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Add padding inside the box */
    text-align: center; /* Center-align text */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    flex: 0 1 auto; /* Allow the box to grow based on its content */
    width: 100%; /* Ensure the box takes the full width of the container */
}

/* Link Styles */
a {
    color: #add8e6; /* Very light blue */
    /* text-decoration: none; /* Remove underline */
}

a:visited {
    color: #add8e6; /* Keep the same very light blue for visited links */
}

a:hover {
    color: #2f62bf; /* Slightly darker light blue on hover */
    text-decoration: underline; /* Optional: Add underline on hover */
}

a:active {
    color: #add8e6; /* Keep the same very light blue when active */
}

/* Overlay Styles */
.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it appears above other elements */
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: #fff;
    color: #000;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 11000;
}

.overlay-content .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

#railreplacement img {
    float:right; /* Float the image to the right */
    margin: 0 0 10px 10px; /* Add margin to the left and bottom */
    width: 50%; /* Set the image width to 50% of the container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.image-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Start hidden */
    transition: opacity 0.5s ease-in-out; /* Smooth fade effect */
}

.image-layer.active {
    opacity: 1; /* Show the active layer */
    z-index: 1; /* Ensure the active layer is on top */
}