@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Mobile first */

:root {
    --primary-color: #010100;
    --secondary-color: #883231;
    --third-color: #15323B;

    --header-text-color: #D5BC68;
    --font-family-roboto: 'Roboto', sans-serif;
    --font-family-slab: 'Roboto Slab', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-roboto);
}

body {
    position: relative;
}

.language-switch {
    position: absolute;
    top: 0%;
    left: 98%;
    transform: translate(-100%, 0%);
    width: fit-content;
    z-index: 1;
    padding: 5px;
    background-color: var(--primary-color);
    color: var(--header-text-color);
    animation: fadeIn 5s ease-in;

    .language-label {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 10px;

        .nav-icon {
            fill: var(--header-text-color);
            width: 25px;
            height: 25px;
            opacity: 0.8;
            bottom: -2em;
        } 
    }

    .language-options {
        display: none;
        list-style-type: none;
        align-items: center;
        justify-content: space-evenly;
        height: 100%;
        gap: 10px;

        li {
            display: flex;

            a {
                display: block;
                height: 100%;
                width: 30px;

                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                }
            }

            .select-lang {
                border: 2px solid var(--header-text-color);
                border-radius: 100%;
            }

            .close-icon {
                fill: var(--header-text-color);
                width: 25px;
                height: 25px;
                opacity: 0.8;
                bottom: -2em;
            }
        }
    }
}

header {
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    position: absolute;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    .header-text {
        color: var(--header-text-color);
        font-family: var(--font-family-slab);
        font-size: 1.2rem;
        display: flex;
        flex-direction: column;
        gap: 12px;
        animation: fadeIn 3s ease-out;

        p {
            font-family: var(--font-family-slab);
            font-size: larger;
            font-weight: 500;
            animation: fadeIn 4s ease-in;
        }
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
        animation: fadeIn 5s ease-out;
    }

    .header-icon {
        fill: var(--header-text-color);
        width: 30px;
        height: 30px;
        opacity: 0.8;
        animation:
            fadeIn 5s ease-in,
            bounce 3s infinite;
        position: relative;
        bottom: -2em;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.about-us-container {
    background-color: var(--secondary-color);
    padding: 40px;
    color: white;

    .about-us {
        h2 {
            font-family: var(--font-family-slab);
            font-size: 2rem;
            margin-bottom: 20px;
        }

        p {
            font-size: 1.1rem;
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 20px auto;
            border-radius: 10px;
            box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.4);
        }
    }

    .mission {
        margin-top: 30px;
        h2 {
            font-family: var(--font-family-slab);
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .mission-article {
            margin-bottom: 30px;
            h3 {
                font-family: var(--font-family-slab);
                margin-bottom: 10px;
            }

            p {
                font-size: 1.1rem;
                line-height: 1.4;
                margin-bottom: 1rem;
            }
        }
    }
}

.projecten-winkel-container {
    background-color: var(--third-color);
    position: relative;
    overflow: hidden;
    padding: 40px;

    img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-25%, -50%);
        width: 250%;
        height: auto;
        opacity: 0.15;
        z-index: 0;
    }
    
    .projecten-article {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        border-bottom: #010100 2px solid;
        padding-bottom: 50px;

        h2 {
            color: #f2eabf;
            margin-bottom: 20px;
        }

        p {
            background-color: #d4bd69;
            width: 100%;
            padding: 1rem;
            border-radius: 25px;
            box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.4);
            z-index: 1;
        }
    }

    .winkel-article {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 40px;
        font-weight: bolder;
        color: #D5BC68;
        z-index: 1;
    }

    h2 {
        color: #f2eabf;
        margin-bottom: 20px;
        text-align: center;
    }

    h3:first-of-type {
        color: #f2eabf;
        text-align: center;
        margin: 0;
    }

    h3 {
        margin-left: 0.8rem;
    }

    ul {
        width: 80%;
        margin-left: 3rem;
    }
}

.past-event-container {
    background-color: #010100;
    color: white;
    padding: 40px;
    overflow: hidden;

    h3 {
        color: #f2eabf;
    }

    .img-container-past-events{
        margin-top: 25px;
        img {
            display: block;
            max-width: 100%;
            height: auto;
            margin-bottom: 25px;
            border-radius: 10px;
        }
    }

    .kalala-pastevents-article {
        margin-top: 50px;
        font-size: large;
        position: relative;

        img {
            display: block;
            max-width: 100%;
            height: auto;
            position: absolute;
            z-index: 0;
            opacity: 0.2;

            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        p {
            margin-bottom: 10px;
        }
    }
}

.section-members-container {
    background-color: var(--secondary-color);
    .members-photos-container {
        padding: 40px;
        img {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 5px;
            box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.4);
        }
    }

    .team-list-container {
        .team-list {
            padding-top: 15px;
            font-size: larger;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-items: center;
            list-style-type: none;
            color: #f2eabf;

            .team-member {
                margin-bottom: 35px;
                width: 55%;
                text-align: center;
            }

            .name {
                font-weight: 500;
            }
        }
    }
}

.join-container {
    background-color: #010100;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--header-text-color);

    h2 {
        font-family: var(--font-family-slab);
    }

    .join-container-article {
        color: #f2eabf;
        padding:15px;
        border-radius: 10px;
        background-color: var(--third-color);

        h3 {
            margin-bottom: 5px;
        }
    }
}

