@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.6rem;
    scroll-behavior: smooth;

    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
}

header {
    background-color: var(--primary);
    nav {
        ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            margin-inline-start: -2rem;
        }

        a {
            padding-block-end: 1rem;
            padding-block-start: 1rem;
            padding-inline-start: 2rem;
            padding-inline-end: 2rem;

            color: var(--bg);
            text-decoration: none;
        }
    }
}

.body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline-start: auto;
    margin-inline-end: auto;
    padding-block-start: 1rem;
    padding-block-end: 1rem;
}

.row {
    display:flex;
    gap: 2rem;

    > * {
        border: dashed 1px oklch(0.7731 0.2908 181.95);
        padding: 1rem;
        flex: 1;
    }

    > *:first-child{
        flex: 2;
    }
}

.visually-hidden {
    border-width: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    padding: 0;
}

.navbar{
    --ak: oklch(0.7731 0.2908 181.95);
    --nb: oklch(0.3065 0.0467 217.85);
    ul{
        padding: 0;
        margin:0;
        list-style: none;
        display: flex;
        justify-content:flex-end;
        flex-wrap: wrap;
        margin-inline-start: -2rem;
    }
    a{
        padding-block-end: 1rem;
        padding-block-start: 1rem;
        padding-inline-start: 2rem;
        padding-inline-end: 2rem;

        text-decoration: none;
        background-color:var(--ak);
        color: var(--nb);
        transition: color 2s ease-in-out;

        &:hover, &:focus-visible {
            background-color: var(--nb);
            color: var(--ak);
        }
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem;
    padding: 1rem;
    gap: 4rem;
    align-items: start;

    li {
        display: flex;
        flex-direction: column;

        border: thick;
        box-shadow: 0.5rem 0.5rem 1.5rem oklch(0.3065 0.0467 217.85);
        /* andere soort schaduw
        box-shadow: 0 0 .2rem oklch(0 0 0 /.2), 0 0 2rem oklch(0 0 0 /.1) */
        border-radius: 1rem 1rem 1rem 1rem;
        max-width: 18rem;

        &:hover {
            background-color: oklch(0.7731 0.2908 181.95 / 28.17%);
            box-shadow: 0.5rem 0.5rem 1.5rem oklch(0.7731 0.2908 181.95 / 28.75%);
            transition: background-color 0.3s, box-shadow 0.3s ease;
        }

        .content {
            margin-inline-start: 1rem;
            margin-bottom: 1rem;
        }

        > img,
        > picture {
            order: -1;


        }

        img {
            display: block;
            object-fit: cover;
            border-radius: 1rem 1rem 0 0;
            max-width: 18rem;
        }
    }

    li{
        position: relative;

        a:last-child{
            position: absolute;
            inset:0;
        }
        a:not(.overlay-link){
            z-index: 1;
        }
    }
}

.overlay-link{

    position: absolute;
    inset:0;

    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.mylink {
    display: flex;

    a {
        color: oklch(0.5642 0.2814 15.71);
    }

        ::before {
            content: url("deleteicon.png");
        }
    }

.mybutton {
    a {
        text-decoration: none;
        padding: 0.25rem 0.5rem;
        border-radius: 0.5rem;
        display: inline-block;
        background: oklch(0.5642 0.2814 149.12);
        color: oklch(100% 0.00011 271.152);
    }
}
