@font-face{
    font-family: "Fredoka";
    src: url("../../labo03/oplossing/fonts/Fredoka-VariableFont_wdth,wght.woff2") format(woff2);
}

:root{
    font-family: "Fredoka", "sans-serif";
    line-height: 1.6;
    scroll-behavior: smooth;
    --primary: oklch(0.25 0.01 325);
    --bg: oklch(0.99 0.003 325);
}
*, *::before, *, *::after{
    box-sizing: border-box;
}

body{
    margin: 0;
    background-color: var(--bg);
    color: var(--primary);
}

.container{
    width: 100%;
    max-width: 80rem;
    text-align: center;
    padding-inline: 1rem;
    margin-inline: auto;
}
header {
    background-color: blue;
}

nav ul{
    padding: 0;
    margin: 0;
    list-style: none;
    margin-left: -2rem;
    margin-right: -2rem;
}

nav a{
    display:block;
    color: inherit;
    text-decoration: none;
    padding-block: 1rem;
    padding-inline: 2rem;

    &:hover,
    &:focus-visible{
    background-color: red;
}

}

.row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;

    > * {
    padding: 1rem;
    border: 1px dashed blue;
    }

    *:first-child{
    }

}

main{
    nav{
        --text: oklch(0.99 0.003 325);
        --bg: oklch(0.45 0.32 40);
    }
    nav li:not(:first-child) a{
    color: var(--text);
    background-color: var(--bg);
        transition: background-color, color 0.3s ease-in-out 0.1s;
    &:hover,
    &:focus-visible{
        background-color: var(--text);
        color: var(--bg);

    }
    }



    h3{
    display: flex;
    justify-content: flex-start;
    }

    nav ul{
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: wrap;
    }

    nav li:first-child{
    margin-inline-end: auto;
    color: inherit;
    font-weight: bold;

    }
}

#cards{
    display: flex;
    justify-content: flex-start;
}

.cards{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;


li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    flex-basis: 18rem;
    background-color: white;
    border: 1px lightgrey solid;
    border-radius: 0.5rem;
    box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
    overflow: hidden;
    transition: box-shadow 2s, ease-out 1s;
    &:hover,
    &:focus-visible{
        box-shadow: 0 0 .2rem oklch(0.211 0.003 17.407 / 0.75), 0 0 2rem oklch(0 0 0 / 0.76);
    }
}
    .content{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;

    }

img {
    order: -1;
}

a::after{
    content: "";
    position: absolute;
    inset: 0;
}
}

.cards li a:not(.overlaylink){
    position: relative;
    z-index: 1;
}




.cards-2{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 2rem;
}
.gekleurd-vlak{
    display: flex;
    width: 100%;
    height: 150px;
    background-color: red;
}
