:root{
    --background: #1a1a1a;
    --accent-color: #51a2ee;
    --accent-color2: #d59557;
    --text-color: #d5d4d4;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html{
    font-family: Playfair Display, sans-serif;
    font-size: 16px;
        scroll-behavior: smooth;
}

body{
    color: var(--text-color);
    background-color: var(--background);
}

header {
    position: sticky;
    top: 0;
    z-index: 8;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 4em;
    border-bottom: 2px solid var(--accent-color);
    background-color: var(--background)
}

nav{
    flex-grow: 1;
}

.logo {
    font-size: 2.5rem;
    padding-left: 5%;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-color);
}

.logo:hover{
    background-color: var(--background);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

nav ul li{

}

nav ul li a{
    text-align: center;
    display: block;
    text-decoration: none;
    color: var(--text-color);
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    transition: background 0.3s ease;
}

a:hover{
    cursor: pointer;
    background-color: #212121;
}

#open-sidebar-menu{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-menu{
    display: none;
    background:none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

.hero {
    margin: auto;
    position: relative;
    width: 80%;
    height: 40rem;
}

.hero-img {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1rem;
}

.bannertext {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.8rem;
    width: 100%; /* voorkomt dat het buiten de foto loopt op mobile */
    max-width: 1000px;
}

#names {
    text-align: center;
    font-size: 4rem;
}

#date {
    text-align: center;
    font-size: 2rem;
}

#cta{
    margin: 1em auto;
}

#cta button{
    padding: 0.8rem 3rem;
    font-size: 1rem;
    font-family: Playfair Display;
    background: var(--background);
    border: 1px solid var(--text-color);
    border-radius: 0.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

#cta button:hover{
    background: var(--accent-color);
}

#overlay{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

#location-wrapper {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 1.5em;
}

#location-wrapper .heading h2 {
    margin: 4em 0em 1em 0em;
    font-size: 2.3rem;
    text-decoration: underline;
}

.location {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #444;
    border-radius: 1rem;
    padding: 1.2em;
    gap: 1.5em;
    transition: border-color 0.3s ease;
}

/* Blue accent border for the second location card */
.location:nth-child(2), .location:nth-child(3), .location:nth-child(4) {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px rgba(81, 162, 238, 0.15);
}

.location .map {
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #555;
}

.location .map iframe {
    display: block;
    border-radius: 0.75rem;
    width: 260px;
    height: 200px;
}

/* Info side */
.location .location-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4em;
    flex: 1;
}

.location .location-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3em;
    color: var(--text-color);
}

.location .location-info p {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.5;
    font-family: monospace;
}

.location .location-info .time {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.2em;
}

.location .location-info .route-btn {
    margin-top: 0.8em;
    padding: 0.55rem 2.5rem;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    background: transparent;
    border: 1.5px solid var(--text-color);
    border-radius: 2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.location .location-info .route-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.location .location-info .route{
    background: none;
}

footer {
    margin-top: 6em;
    padding: 2em;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}


@media screen and (max-width: 1024px){

    .topbar {
        border: none;
    }

    .logo{
        display: block;
    }

    nav{
        position: fixed;
        top: 0;
        right: -100%;
        background-color: var(--background);
        border-left: 1px solid var(--accent-color);
        height: 100vh;
        z-index: 10;
        transition: right 300ms ease-out;
    }

    nav.show{
        right: 0;
    }

    nav.show ~ #overlay{
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-end;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a{
        width: 100%;
        padding-left: 2.5em;
        font-size: 1.8rem;
    }

    #open-sidebar-menu, #close-sidebar-menu{
        display: block;
    }

    .hero {
        width: 80%;
        height: 30rem;
    }

    #names {
        font-size: 2.5rem;
    }

    footer {
        margin-top: 4em;
    }
}

@media screen and (max-width: 700px){
    .bannertext {
        height: 90%;
        width: 80%;
        min-width: 300px;
    }

    #names {
        font-size: clamp(1.4rem, 5vw, 4rem);
    }

    #name1{
        margin-top: 6em;
    }

    #date {
        margin-top: 1em;
    }

    #cta button{
        padding: 0.8rem 1rem;
        text-align: center;
    }

    .location {
        flex-direction: column;
        align-items: center;
    }

    .location .map iframe {
        width: 100%;
        min-width: 260px;
        height: 180px;
    }

    footer {
        margin-top: 3em;
        padding: 1.5em;
    }
}

