/* ================= Algemene Stijlen ================= */
.color-body {
    background-color: black;
    color: white;
}

body {
    padding-top: 60px; /* Zorg ervoor dat de navbar geen content bedekt */
    background-color: #000000;
}

/* ================= Navbar ================= */
.navbar {
    background-color: #000000;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: white !important;
    margin-right: 15px;
}

.nav-link:hover {
    color: #e50914 !important;
}

.btn-login {
    background-color: #e50914;
    color: white;
    border-radius: 5px;
    padding: 5px 15px;
    text-decoration: none;
}

.btn-login:hover {
    background-color: #b20710;
}

#searchInput::placeholder {
    color: white !important;
    opacity: 1;
}

input:focus::placeholder {
    color: transparent;
}

/* ================= Film Container ================= */
.film-container {
    position: relative;
    overflow: hidden;
    width: 95%;
    margin-left: 5%;
    margin-top: auto;
    margin-bottom: auto;
}

.film-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
    white-space: nowrap;
}

.film-row::-webkit-scrollbar {
    display: none;
}

.film-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 50px; /* Pas aan voor een bredere fade */
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none; /* Zodat het geen interactie blokkeert */
}

.film {
    min-width: 200px;
    height: 300px;
    max-width: 300px;
    background-color: #444;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.film img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film p {
    visibility: hidden;
    width: 0;
}

.plswerk {
    visibility: hidden;
    margin-bottom: 125px;
}

/* ================= Scroll Knoppen ================= */
.scroll-button {
    position: absolute;
    top: 63%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* ================= Carousel Fade Effects ================= */
.carousel {
    position: relative;
}

.carousel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, black 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 100%);
    pointer-events: none;
    z-index: 2;
}

#filmContainers {
    position: relative;
    margin-top: -100px;
    z-index: 2;
}

/* ================= Overlay en Play Button ================= */
.overlay-image {
    position: absolute;
    top: 50%;
    left: 22%;
    transform: translate(-50%, -50%);
    width: 40%;
    z-index: 10;
    transition: opacity 0.5s ease-in-out;
}

.play-button {
    position: absolute;
    bottom: 22%;
    left: 10%;
    transform: translateX(-50%);
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: background 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.806);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .film {
        min-width: 160px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .film {
        min-width: 120px;
        height: 200px;
        font-size: 14px;
    }
    .navbar-nav {
        text-align: center;
    }
    .film-container {
        width: 100%;
        padding: 0 10px;
    }
    .carousel img {
        height: 250px;
        object-fit: cover;
    }
    .overlay-image {
        width: 30%;
        max-width: 120px;
    }
    .play-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .body{
        max-width: 380px;
    }
    .film {
        min-width: 250px;
        height: 140px;
        font-size: 10px;
    }
    .navbar {
        width: 100%;
        
    }

    .carousel {
        display: none;
    }
    .carousel img {
        visibility: hidden;
        
    }
    .overlay-image {
        max-width: 20%;
        top: 25%;
        left: 22%;
        visibility: hidden;
    }
    .play-button {
        font-size: 0.8rem;
        padding: 6px 12px;
        visibility: hidden;
    }
    .plswerk {
        visibility: visible;
        width: 90%;
        height: auto;
        display: block;
        margin-right:5%;
    }
    .plswerk img {
        width: 100%;
        margin-left:5%;
        height: auto;
    }
}


@media (min-width: 481px) {
.plswerk {
    display: none;
}
}