:root {
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
}

@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2")
}

*::before,
*::after {
    box-sizing: border-box;
}

:root {
    font-family: Fredoka, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    color: var(--primary);
    background-color: var(--bg);
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

header {
    color: var(--bg);
    background-color: var(--primary);
}

header nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav ul li a {
    display: inline-block;
    padding-block: 1rem;
    padding-inline: 2rem;
    color: inherit;
    text-decoration: none;
}

header nav ul li :first-child {
    margin-inline-start: -2rem;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 2rem;

    >* {
        border-style: dashed;
        border-width: 1px;
        border-color: gray;
        padding: 1rem;
    }

    >*:nth-child(1) {
        flex-grow: 2;
    }

    >*:nth-child(2) {
        flex-grow: 1;
    }
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

section nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

section nav ul :first-child {
    margin-inline-end: auto;
}


section nav ul li a {
    display: inline-block;
    padding-block: 1rem;
    padding-inline: 2rem;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease-in, background-color .2s ease-in;

    &:hover {
        color: var(--bg);
        background-color: var(--primary);
    }

    &:focus-visible {
        color: red;
        background-color: white;
    }
}

.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.cards {
    min-width: 18rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;

    ul {
        list-style: none;
        margin: 0;
        border: 0;
    }

    >li {
        position: relative;
        display: flex;
        flex-direction: column;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        min-width: 18rem;
        flex-basis: 32%;
        flex-grow: 1;

        picture {
            order: -1;
        }

        picture img {
            width: 100%;
        }

        div {
            margin: 1rem;
        }
    }
}

#oef4 {
    .mylink a {
        color: red;
        display: inline-flex;
        gap: 0.5em;

        &::before {
            content: url("./bronbestanden/deleteicon.png");
        }
    }

    .mybutton {
        background-color: green;
        border-radius: 0.4rem;
        padding: 0.8rem;

        a {
            font-weight: bold;
            color: white;
            text-decoration: none;
        }

    }
}