footer {
    background-color: #010100;
    color: var(--header-text-color);
    padding: 0 40px;
    position: relative;

    .scroll-top-icon {
        position: absolute;
        bottom: 2em;
        right: 2em;
        top: auto;
        transform: translate(50%, 100%);
        fill: var(--header-text-color);
        width: 25px;
        height: 25px;
        opacity: 0.8;
        animation: bounce 3s infinite;
    }

    .contact {
        margin-bottom: 60px;

        h1 {
            margin-bottom: 10px;
            text-align: center;
        }

        ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
            text-align: center;
            margin-bottom: 15px;
            gap: 15px;

            li {
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;

                p:first-child {
                    font-weight: 800;
                    color: var(--header-text-color);
                }

                p {
                    color: white;
                    padding: 3px;
                }

                a {
                    display: block;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    text-decoration: none;
                    padding: 3px;
                    color: white;

                    svg {
                        margin-right: 10px;
                    }
                }
            }
        }
    }

    .credits {
        font-size: small;
        border-top: #d4bd69 solid 2px;
        padding-top: 25px;

        h1 {
            margin-bottom: 10px;
            text-align: center;
        }
        
        ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
            text-align: center;
            gap: 15px;

            li {
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;

                p:first-child {
                    font-weight: 800;
                    color: var(--header-text-color);
                }

                p {
                    color: white;
                    padding: 3px;
                }

                a {
                    display: block;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    text-decoration: underline;
                    padding: 3px;
                    color: white;

                    svg {
                        margin-right: 10px;
                    }
                }
            }
        }
    }

    .copyright {
        margin-top: 1rem;
        text-align: center;
    }

    /*
    .contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        list-style-type: none;
        gap: 15px;

        li {
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;

            p:first-child {
                font-weight: 800;
                color: var(--header-text-color);
            }

            p {
                color: white;
            }

            a {
                display: block;
                display: flex;
                justify-content: center;
                align-items: center;
                text-decoration: none;
                width: 60%;
                height: 40px;
                color: white;

                svg {
                    margin-right: 10px;
                }
            }
        }
    }*/
}

/* Desktop media screen*/
/* there is no tablet layout */
@media screen and (min-width: 1100px) { 
    header {
        height: 400px;
        flex-direction: row;
        justify-content: space-evenly;

        img {
            display: block;
            max-width: 40%;
            height: 350px;
        }

        .header-icon {
            display: none;
        }
    }

    .language-switch {
        margin-top: 5px;
    }

    .language-switch:hover {
        cursor: pointer;   
    }

    .about-us-container {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        padding: 25px;

        .about-us {
            width: 80%;
            position: relative;
            height: px;
            margin-top: 40px;
            margin-bottom: 100px;

            p {
                width: 49%;
                font-size: x-large;
            }

            img {
                width: clamp(160px, 30%, 350px);
                height: auto;
                position: absolute;
                top: 0;
                right: 0;
                transform: translate(-20%, -5%);
            }
        }

        .mission {
            width: 80%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            position: relative;

            h2 {
                position: absolute;
                top: -25%;
                left: 0%;
            }

            .mission-article {
                width: 30%;
                h3 {
                    font-size: x-large;
                }

                p {
                    font-size: x-large;
                }
            }
        }
    }

    .projecten-winkel-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: baseline;
        gap: 10px;

        img {
            width: 50%;
            height: auto;
            transform: translate(-50%, -50%);
        }

        .projecten-article {
            width: 51%;
            height: 100%;
            padding: 20px;

            border-bottom: none;
            padding-bottom: 0px;

            h2 {
                width: 100%;
            }

            p {
                width: 65%;
                font-size: large;
            }
        }

        .winkel-article {
            width: 49%;
            height: 100%;
            padding: 20px;
            justify-content: center;
            align-items: center;

            h2 {
                width: 100%;
            }

            h3 {
                width: 65%;
            }

            p {
                width: 65%;
                font-size: large;
            }

            ul {
                width: 60%;
                
                li {
                    font-size: large;
                }
            }
        }
    }

    .past-event-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        h2 {
            text-align: center;
        }

        h3 {
            text-align: center;
        }

        .img-container-past-events {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            place-items: center;
            padding: 15px;
             z-index: 2;

            img {
                width: 95%;
                height: 95%;
                object-fit: cover;
                transition: 1s;
            }

            img:hover {
                transform: scale(1.05) translateY(-4px);
                transition: 1s;
            }
        }

        .kalala-pastevents-article {
            width: 30%;
            z-index: 1;
            font-size: larger;
        }
    }

    .section-members-container {
        display: flex;
        justify-content: space-between;
        padding: 50px;

        .members-photos-container {
            width: 55%;
            padding: 0px;
        }

        .team-list-container {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40%;

            .team-list {
                width: 95%;
                height: 80%;
                justify-content: space-evenly;
                
                
                .team-member {
                    margin-bottom: 0px;
                    font-size: larger;
                    width: 35%;
                }
            }
        }
    }

    .join-container {
        justify-content: space-evenly;
        gap: 1.5rem;
        
        h1 {
            width: 100%;
        }

        .join-container-article {
            width: 48%;
            text-align: center;
            font-size: larger;
        }
    }

    footer {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        flex-wrap: wrap;
        text-align: left;

        .scroll-top-icon {
            width: 30px;
            height: 30px;
            cursor: pointer;
        }

        .contact {
            flex: 2;
            margin-bottom: 0px;
            text-align: left;
            border-right: solid 2px #d4bd69 ;
            padding-right: 20px;

            ul {
                flex-direction: row;
                justify-content: space-evenly;
                font-size: larger;
            }
        }

        .credits {
            flex: 1;
            border: none;
            padding-top: 0px;

            ul {
                flex-direction: row;
                font-size: larger;
            } 
        }

        .copyright {
            flex-basis: 100%;
            margin-top: 2rem;
            text-align: center;
            font-size: large;
        }
    }
}