
*, *::before, *::after {
    box-sizing: border-box;
}
@font-face {
    font-family: "Montserrat";
    src: url("../resources/Montserrat-VariableFont_wght.woff2") format("woff2")
}
:root {
    font-family: "Montserrat", Arial, sans-serif;
    line-height: 1.6rem;
    scroll-behavior: smooth;
    --wit: oklch(0.99 0.003 325);
    --zwart: oklch(0.25 0.01 325);
    --grijs: oklch(0.3601 0.0273 220.06);
    --primary: oklch(0.7792 0.1298 224.75);
    --secondary: oklch(0.6506 0.2175 10.22);
    --tertiary: oklch(0.916 0.177 105.21);
    background-color: var(--primary);
}
.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}



body {
    margin: 0;
    padding: 0;
    header {
        margin-inline: 0;
        width: 100%;
        background-color: var(--primary);
        color: var(--zwart);
        nav ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;
            justify-content: flex-end;
            li {
                display:flex;
                a {
                    width: 100%;
                    padding: 2rem;
                    color: inherit;
                    text-decoration: none;
                }
                background-color: var(--primary);
                color: var(--zwart);
                transition: background-color 0.2s ease-in-out;
                &:hover {
                    background-color: var(--tertiary);
                }
                &:first-child {
                    padding: 0;
                    background-color: var(--secondary);
                    color: var(--wit);
                    margin-inline-end: auto;
                    a {
                        font-size: 2rem;
                        transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
                        &:hover {
                            background-color: var(--wit);
                            color: var(--secondary);
                        }
                    }
                }
            }
        }
    }
    main {
        background-color: var(--wit);
        margin: 0;
        padding-block-end: 5rem;
        .intro {
            margin-block-end: 7rem;
            padding-block-start: 5rem;
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            justify-content: space-around;
            div {
                position: relative;
                display: flex;
                flex-direction: column;
            }
            h1 {
                font-weight: 500;
                font-size: 12vw;
                margin-block: 0;
                padding-block: 5rem 2rem;
                text-align: center;
                line-height: 3.5rem;
            }
            p {
                text-align: left;
                font-size: 1.2rem;
            }
            li {
                font-size: 1.1rem;
            }
            a {
                color: var(--zwart);
                text-decoration: none;
                &.leermeer {
                    &+a{

                        transition: transform ease-out 0.1s;
                    }
                    &:hover + a{
                        transform: translate(1rem, 0);
                    }
                    &:hover ~ .imgswap {
                        visibility: visible;
                    }
                }
            }
            img {
                border-radius: 1.5rem;
                width: 80%;
                position: relative;
                order: -2;
            }
            .imgswap
            {
                border-radius: 1.5rem;
                position: absolute;
                visibility: hidden;
                order: -1;
            }
            &.labo {
                h1 {
                    text-align: start;
                }
                div {
                    display: flex;
                    flex-wrap: wrap;
                    flex-direction: row;
                    align-items: center;
                    gap: 2rem;
                    justify-content: center;
                    a {
                        font-size: 2rem;
                        line-height: 2.3rem;
                    }
                }
            }
        }
    }
    .cards {
        h2 {
            margin-inline: 4rem;
            font-size: 8vw;
        }
        ul {
            display:flex;
            flex-wrap: wrap;
            flex-direction: row;
            margin: 0;
            padding: 0;
            gap: 2rem;
            li {
                border-radius: 1rem;
                box-shadow: 0 0 0.2rem oklch(0 0 0 / 0.2), 0 0 2rem oklch(0 0 0 / 0.1);
                display:flex;
                flex-wrap:wrap;
                flex-direction: column;
                position: relative;
                flex: 1 1 19rem;
                .content {
                    margin-inline-start: 0.5rem;
                    margin-block-end: 1rem;
                    h3 {
                        font-size: 1.3rem;
                    }
                    a {
                        text-decoration: none;
                        font-size: 0.8rem;
                        color: var(--black);
                        font-style: italic;
                    }
                }
                transition: transform 0.3s ease-in-out;
                &:hover {
                    img + div {
                        transform: scale(100%, 100%);
                    }
                    transform: scale(110%);
                }
            }
            img {
                border-top-left-radius: 1rem;
                border-top-right-radius: 1rem;
                max-width: 100%;
                max-height: 12rem;
                object-fit: cover;
                order:-2;
                box-shadow: 0 0.4rem 0.2rem oklch(0 0 0 / 0.2),0 0.4rem 0.2rem oklch(0 0 0 / 0.1);
                &+div {
                    position: absolute;
                    transform: scale(0, 0);
                    transform-origin: center center;
                    margin: 0;
                    padding: 0;
                    order: -1;
                    border-radius: 1rem;
                    max-width: 100%;
                    max-height: 100%;
                    width: 100%;
                    height: 100%;
                    background-color: var(--tertiary);
                    mix-blend-mode: multiply;
                    transition: width 0.3s ease-out, height 0.3s ease-out, transform 0.3s ease-out;
                }
            }
        }
    }

    .icons {
        h2 {
            margin-block-start: 7rem;
            text-align: center;
            font-size: 1.2rem;
        }
        ul {
            list-style: none;
            display: flex;
            flex-direction: row;
            justify-content: center;
            margin: 0;
            padding: 0;
            gap: 3rem;
            li {
                width: 6rem;
                position: relative;
                a {
                    color: var(--zwart);
                    text-decoration: none;
                }
                img {
                    order: -2;
                    width: 100%;
                }
                p {
                    text-align: center;
                }
            }
        }
    }

    .contact {
        label {
            margin-block-end: 0.2rem;
            font-style: italic;
        }
    }
    .sneakpeek {
        position: relative;
        width: 9rem;
        p {
            position: absolute;
            transform: translate(0, -2.4rem);
        }
        a {
            &:first-child {
            }
            &:nth-child(2) {
                color: var(--wit);
            }
        }
    }
    .artpage {
        &+a{
            transition: color ease-in-out 0.2s;
        }
        &~p{
            transition: transform ease-in-out 0.2s;
        }
        &:hover + a {
            color: var(--grijs);
        }
        &:hover ~ p{
            transform: translate(0, -3.6rem);
        }
    }
    .artcollection {
        h2 {
            visibility: hidden;
        }
        ul {
            list-style-type: none;
            display: flex;
            flex-direction: column;
            li {
                width: 10rem;
                img {
                    width: 100%;
                }
                &:nth-child(2n)
                {
                    align-self: flex-end;
                }
                margin-inline: 2rem;
            }
        }
    }

    .knop {
        border-radius: 0.4rem;
        border-color: var(--primary);
        border-style: solid;
        transform: scale(1);
        padding-inline: 0.2rem;
        transition: transform 0.3s ease-out, border-color 0.3s ease-out;
        text-decoration: none;
        &:hover {
            border-color: var(--tertiary);
            transform: scale(1.05);
        }
        &:link {
            color: var(--zwart);
        }
    }

    footer {
        width: 100%;
        margin: 0;
        padding-block: 2rem 4rem;
        padding-inline: 0;
        background-color: var(--primary);
        p {
            font-style: italic;
            margin-block: inherit;
            color: var(--grijs);
        }
    }
}
textarea {
    width:90%;
    max-width:90%;
    min-width: 30%;
    max-height: 30rem;
    min-height: 10rem;
}
input{
    &[name="name"] {
        width: 15rem;
    }
    &[name="email"] {
        width: 80%;
    }
}


.overlay-link {
    position:absolute;
    inset:0;
    z-index: 3;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;

}
@media screen and (min-width: 22.5em) {
    input[name="email"] {
        width: 25rem;
    }
}

@media screen and (min-width: 41em) {

    body header nav ul {
        flex-direction: row;
    }
    body main section{
        &.intro img {
            width: 20rem;
        }
        &.cards {
            h2 {
                font-size: 2rem;
            }
        }
    }
    body .artcollection ul li{
        width: 30%;
    }
    body main .intro h1 {
        font-size: 4rem;
    }
}