@font-face {
    font-family: "MozillaText";
    src: url("./fonts/PTSerifCaption-Regular.ttf") format("tff");
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root{
    font-family: "MozillaText",fangsong,sans-serif;
    line-height: 1.7;
    scroll-behavior: smooth;
    --bg: oklch(0.695793 0.204259 43.491);
    --bg2: oklch(0.50383 0.293655 285.3753);
    --text1: oklch(0 0 0);
    --acc: oklch(0.8718 0.2547 147.64);
    background: var(--bg2);
}

body{
    margin: 0;
}

.container{
    max-width: 90rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

header{
    background: var(--bg);
    padding: 0.6rem 1rem;

    nav{

        display: flex;
        flex-direction: column;
        align-items: center;

        >a{
            img {
                width: 18rem;
                max-width: 100%;
                height: auto;
            }
        }

        ul {
            display: flex;
            justify-content: center;
            list-style: none;
            flex-direction: row;
            flex-wrap: wrap;

            padding-inline-start: 0;
            margin: 0;

            li {

                a {
                    text-decoration: none;
                    color: var(--text1);
                    font-size: 1.4rem;
                    padding: 0.6rem;
                }

                :hover{
                    background-color: oklch(0.4906 0.1352 47.14);
                    transition: ease-in-out 0.2s;
                    color: #18A2FF;
                }
            }
        }
    }
}

.banner{
    width: 100%;
    height: auto;
    padding: 0;
    vertical-align: top;
}

main{
    h1{
        margin: 0;
    }
    h2{
        text-align: center;
    }
}

footer{
    text-align: center;
    font-style: italic;
    color: oklch(1 0 0);
    p{
        margin: 0;
        padding-block-start: 3rem;
    }
}

.biocard{
    display:flex;
    justify-content: center;

    margin: 0 4vw;
    padding: 0;
    list-style: none;

    li{
        display: flex;
        flex-direction: column;
        position: relative;

        border-radius: 16px;
        border: oklch(0 0 1) solid 1px;
        background: oklch(1 0 0);

        Box-shadow: 0.2rem 0.2rem 1rem oklch(0 0 1 / 0.8);

        img{
            height: auto;
            width: 100%;
            border-radius: 15px 15px 0 0;
        }
    }
}

.button{
    a {
        background: var(--acc);
        text-decoration: none;
        color: oklch(0.381 0.207 267.22);
        padding: 1rem;
        border-radius: 3rem;
        border: oklch(0 0 1) solid 1px;
    }
    :hover {
        background: oklch(0.381 0.207 267.22);
        color: var(--acc);
        transition: ease-in-out 0.2s;
    }
}

.button2{
    margin-block-start: 2rem;
    text-align: center;
    a {
        background: var(--acc);
        text-decoration: none;
        color: oklch(0.395 0.231 265.605);
        padding: 1rem;
        border-radius: 3rem;
        border: oklch(0 0 1) solid 1px;
    }
    :hover {
        background: oklch(0.764 0.224 147.421);
        transition: ease-in-out 0.2s;
    }
}

.content{
    padding: 0 0.5rem 1.5rem 1rem;
}

.bio{
    h2{
        margin-block: 0 0.8rem;
    }
    padding: 1rem;
    padding-inline: 1.5rem;
}

.show{
    h2{
        font-size: 2rem;
        margin: 0;
        padding-block: 1.1rem 0.4rem;
    }
}

.showcard{
    display: flex;
    flex-direction: column;
    list-style: none;
    padding-inline: 1.5rem;
    margin: 0;
}

.eventcard-wrapper{

    &:first-of-type .eventcard {
        border-block-start:  none;
        padding: 0;
        color: oklch(0.873 0 0);

        position: absolute;
        text-indent: 100%;
        overflow: hidden;
    }

    &:last-of-type .eventcard {
        border-block-end:  oklch(0 0 1) solid;
    }


    position: relative;

    a:hover{
        background: oklch(0.388 0.212 285.146 / 0.35);
    }
}

.eventcard{

    display: flex;
    list-style: none;
    padding: 0.5rem 0;
    border-block-start: oklch(0 0 1) solid;
    flex-direction: column;
    li{
        font-size: 1.3rem;
    }
}

.accent{
    font-weight: bold;
}

.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.social-cards {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: auto;

    .s-card {
        position: relative;
        display: flex;
        flex-direction: column;
        text-align: center;
        border: solid black 2px;
        border-radius: 1rem;
        Box-shadow: 0.2rem 0.2rem 0.4rem oklch(0 0 0 / 0.5);
        width: 9rem;
        background: oklch(1 0 0);
        margin-block-end: 1rem;

        img {
            padding-block: 0.3rem;
            align-self: center;
            width: 7rem;
            height: auto;
        }

        a{border-radius: 0.8rem}

        a:hover{
            background: oklch(0.739 0.014 17.473 / 0.3);
            transition: ease-in-out 120ms;
        }
    }
}

@media (min-width: 40rem){
    header{
        nav{
            flex-direction: row;
            gap: 1rem;
            >a{
                margin-inline-end: auto;
            }

            ul {
                justify-content: space-between;
                li {
                    a {
                        margin-block: auto;
                    }
                }
            }

        }
    }

    .eventcard-wrapper {

        &:first-of-type .eventcard {

            position: relative;
            text-indent: 0;
            overflow: initial;
        }
    }
    .eventcard{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 1rem;
    }
}

@media(min-width: 60rem){
    .biocard {

        margin-inline: 3vw;

        li {
            border-radius: 0;
            flex-direction: row-reverse;

            img {
                width: 46vw;
                height: auto;
                border-radius: 0;

            }
        }

        .content {
            position: relative;
            padding-inline: 2rem;
            font-size: calc(0.2rem + 1.4vw); /*techniek om een minimum font-size te hebben overgenomen van Ruef M. op stackoverflow.com [1]*/
            text-align: justify;
            align-items: flex-end;

            .button{
                text-align: center;
                margin-block-start: 2rem;
            }
        }
    }
}

/*bronvermelding
1. Ruef, Marc. (15/07/2016). How to set min-font-size in CSS, Stack Overflow, https://stackoverflow.com/questions/23984629/how-to-set-min-font-size-in-css
*/