/* Basic Reset and Setup */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('images/ocean.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Carousel Container */
.carousel-container {
    width: 80%; /* Adjust as needed */
    max-width: 900px; /* Max size for the carousel */
    position: relative;
    overflow: hidden; /* **Crucial:** Hides images outside the current view */
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    border-radius: 8px;
    }

/* Carousel Track (Holds all images) */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth slide effect */
}

/* Individual Carousel Item (Image Container) */
.carousel-item {
    min-width: 100%; /* **Crucial:** Ensures each item takes up the full container width */
    flex-shrink: 0; /* Prevents items from shrinking */
    height: 500px; /* Set a fixed height for the carousel */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333; /* Fallback background color */
}

/* Image Styling */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container without distortion */
    display: block;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-button:hover {
    opacity: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}