@font-face {
    font-family: "Geom";
    src: url("./fonts/geom_variablefont_wght.woff2")format("woff2")
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-family: Geom, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.9533 0 360);
    --primary: oklch(0 0 0);
    color: var(--primary);
    background-color: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    background-color: oklch(0.2529 0.0987 25.41);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: space-between;

    a {
        text-decoration: none;
        color: var(--bg);
        font-weight: bold;
        padding-left: 1rem;
    }
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;

    h2 {
        line-height: 1.2;
        margin: 1rem -.2em 0;
    }

    h3 {
        line-height: 1;
        margin: 1rem -.2em 0;
    }

    p {
        margin: 0 -.2em;
    }
}

nav {
    ul {
        padding: 0;
        margin: 0;
        list-style: none;
        display: block;
    }

    a {
        display: inline-block;
        padding-block: 1rem;
        padding-inline:2rem;
        text-decoration: none;
        color: var(--bg);
        background-color: oklch(0.2529 0.0987 25.41);
        transition: color .2s ease-in-out, background-color .1s ease-in-out;

        &:hover,
        &:focus-visible {
            background-color: var(--bg);
            color: oklch(0.2529 0.0987 25.41);
        }
    }
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: oklch(0.2529 0.0987 25.41);
    color: var(--bg);
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;

    &:hover {
        background-color: oklch(0.3338 0.1554 25.41);
        transition: background-color .1s ease-in-out;
    }
}

.introduction {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;

    .picture {
        padding-top: 2rem;

        img {
            width: 100%;
            border-radius: 50%;
        }
    }

    .picture_labo {
        img {
            padding-top: 2rem;
            width: 100%;
            height: 100%;
        }
    }
}

.oefeningen {
    display: flex;
    padding: 0;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;

    li {
        flex-direction: column;
        flex-basis: 18rem;
        list-style: none;
        display: flex;
        border: 1px solid oklch(0 0 0);
        border-radius: 20px;
        overflow: hidden;
        position: relative;

        img {
            order: -1;
            width: 100%;
            height: 9.375rem;
            border: 1rem;
        }

        &:hover {
            transform: scale(1.1);
            transition: transform .15s ease;
        }
    }

    .content {
        padding: 1rem;

        & > h3  {
            font-weight: bold;
            color: oklch(0 0 0);
        }
    }

    .overlay-link {
        position: absolute;
        inset: 0;

        text-indent: 100%;
        white-space: nowrap;
        overflow: hidden;
    }

    li a:not(.overlay-link) {
        z-index: 1;
        color: oklch(0 0 0 );
    }
}

.visually-hidden {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: 0;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.selfreflection {
    ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        gap: 2rem;
        padding-inline: 0;

        span {
            text-decoration: underline;
        }
    }
}

.socials {
    display: flex;
    flex-direction: column;
    align-items: center;

    ul {
        display: flex;
        gap: 2rem;
        list-style: none;
        padding: 0;
        justify-content: center;
    }

    a {
        text-decoration: none;
        font-weight: bold;
        color: oklch(0 0 0);

        p {
            display: flex;
            justify-content: center;
        }
    }


    img {
        width: 6.25rem;
        transition: transform .2s ease;
    }

    img:hover {
        transform: scale(1.1);
    }
}

footer {
    display: flex;
    justify-content: center;
    background-color: oklch(0.2529 0.0987 25.41);
    color: var(--bg);
}

form {
    display: inline-block;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.submit {
    margin-bottom: 2rem;
}

@media (min-width: 50em) {
    header {
        background-color: oklch(0.2529 0.0987 25.41);
        color: var(--bg);
        display: flex;
        align-items: center;
        justify-content: space-between;

        a {
            text-decoration: none;
            color: var(--bg);
            font-weight: bold;
            padding-left: 1rem;
        }
    }

    nav {
        ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex;
        }

        a {
            display: inline-block;
            padding-block: 1rem;
            padding-inline:2rem;
            text-decoration: none;
            color: var(--bg);
            background-color: oklch(0.2529 0.0987 25.41);
            transition: color .2s ease-in-out, background-color .1s ease-in-out;

            &:hover,
            &:focus-visible {
                background-color: var(--bg);
                color: oklch(0.2529 0.0987 25.41);
            }
        }
    }

    .introduction {
        display: flex;
        align-items: flex-start;
        flex-wrap: nowrap;

        .picture img{
            margin-inline-start: 5rem;
            width: 80%;
            padding-block-start: 2rem;
            border-radius: 50%;
            object-fit: fill;
        }

        .picture_labo img {
            margin-inline-start: 2rem;
            padding-block-start: 1rem;
            width: 100%;
        }
    }

    .selfreflection {
        ul {
            display: flex;
            flex-direction: row;
            list-style: none;
            gap: 2rem;
            padding-inline: 0;

            span {
                text-decoration: underline;
            }
        }
    }
}

@media (min-width: 40em) {
    .oefeningen li {
        flex: 0 1 calc(30% - 3rem);
        max-width: 16rem;
    }
}

.berichten {
    display: flex;
    flex-direction: column;
	width: auto;

    > li {
        border: 2px solid oklch(0 0 0);
        border-radius: 20px;
        width: 100%;
        list-style: none;
        display: flex;
        flex-direction: column;
		word-break: break-word;
        padding: 1rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;

        > ul {
            list-style: none;
			padding: 0;
			margin: 0;
        }
    }
}

.container-berichten {
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}