/* index*/
.titel {
    text-align: center;
    margin-top: 50px;
    color: #000000;
}

.openingstekst {
    background: white;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 750px;
}

/* vestigingen */
.vestigingen {
    background: white;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: 250px;
}

/*films */
body {
    font-family: Arial, sans-serif;
    background-color: #fef9e1;
    margin: 0;
    padding: 0;
}
.container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

#filmContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.film {
    width: 250px;
    background: white;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.film img {
    width: 100%;
    border-radius: 5px;
}
.film h3 {
    margin: 10px 0 5px;
}

/* Menu */
.topnav {
    padding: 15px;
    overflow: hidden;
    text-align: center;
    font-size: 20px;
}
.topnav a {
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border-bottom: none;
}
.topnav a:hover {
    border-bottom: none;
    color: grey;
}

.topnav a.icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

/* Responsive menu */
@media screen and (max-width: 768px) {
    .topnav {
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav a {
        display: none; 
        width: 100%;
        text-align: left;
    }

    .topnav a.icon {
        display: block;
        position: absolute;
        left: 425px;
        top: 0px;
    }

    /* Als menu open is, toon alle links */
    .topnav.responsive a {
        display: block;
    }

    .topnav.responsive a.icon {
        position: absolute;
        right: 10px;
        top: 10px;
    }
}
/* Lightbox */
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.lightbox:target {
    display: flex;
}

.lightbox .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fef9e1;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.63);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    color: black;
}

.lightbox img {
    max-width: 40%;
    max-height: 400px;
    border-radius: 5px;
    margin-right: 20px;
}

.lightbox .text {
    max-width: 50%;
}

.lightbox h3 {
    margin: 0;
    font-size: 24px;
}

.lightbox p {
    margin-top: 10px;
}

/* Responsieve aanpassingen */
@media screen and (max-width: 768px) {
    .lightbox .content {
        flex-direction: column;
        text-align: center;
        max-width: 90%;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 300px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .lightbox .text {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .lightbox:target {
        flex-direction: column;
        text-align: center;
    }

    .lightbox img {
        max-width: 100%; 
        max-height: 300px; 
        margin-right: 0;
        margin-bottom: 20px;
    }

    .lightbox h3 {
        margin-top: 10px;
        font-size: 20px;
    }

    .lightbox p {
        max-width: 100%; 
    }
}

/* Close button */
.close {
    position: absolute;
    top: 15px;
    right: 45px;
    font-size: 30px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Zoekbalk */
#searchBar {
    font-size: 20px;
}

.container {
    width: 90%;
    margin: 20px auto;
    text-align: center;
}

.vestigingen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.vestiging {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 30%; 
    min-width: 250px;
    text-align: center;
}


@media screen and (max-width: 768px) {
    .vestiging {
        width: 90%;
    }
}

/* Recensies */
/* Recensiepagina stijlen */
.recensie-page {
    width: 90%;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Layout: links en rechts */
.recensie-content {
    display: flex;
    gap: 20px;
}

.recensie-left, .recensie-right {
    width: 50%;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Filmblokken */
.recensie-film {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    background: white;
    text-align: left;
}

.recensie-film img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Recensietekst en knop */
.recensie-film textarea {
    width: 100%;
    height: 50px;
    margin-top: 10px;
}

.recensie-film button {
    background: #ff5722;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

.recensie-film button:hover {
    background: #e64a19;
}

/* Sterrenbeoordeling */
.recensie-rating span {
    cursor: pointer;
    font-size: 20px;
    color: gray;
    transition: color 0.3s;
}

.recensie-rating span.selected {
    color: gold;
}

/* Recensielijst (rechterkant) */
.recensie-review {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    background: white;
    text-align: left;
}

.recensie-korting {
    display: none;
    background: #dff0d8;
    color: #3c763d;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .recensie-content {
        flex-direction: column;
    }

    .recensie-left, .recensie-right {
        width: 100%;
    }
}

#filmList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px; 
    justify-items: center; 
}

#filmList img {
    width: 100%; 
    height: auto; 
    object-fit: cover; 
    max-width: 250px; 
    max-height: 250px;
    border-radius: 8px; 
    border: 1px solid #181818;
}