@font-face {
    font-family: "Lora";
    src: url("../fonts/Lora-VariableFont_wght.woff2") format("woff2");
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    font-family: Lora, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.9588 0.0086 84.57);
    --primary: oklch(0.3012 0 0);
    --blue: oklch(0.3893 0.066 245.76);
    --brown: oklch(0.35 0.085 35.18);
    --yellow: oklch(0.8061 0.1624 94.76);
    background-color: var(--bg);
    color: var(--primary);
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}



header nav {
    ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        justify-content: flex-end;
        flex-wrap: wrap;

        li:nth-child(2) {
            margin-inline-end: auto;
        }

        li {
            display: flex;

            &:first-child a {
                background-color: var(--bg);
            }

            &:nth-child(2) a {
                background-color: var(--bg);
                font-size: 1.7rem;
                font-weight: bold;
                color: var(--primary);
            }

            &:nth-child(3) a {
                border-bottom-left-radius: 1rem;
            }

            &:nth-child(6) a {
                border-bottom-right-radius: 1rem;
            }

            a {
                font-size: 1.2rem;
                color: var(--bg);
                background-color: var(--blue);
                transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
                padding: 1rem 2rem;
                display: flex;
                text-decoration: none;

                &:hover {
                    color: var(--blue);
                    background-color: var(--bg);
                }

                img {
                    margin-right: 1rem;
                    height: 3.2rem;
                    display: block;
                }
            }
        }
    }
}

footer {
    text-align: center;
    background-color: var(--blue);
    color: var(--bg);
    padding-top: 1rem;

    ul, p {
        margin: 0;
        padding: 0.2rem;
    }
}

.introduction {
    background-color: var(--brown);
    color: var(--yellow);
    border-radius: 1rem;
    margin: 5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    padding: 1rem;

    a {
        background-color: var(--blue);
        color: var(--yellow);
        line-height: 5rem;
        padding: 0.625rem 1rem;
        border-radius: 1rem;
        text-decoration: none;
        font-weight: bold;

        &:hover {
            background-color: var(--yellow);
            color: var(--blue);
        }
    }

    img {
        width: 100%;
        height: auto;
        border-radius: 0.5rem;
        display: block;
        margin-inline-start: auto;
    }

    h2 {
        font-weight: bold;
        font-size: 1.5rem;
        line-height: 0.5rem;
    }

    p {
        line-height: 1rem;
    }
}
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(15rem, 1fr));
    gap: 3rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.contenthome {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-shadow: 0 0 0.2rem oklch(1 0 0 / 0.2),
    0 0 1rem oklch(0.5 0 0 / 1);
    border-radius: 0.7rem;
    background-color: var(--brown);
    color: var(--bg);
    transition: transform 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;

    > *:not(picture):not(.overlay-link) {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }

    h3, h2, p, a {
        line-height: 1.7rem;
        margin: 0 0 0 1rem;
    }

    h3, h2 {
        margin-top: 1rem;
    }

    a {
        margin-bottom: 1rem;
        color: var(--yellow);
        font-weight: bold;
        text-decoration: underline;
        transition: all 0.3s ease;
    }

    img {
        order: -1;
        display: block;
        width: 100%;
        height: 15rem;
        object-fit: cover;
        border-top-left-radius: 0.7rem;
        border-top-right-radius: 0.7rem;
    }

    &:hover {
        transform: scale(1.05);
        box-shadow: 0 0 0.4rem oklch(0.7 0 0 / 0.3),
        0 0 1.5rem oklch(0.4 0 0 / 1);
    }
}

.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.middletitle,
.littletitle,
.button,
.buttonlabo,
.subtitle,
.skills {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: bold;
    width: max-content;
    padding: 0.625rem 1rem;
}

.middletitle {
    margin: 4rem auto;
}

.middletitle,
.littletitle {
    background-color: var(--blue);
    color: var(--yellow);
}

.subtitle {
    color: var(--blue);
    margin: 3rem 0 0 0;
    justify-content: flex-start;
}

.skills {
    display: inline;
}

.button,
.buttonlabo {
    transition: transform 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;
}

