
/* Carousel Container */
.carousel-container {
    background-image: linear-gradient(to bottom, rgba(255,192,106,255), rgba(114,77,65,255)), 
                      url('../images/tropical-resort.jpg'); /* Same vibrant tropical image */
    background-size: cover;
    background-position: center;
    padding: 60px 20px; /* Same padding for consistent spacing */
    color: #fff;
    position: relative;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4); /* Enhanced shadow for depth */
    font-family: 'Great Vibes', cursive; /* Consistent elegant font */
    border-bottom: 6px solid #FFD700; /* Bold golden border like the header */
    animation: background-fade-in 2s ease-in-out; /* Smooth entrance animation */
    height: auto; /* Adjust to content */
    display: flex;
    flex-wrap: wrap; /* Allow stacking on smaller screens */
    justify-content: center;
    align-items: center;
    gap: 20px; /* Adds spacing between elements */
    height: 100vh;
}

/* Carousel Styling */
.carousel {
    position: relative;
    width: 60%;
    max-width: 800px;
    height: 80%;
    perspective: 1000px; /* Enables 3D effect */
    margin: auto;
    overflow: hidden;
    z-index: 9;
}

/* Images inside the carousel */
.carousel-images {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel img {
    position: absolute;
    width: 60%; /* Adjust the size of the main image */
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    transform-origin: center center;
    backface-visibility: hidden; /* Improves the 3D effect */
}

/* Active, previous, next images */
.carousel img.active {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 3; /* Bring to the front */
}

.carousel img.prev {
    transform: translateX(-100%) scale(0.8) rotateY(30deg);
    opacity: 0.7;
    z-index: 2;
}

.carousel img.next {
    transform: translateX(100%) scale(0.8) rotateY(-30deg);
    opacity: 0.7;
    z-index: 2;
}

.carousel img.hidden {
    transform: translateX(0) scale(0.5);
    opacity: 0;
    z-index: 1;
}

/* Navigation Controls */
.controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Control Buttons */
.control {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 5;
    pointer-events: all;
    transition: background 0.3s ease;
}

.control:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Description Box */
#DescriptionContainer {
    visibility: collapse;
}

/* ---- RESPONSIVENESS ---- */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .carousel-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        overflow-y: auto;
    }

    .carousel {
        width: 70%; /* Make the carousel slightly larger */
        height: 85%;
        margin: 0;
    }

    .controls {
        width: 90%; /* Ensure controls stay inside the viewport */
    }
    .control{
        margin-right: -68px;
    }
}

/* Mobiele telefoons (max-width: 600px) */
@media (max-width: 600px) {
    .carousel-container {
        flex-direction: column;
        padding: 20px 10px;
        overflow-y: auto;
        display: block;
    }

    .carousel {
        width: 90%; /* Full width on small screens */
        height: 90%;
        margin: 15px;
    }
    .carousel img.active {
        height: 75%;
    }

    /* Knoppen groter maken voor mobiel */
    .control {
        font-size: 2rem;
        padding: 0.7rem;
        margin-right: -35px
    }

    /* Hover-effect uitgeschakeld op mobiel */
    .control:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}
@media (max-height: 380px) {
    footer{
        visibility: collapse;
    }
    .carousel{
        height: 100%;
    }
    .carousel-container {
        padding: 0px 0px 10px 75px;
    }
    .control {
        margin-right: -50px;
    }
}