body {
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    background-color: #2c2c2c;
    z-index: 1000;
}

.navbar-brand, .nav-link {
    color: #ffffff !important;
}

.nav-link:hover {
    color: #ff4d4d !important;
}

.navbar-toggler {
    border-color: #ff4d4d;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 77, 77, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    background-color: #1a1a1a;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 56px; /* Hoogte van navbar om overlap te voorkomen */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 20px; /* Extra ruimte boven de tekst */
}

.btn-primary {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-primary:hover {
    background-color: #e04343;
    border-color: #e04343;
}

.main-container {
    display: flex;
    min-height: calc(100vh - 56px); /* Hoogte van navbar aftrekken */
    padding-top: 56px;
    padding-bottom: 60px; /* Extra ruimte voor footer */
}

.film-section, .recensie-section {
    padding: 20px;
}

.film-section {
    flex: 2;
    border-right: 1px solid #ff4d4d;
}

.recensie-section {
    flex: 1;
    background-color: #2c2c2c;
    border-radius: 10px;
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.film-poster {
    cursor: pointer;
    transition: transform 0.2s;
}

.film-poster:hover {
    transform: scale(1.05);
}

.sterren span {
    cursor: pointer;
    font-size: 24px;
    color: #ccc;
    transition: color 0.2s;
}

.sterren span:hover, .sterren span.active {
    color: #ff4d4d;
}

.recensie-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #333;
    border-radius: 5px;
}

#korting-melding {
    color: #ff4d4d;
    font-weight: bold;
    margin-top: 10px;
    display: none;
}

.vestiging-card {
    background-color: #2c2c2c;
    border: 1px solid #ff4d4d;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #ff4d4d;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    text-align: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80vh;
    margin-bottom: 20px;
}

.close {
    color: #ff4d4d;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.footer {
    background-color: #2c2c2c;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}
.sterren + .invalid-feedback {
    display: none;
}
.sterren + input:invalid + .invalid-feedback {
    display: block;
}
/* Media Queries */
@media (max-width: 767.98px) { /* Mobiel */
    .hero-section {
        height: 60vh; /* Lagere hoogte voor kleinere schermen */
    }
    .hero-content h1 {
        font-size: 2rem; /* Kleinere tekst voor mobiel */
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary {
        font-size: 1rem;
        padding: 8px 16px;
    }
    .main-container {
        flex-direction: column;
        padding-bottom: 80px; /* Meer ruimte voor footer op mobiel */
    }
    .film-section, .recensie-section {
        flex: none;
        width: 100%;
        border-right: none;
    }
    .film-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Kleinere kolommen */
        gap: 10px;
    }
    .vestiging-card {
        margin-bottom: 20px;
        border-radius: 20px; /* Ronde hoeken aanpassen voor mobiel */
    }
    .footer {
        position: static; /* Footer niet fixed op mobiel */
        margin-top: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) { /* Tablet */
    .hero-section {
        height: 70vh;
    }
    .main-container {
        padding-bottom: 70px;
    }
    .film-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .vestiging-card {
        border-radius: 30px;
    }
    .footer {
        position: static;
        margin-top: 20px;
    }
}

@media (min-width: 1024px) { /* Desktop */
    .hero-section {
        height: 80vh;
    }
    .main-container {
        padding-bottom: 60px;
    }
    .film-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .vestiging-card {
        border-radius: 40px;
    }
    .footer {
        position: static;
    }
}