.button {
    background-color: var(--yellow);
    color: var(--blue);
    display: block;
    margin: 4rem auto;
    text-align: center;

    &:hover {
        background-color: var(--blue);
        color: var(--yellow);
        transform: scale(1.2);
        box-shadow: 0 0 0.4rem oklch(0 0 0 / 0.3),
        0 0 1.5rem oklch(0 0 0 / 1);
    }
}

.buttonlabo {
    background-color: var(--brown);
    color: var(--bg);
    margin: 0.5rem;
    text-align: start;

    &:hover {
        background-color: var(--bg);
        color: var(--primary);
        transform: scale(1.2);
        box-shadow: 0 0 0.4rem oklch(0 0 0 / 0.3),
        0 0 1.5rem oklch(0 0 0 / 1);
    }
}

.list li {
    list-style-type: "=>";
    margin: 1rem;
}

.list {
    margin-bottom: 2rem;
}

.brown {
    background-color: var(--brown);
    color: var(--yellow);
    border-radius: 1rem;
    padding: 0.625rem 1rem;
    margin: 1.5rem 0;
}

#btnSubmit {
    background-color: var(--yellow);
    color: var(--blue);
    display: block;
    text-align: center;
    border-radius: 1rem;
    margin: 1.5rem 0;
    font-weight: bold;
    padding: 0.625rem 1rem;
    transition: transform 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease;

    &:hover {
        background-color: var(--blue);
        color: var(--yellow);
        transform: scale(1.2);
        box-shadow: 0 0 0.4rem oklch(0 0 0 / 0.3),
        0 0 1.5rem oklch(0 0 0 / 1);
    }
}

label,
fieldset,
input[type=submit] {
    margin-top: 3rem;
}

input,
fieldset,
textarea,
select {
    border: 1px solid oklch(0.5103 0 0);
    border-radius: .3rem;
}

input:not([type=radio]):not([type=checkbox]):not([type=submit]),
select,
textarea {
    display: block;
    width: 100%;
    max-width: 40rem;
    padding: 0 .75rem;
    line-height: 2rem;
}

input[type=submit] {
    padding: .5rem 2rem;
}

label {
    display: block;
    margin-bottom: .2rem;
}

legend,
label {
    font-weight: bold;
}

legend {
    padding: 0 .2rem;
}

input[type=radio] + label,
input[type=checkbox] + label {
    display: inline-block;
    margin: 0 0 .2rem .2rem;
    font-weight: normal;
}

.form-row {
    max-width: 40rem;

}
fieldset {
    padding-top: 0.5rem;
    max-width: 40rem;
}

.message {
    font-size: 1.4rem;
}

.message.error {
    color: oklch(0.3809 0.1776 12);
    font-size: 1rem;
}

form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;

    > div:first-child {
        display: block;
        max-width: 20rem;
    }
}



@media (max-width: 1024px) {
    header nav {
        li {
            &:nth-child(2) a {
                font-size: 1.5rem;
            }

            a {
                font-size: 1rem;
                padding: 0.5rem 1.2rem;

                img {
                    margin-right: 1rem;
                    height: 3rem;
                }
            }
        }
    }
}

@media (max-width: 767px) {
    header nav {
        ul {
            flex-direction: column;
            align-items: stretch;

            li {
                width: 100%;

                &:nth-child(3) a {
                    border-bottom-left-radius: 0;
                    border-top-left-radius: 1rem;
                    border-top-right-radius: 1rem;
                }

                &:nth-child(6) a {
                    border-bottom-left-radius: 1rem;
                }

                a {
                    justify-content: center;
                    width: 100%;
                }
            }
        }
    }

    .introduction {
        flex-direction: column-reverse;
    }

    .cards {
        grid-template-columns: repeat(1, minmax(15rem, 1fr));
    }

    h1.middletitle {
        font-size: 1.2rem;
        word-wrap: break-word;
    }

    .photomobiel {
        display: block;
        width: 100%;
        margin-inline: auto;
        max-width: 20rem;
        height: auto;
    }

    form {
        flex-direction: column;
        align-items: center;
    }
}
