/* main hero that comes back almost always */
main .hero-image {
    height: 30vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.527); /* Lichte overlay */
    background-blend-mode: lighten;
}

main .hero-image h1{
    margin-top: 15vh;
}

/* general styles that should be loaded on all www pages */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: -100px;
    z-index: 1000;
}

.main-navbar {
    background-color: #F8F9FA ;
    padding: 7px;
    border-radius: 5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 990px;
}

/* button to show admin button */
.dev-admin-link {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    z-index: 9999;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* hero */

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-weight: 600;
}

.hero-text h2 {
    font-weight: 400;
    color: #4A4A4A; /* Gray-500 */
    font-size: 1.5rem; /* Text-lg */
}

.navbar-brand {
    padding: 0px !important;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 100px; /* Adjust as needed for logo size */
    max-height: 100%;
}

.nav-link {
    color: #1E1E1E;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 15px;
}

.nav-link i {
    margin-right: 5px;
}

.nav-link:hover {
    background-color: #1D4ED8 ;
    color: #fff;
    text-decoration: none;
}

/* footer */
footer {
    border-top: 1px solid #ddd;
    background-color: #F8F9FA;
    display: flex;
    justify-content: space-around;
    padding: 50px;
}

footer .right,
footer .middle,
footer .left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer .left {
    align-items: center;
}

footer .middle {
    align-items: center;
}

footer .right {
    align-items: center;
}

footer .left a,
footer .middle a,
footer .right a {
    color: #1E1E1E;
    text-decoration: none;
}

footer .left h3, footer .middle h3, footer .right h3 {
    color: #1E1E1E;
}


/* 404 page */
 .page-not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
 }

 /* search */
 /* Hamburger menu styles */
.hamburger-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* Animatie voor de transformatie */
}

.hamburger-icon .bar {
    width: 30px;
    margin-right: 10px;
    height: 4px;
    background-color: #1D4ED8; /* Kleur van de hamburger icon */
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Transformatie voor de bars */
}

/* Wanneer het menu open is, transformeer de hamburger naar een kruis */
.hamburger-icon.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger-icon.open .bar:nth-child(2) {
    opacity: 0; /* Verberg de middelste bar */
}

.hamburger-icon.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* De navbar die standaard zichtbaar is op desktop */
.navbar-links {
    display: flex; /* Standaard is het menu zichtbaar voor desktop */
    flex-direction: row; /* Horizontaal op desktop */
    gap: 20px;
    align-items: center;
}

/* Het menu wordt standaard verborgen op mobiel */
.navbar-links.mobile {
    display: none; /* Verberg het menu standaard voor mobiel */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Dit is de ruimte boven de header */
    left: 0;
    background-color: #2563EB;
    width: 100%;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-100%); /* Begin buiten het scherm */
    transition: transform 0.3s ease-out, max-height 0.3s ease-out; /* Animatie voor het uitschuiven */
}

/* Wanneer het menu geopend wordt op mobiel */
.navbar-links.open {
    display: flex; /* Toon het menu als het geopend is */
    transform: translateY(0); /* Het menu schuift naar beneden */
    max-height: 500px; /* Maximale hoogte voor het menu */
}

/* start search module */
.search-form {
    display: flex;
    
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #ccc;
    outline: none;
    flex: 1;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #2563EB;
    background-color: white;
    color: #2563EB;
    cursor: pointer;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    transition: 0.3s ease;
}

.search-button:hover {
    background-color: #2563EB;
    color: white;
}

/* set the max width */
.main-container {
    width: 990px;
    margin: 0 auto;
}

.popular-events {
    margin-top: 50px;
}

/* mobile */
@media screen and (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem; /* Verklein de titel voor mobiel */
    }
    
    .main-navbar {
        width: 97%;
    }

    .nav-link {
        padding: 7px 8px;
        font-size: 12px;
        margin: 5px;
    }

    .search-bar form .search-input {
        display: none;
    }

    .search-bar .search-button {
        padding: 10px 10px;
        border: 1px solid #2563EB;
        border-radius: 50%;
    }

    .navbar-links {
        display: none; /* Verberg het menu standaard op mobiel */
        flex-direction: column; /* Verticale weergave op mobiel */
        gap: 15px; /* Verminder de verticale ruimte tussen de items */
    }
    
    .navbar-links.open {
        display: flex; /* Toon het menu als het geopend is */
        transform: translateY(0); /* Het menu komt naar beneden */
        max-height: 300px; /* Geef een maximale hoogte voor het menu */
        margin-top: 200px;
    }

    .hamburger-icon {
        display: flex; /* Toon de hamburger knop */
        color: #1D4ED8; /* Kleur van de hamburger icon */
    }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 20px;
    }

    .event-detail-grid {
        width: 95%;
    }

    .meta-content {
        width: 100%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .event-description-content {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    .hide-mobile {
        display: none !important;
    }

    .dynamic-time-element {
        font-size: 1.8rem !important;
    }

    .dynamic-time-text {
        font-size: 1.2rem !important;
        margin: 0px 5px !important;
    }

    .main-container {
        width: 100%;
        padding: 0 20px; /* Voeg wat padding toe aan de zijkanten */
    }
}