*, *::before, *::after {
    box-sizing: border-box;
}

html[lang="en"] .txt-nl {
    display: none;
}

html[lang="nl"] .txt-en {
    display: none;
}

@font-face {
    font-family: "Average";
    src: url("./fonts/AverageSans.woff2") format("woff2");
}

:root {
    font-family: "Average", sans-serif;
    --color: oklch(0 0 0);
    --bg-color: oklch(1 0 360);
    --header-bg-color: oklch(0.941988 0.027461 265.4508);
    --h-color: oklch(0.3025 0.0665 254.82);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--color);
}

a {
    color: inherit;
}

header {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 3.5rem;

    nav ul {
        background-color: var(--header-bg-color);
        border-radius: 1rem;
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        padding: 0;
        margin: 0 0 0 0;
        display: flex;
        list-style: none;
        flex-wrap: wrap;

        a {
            border-radius: 1rem;
            display: block;
            padding-block: 1rem;
            padding-inline: 2rem;
            color: var(--h-color);
            text-decoration: none;
            transition: color 0.1s ease-in-out 0.1s,
            background-color 0.1s ease-in-out 0.1s;

            &:hover, &:focus-visible {
                background-color: var(--h-color);
                border-radius: 1rem;
                color: var(--bg-color);
            }
        }

        li {
            &:first-child, &:last-child {
                flex: 1;
            }

            &:first-child {
                font-weight: bolder;
                display: flex;
                justify-content: flex-start;
            }

            &:last-child {
                display: flex;
                justify-content: flex-end;
            }
        }

    }
}

h1, h2, h3, h4, h5 {
    color: var(--h-color);
    font-weight: bold;
}

main section {
    display: flex;
    flex-direction: column;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem;
    padding: 0;
    list-style: none;

    li {
        display: flex;
        flex-direction: column;
        flex: 0 0 22rem;
        position: relative;
        border-radius: .5em;
        overflow: hidden;
        background-color: var(--header-bg-color);
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        transition: box-shadow .2s ease-in-out,
        background-color .2s ease-in-out,
        color .2s ease-in-out;
        h3, h4 {
            transition: color .2s ease-in-out;

        }
        &:hover,
        &:has(a:focus-visible) {
            box-shadow: 0 0 .2rem oklch(0 0 0 / .5), 0 0 2rem oklch(0 0 0 / .4);
            background-color: var(--h-color);
            color: var(--bg-color);
            h3, h4 {
                color: inherit;
            }
        }

        .content {
            padding: 0 0 1rem 1rem;
            flex-grow: 1;
        }

        a:not(.overlay-link) {
            position: relative;
            z-index: 1;
        }

    }
    img {
        order: -1;
        width: 100%;
        height: 150px;
        object-fit: cover;
        flex-shrink: 0;
    }

    a::after {
        content: "";
        position: absolute;
        inset: 0;
    }

    &.mainpage {
        margin: 1rem 0;
        flex-direction: column;
        gap: 1.5rem;

        li {
            flex: 0 0 auto;
            flex-direction: row;
            height: 14rem;

            .content {
                flex: 1;
                padding: 1.5rem;
                display: flex;
                flex-direction: column;
                justify-content: center;   /* tekst verticaal gecentreerd */
            }
        }
        li:nth-child(odd) {
            img {
                order: 1;
                width: 40%;
                height: 100%;
                object-fit: contain;
                object-position: center;
            }
        }
        li:nth-child(even) {
            img {
                order: -1;
                width: 40%;
                height: 100%;
                object-fit: contain;
                object-position: center;
            }
        }
    }
    &.studentenverenigingen {
        margin: 1rem 0;
        flex-direction: column;
        gap: 1.5rem;

        li {
            flex: 0 0 auto;
            flex-direction: row;

            .content {
                flex: 1;
                padding: 1.5rem;
                display: flex;
                flex-direction: column;
                justify-content: start;
                h2 {
                    color: inherit;
                }
            }
        }
        li:nth-child(odd) {
            img {
                order: -1;
                width: 40%;
                height: 100%;
                object-fit: contain;
                object-position: center;
            }
        }
        li:nth-child(even) {
            img {
                order: 1;
                width: 40%;
                height: 100%;
                object-fit: contain;
                object-position: center;
            }
        }
    }
}

a.bold {
    color: inherit;
    font-weight: bolder;
}

.layout {
    display: flex;
    gap: 1.25rem;
}

.layout aside {
    flex: 0 0 15rem;
}

.kaart {
    flex: 1;
    height: 30rem;
}

@media (max-width: 50rem) {
    .layout {
        grid-template-columns: 1fr;
    }
}

.transport{
    margin: auto;
}

main ul.same-page-links {
    padding: 0;
    margin: 0 0 0 -.5rem;
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: .5rem;
    a {
        background-color: var(--header-bg-color);
        border-radius: 20rem;
        display: block;
        padding-block: 1rem;
        padding-inline: 2rem;
        color: var(--h-color);
        text-decoration: none;
        &:hover, &:focus-visible {
            background-color: var(--h-color);
            color: var(--bg-color);
            font-weight: bold;

        }
    }
}

main .hotspots h2 {
    background-color: var(--bg-color);
    position: sticky;
    top: 3.5rem;
    z-index: 2;
    padding: 0 ;
    display: flex;
    flex-wrap: wrap;
    padding-block: .5rem;
}

.hoofding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hoofding img {
    width: 12rem;
    height: auto;
    flex-shrink: 0;
}

.onboarding ol {
 padding: 0;
 list-style: none;
}

.onboarding li {
 background-color: var(--header-bg-color);
 border-radius: .5em;
 padding: 1rem 1.5rem;
 margin-bottom: 1rem;
}

.onboarding li p {
 margin: .25rem 0 0 1.75rem;
}

.onboarding input {
 margin-right: .5rem;
}