@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;

    /*variabelen*/
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);

    background-color: var(--bg);
    color: var(--primary);
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

header {
    background-color: var(--primary);
    padding-block: 1rem;
}

nav {
        ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex;
            flex-wrap: wrap;
        li {
            margin-left: -2rem;
        a {
            padding: 1rem 2rem;
            color: var(--bg);
            text-decoration: none;
        }
    }
}
}


main { 
   nav {
        ul {
            display: flex;
            justify-content: flex-end;

            li:nth-child(2) {
            margin-left: auto;
            }
         }

        li:first-child {
            a {
                color: var(--primary);
                background-color: var(--bg);
              }
        }
            a {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;
            margin: 1rem;

            color: oklch(0.99 0.003 325);
            background-color: oklch(0.45 0.32 40);

            border-radius: 0; 
            transition: border-radius .2s ease-in-out .1s;

            &:hover,
            &:focus-visible {
                color: oklch(0.45 0.32 40);
                background-color: oklch(0.99 0.003 325);
                border-radius: 70%;
            }
            }

        }
    }


.row {
    display: flex;
    gap: 2rem;

        > * {
            border: 1px dashed oklch(0.35 0.45 150);
            padding: 1rem;
            flex: 1;
    }

        > *:first-child {
            flex: 2;
    }
}

.cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
    li {
        flex: 0 1 18 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
        box-shadow: 0 0 .2rem oklch(0 0 0 / .2), 0 0 2rem oklch(0 0 0 / .1);
        border-radius: 1rem;
        overflow: hidden;
    }
}


.content {
    position: relative;
    display: flex;
    flex-direction: column;
    img {
        width: 100%;
        height: auto;
        border-radius: 1rem;
    }
    picture {
        order: -1;
    }
}


.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 599px) {
    .cards {
        flex-direction: column;
    }

    .cards li {
        max-width: 100%;
    }
}


typography { /*tekstopmaak voor opgave03.html, typography*/
    font-family: "Delius", courier, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    h1, h2, h3 {
        font-size: 1.125rem * 1.5;
    }
    max-width: 80rem;
    p {
        margin-inline: auto;
        padding-inline: 1rem;
    }
    h2 + h3 {
        margin-block-start: 0.5rem; 
    }
}

.metadetails {
    font-style: italic;
}

.introduction {
    color: oklch(0 0 0);
    background-color: oklch(89.491% 0.1643 178.356);
}

.mylink a {
  color: #c62828;
}

.mylink a::before {
  content: image-set("../images/deleteicon.png");
}

.mybutton a {
  background-color: oklch(59.816% 0.18136 142.904);
  color: oklch(100% 0.00011 271.152);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px oklch(16.842% 0.00002 271.152 / 0.2);
  text-decoration: none;
  display: inline-block;
}