:root {
    margin: 0;
    min-height: 100vh;
    background-image: url(./images/achtergrond.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

*, *::before, *::after{
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    /*margin: 0;
    min-height: 100vh;*/
    margin-right: 25%;
    background-color: rgba(0,0,0,0.35);
    flex: 1;
    padding-bottom: 1rem;
}

header{
    --text: white;
    --bg: oklch(0.175 0 0);
    background-color: oklch(0.175 0 0);
    nav {
        ul{
            display: flex;
            flex-wrap: wrap;
        }
        a {
            color: var(--text);
            background-color: var(--bg);
            transition: color .2s ease-in-out,
                        background-color .2s ease-in-out;

            &:hover, &:focus-visible {
                color: var(--bg);
                background-color: var(--text);
            }
        }
        li:first-child {
            margin-inline-end: auto;
        }
        li:first-child a {
            color: inherit;
            background-color: transparent;
            font-weight: bold;
        }
    }
}

footer {
    background-color: oklch(0.175 0 0);;
    min-height: 5rem;
    text-align: center;
    padding: 1rem;
}

.container{
    max-width: 60rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  margin-left: -2rem;
}

nav a{
    display: block;
    padding: 1rem 2rem;
    color: inherit;
    text-decoration: none;
}

nav a:hover, nav a:focus-visible{
    background-color: oklch(0.3544 0.2269 273.71);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;

    li {
        display: flex;
        flex-direction: column;
        flex-basis: 18rem;
        padding: 1rem;
        overflow: hidden;
        background-color: oklch(0 0 0);
        border-radius: .5em;
        box-shadow: 0 0 .2rem oklch(0.99 0 0 / .2),
                    0 0 2rem oklch(0.99 0 0 / .1);
        position: relative;
        isolation: isolate;
        transition: box-shadow .3s ease-in-out;

        /* Tekst en links boven het gekleurde vlak */
        h2,
        p,
        a {
            color: oklch(0.99 0 0);
            position: relative;
            z-index: 1;
        }
    }

    img {
        order: -1;
        width: calc(100% + 2rem);
        max-width: none;
        margin: -1rem -1rem 0;
        height: auto;
        position: relative;
        z-index: 0;
        mix-blend-mode: normal;
    }

    h2 {
        margin-block-start: 0;
        font-size: 1.25rem;
    }

    a::after {
        content: "";
        position: absolute;
        inset: 0;
    }
}