*, *::before, *::after {
    box-sizing: border-box;
}

@font-face {
    font-family: "Fredoka";
    src: url("../../labo3/oplossing/fonts/fredoka.woff2") format("woff2");
}

:root {
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --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 nav {
    --color: oklch(0.7338 0.0789 186.88);

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
    }

    a {
        color: inherit;
        text-decoration: none;
        display: block;
        padding-inline: .8em;
        padding-block: .5em;

        border: 1px solid black;
        transition: border-radius .2s ease-in-out;

        /* is a:hover en niet a :hover */
        &:hover {
            border-radius: 1em;
            background-color: var(--color);
        }
    }
}

.row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;

    > * {
        padding: 1em;
        border: dashed 1px oklch(0.8103 0.2343 329.82);
        flex-grow: 1;
    }

    > *:first-child {
        flex-grow: 2;
    }
}
body {
    --TEXT: oklch(0.9015 0.1357 195.35);;
    --BG: oklch(0.2956 0.1653 265.24);
    main {
        nav {
            ul {
                list-style: none;
                display: flex;
                flex-wrap: wrap;

                li:first-child {
                    margin-right: auto;
                    font-weight: bold;
                    color: inherit;
                }
            }

            a {
                text-decoration: none;
                padding-inline: 2rem;
                padding-block: 2rem;
            }

                li:not(:first-child) a {
                    color: var(--TEXT);
                    background-color: var(--BG);
                    transition: color .2s ease-in-out .1s, background-color .2s ease-in-out .1s;
                    display: block;

                    &:hover,
                    &:focus-visible {
                        color: var(--BG);
                        background-color: var(--TEXT);
                    }
                }

        }
    }
}



.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
section {
    --Shadow: 0 0 .2rem oklch(0 0 0 / .1);;
    --Hover: 0 0 .2rem oklch(0 0 0 / .5);;

    .cards {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        padding: 0;
        margin: 0;

        li {
            flex-basis: 18rem;
            display: flex;
            flex-direction: column;
            position: relative;

            border-radius: .5rem;
            overflow: hidden;
            box-shadow: var(--Shadow);
            transition: box-shadow .2s ease-in-out .1s;


            .content {
                display: block;
                padding: 1rem;
            }

            &:hover,
            &:focus-visible {
                box-shadow: var(--Hover);
            }
        }

        a::after {
            content: "";
            position: absolute;
            inset: 0;
        }

        img {
            order: -1;
            flex-grow: 1;
        }
    }
}

.pic {
      position: relative;
      overflow: hidden;

      transition: background-color .2s ease-in-out .1s, border-radius .2s ease-in-out .1s;

      &:hover,
      &:focus-visible {
          background: oklch(0.5632 0.1801 20.65 / 43.36%);
          border-radius: 50%;
      }
  }