/* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 */
@font-face {
    font-family: Montserrat;
    src: url("../fonts/Montserrat-VariableFont_wght.ttf");
    font-display: swap;
}

:root {
    --main-color: #396D54;
    --text-color: #333333;
    --off-white-color: #F7F7F7;

    --page-max-width: 130rem;
    --header-max-width: 100rem;
    --section-max-width: 80rem;
    --page--horizontal-padding: 10rem;
    --page--vertical-padding: 1rem;
    --standard-section-margin: 5rem;
}

@media only screen and (max-width: 1500px) {
    :root {
        --section-max-width: 60rem;
    }
}

@media only screen and (max-width: 1125px) {
    :root {
        --page--horizontal-padding: 5rem;
        --standard-section-margin: 3.5rem;
    }
}

@media only screen and (max-width: 800px) {
    :root {
        --page--horizontal-padding: 2.5rem;
    }
}

@media only screen and (max-width: 450px) {
    :root {
        --page--horizontal-padding: 2rem;
    }
}

* {
    margin: 0;
    padding: 0;
}

button {
    border: none;
}

html {
    background-color: var(--off-white-color);
    font-size: 16px;
    font-family: "Montserrat", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", 
  Helvetica, Arial, "Lucida Grande", sans-serif;
    margin: 0 auto;
}

body {
    max-width: var(--page-max-width);
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6, p {
    color: var(--text-color);
}

h1 {
    font-size: 5.375rem;
    font-weight: 900;
}

h2 {
    font-size: 2.375rem;
    font-weight: 900;
}

h3 {
    font-size: 1.75rem;
    font-weight: 900;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 200;
}

p, a, li {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

button {
    font-size: 0.75rem;
    font-weight: 400;
}

main {
    margin: 5rem var(--page--horizontal-padding) var(--page--vertical-padding) var(--page--horizontal-padding);
}

main > div {
    max-width: var(--section-max-width);
}

main > div:first-child {
    max-width: none;
}

/* @slideShow */

.slideShow {
    margin: var(--standard-section-margin) auto var(--standard-section-margin) auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideShow > h5 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.slideShow > div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    margin: 1rem 0;
    height: 6rem;
}

.slideShow > div:last-child{
    gap: 0;
    height: auto;
}

.slideShow img {
    width: 6.25rem;
    height: auto;
}

.slideShow button {
    margin: 0.25rem;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 50%;
}

@media only screen and (max-width: 720px) {
    .slideShow > div {
        max-width: 20rem;
        height: 14rem;
        gap: 2.5rem;
    }
}

/* @slideShow */
/* nav */

nav {
    margin: 2rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    z-index: 1000;
}

nav li {
    list-style-type: none;
}

#menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}

#menu > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

#menu > ul a {
    text-decoration: none;
    color: var(--off-white-color);
    padding: 0.5rem;
}

#menu > ul > li:nth-child(1) > a {
    background-color: transparent;
    border: 0.1rem solid var(--off-white-color);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
}

#menu > ul > li:nth-child(1) > a:hover {
    background-color: var(--off-white-color);
    color: var(--text-color);
}

#menu > ul a:hover {
    text-decoration: underline;
    text-underline-offset: 0.5rem;
}

#languageToggle {
    position: relative;
    display: flex;
    flex-direction: row;
    border: 0.1rem solid var(--off-white-color);
    border-radius: 0.75rem;
}

#languageSlider {
    background-color: var(--off-white-color);
    width: 1rem;
    height: 1rem;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    border-radius: 0.6rem;
}

#languageToggle a {
    margin: 0;
    padding: 0.2rem 0.5rem;
    display: flex;
    height: 2rem;
    width: 2rem;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

#languageToggle a:nth-child(1) {
    color: var(--off-white-color);
}

#languageToggle a:nth-child(2) {
    color: var(--text-color);
}

nav > a:first-child > img:first-child {
    height: 3.5rem;
    width: 2.755375rem;
}

#menuButton {
    display: none;
    padding: 1rem;
    background-color: unset;
}

#menuButton img {
    width: 1.875rem;
    height: 1.125rem;
}

#closeButton {
    display: none;
}

@media only screen and (max-width: 900px) {
    nav {
        margin: 1.5rem;
    }

    #menuButton {
        display: unset;
    }

    #menu {
        display: none;
    }
}

@media only screen and (max-width: 900px) {
    .mobileMenu > a:first-child > img {
        display: none;
    }
    .mobileMenu {
        position: fixed;
        margin: 0;
        padding: 0;
        top: 0;
        left: 0;
        height: 100%;
        background-color: var(--off-white-color);
        align-items: unset;
    }

    .mobileMenu #menuButton {
        display: none;
    }

    .mobileMenu #closeButton {
        display: unset;
        background-color: transparent;
        justify-self: flex-end;
        padding: 2rem;
    }

    .mobileMenu #closeButton img {
        width: 1.3rem;
        height: 1.3rem;
    }

    .mobileMenu #menu {
        display: grid;
        grid-template-rows: auto 1fr 1fr;
        gap: 0;
    }

    .mobileMenu #menu > ul a {
        color: var(--text-color);
    }

    .mobileMenu #menu > ul > li:nth-child(1) > a {
        margin: 0;
        padding: 0.5rem;
    }

    .mobileMenu #menu > ul > li:nth-child(1) > a:hover {
        text-decoration: underline;
        text-underline-offset: 0.5rem;
    }

    .mobileMenu #menu {
        flex-direction: column;
        justify-content: space-between;
    }

    .mobileMenu #menu > ul {
        flex-direction: column;
        align-items:flex-start;
        width: 100vw;
        align-self: flex-start;
        margin-top: 1rem;
    }

    .mobileMenu #menu li {
        margin-left: 2rem;
    }

    .mobileMenu #menu > ul a {
        font-size: 1.75rem;
        font-weight: 900;
    }

    .mobileMenu #languageToggle {
        border: 0.1rem solid var(--main-color);
        width: 6rem;
        justify-self: center;
        align-self: flex-end;
        margin-bottom: 2rem;
    }

    .mobileMenu #languageToggle a:nth-child(1) {
        color: var(--main-color);
    }

    .mobileMenu #languageToggle a:nth-child(2) {
        color: var(--off-white-color);
        z-index: 2;
    }

    .mobileMenu #languageSlider {
        background-color: var(--main-color);
        z-index: 1;
    }
}

/* nav */
/* header */

video {
    width: 100%;
    height: 75vh;
    object-fit: cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: -2;
    filter: brightness(50%);
}

#header {
    max-width: var(--header-max-width);
    height: calc(75vh - 15rem);
    padding-bottom: 2.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#header h1 {
    max-width: 95rem;
    margin-bottom: 1rem;
}

#header h1, #header h5 {
    color: var(--off-white-color);
}

@media only screen and (max-width:1600px) {
    h1 {
        font-size: 4rem;
    }
}

@media only screen and (max-width:1000px) {
    h1 {
        font-size: 3rem;
    }
}

@media only screen and (max-width:500px) {
    h1 {
        font-size: 1.65rem;
    }

    h5 {
        font-size: 1.1rem;
    }

    video {
        height: 75vh;
    }

    #header {
        padding-bottom: 3rem;
    }
}

/* header */
/* about */

#about {
    display: flex;
    flex-direction: row;
    margin: var(--standard-section-margin) auto;
}

#about div {
    margin-right: 3rem;
}

#about h2 {
    margin-bottom: 2rem;
}

#about span {
    color: var(--main-color);
}

#about img {
    margin-left: 3rem;
    margin-top: 5rem;
    max-width: 25rem;
    max-height: 17rem;
    box-shadow: 1rem 1rem 2rem rgb(0 0 0 / 15%);
    border-radius: 0.75rem;
}

@media only screen and (max-width: 1000px) {
    #about {
        flex-direction: column;
        align-items: center;
    }

    #about div {
        margin-right: 0rem;
        margin-bottom: 1.5rem;
    }
    
    #about img {
        margin-top: 1.5rem;
        margin-left: 0rem;
    }
}

@media only screen and (max-width: 500px) {
    #about h2 {
        font-size: 2rem;
    }

    #about img {
        max-width: 17rem;
        max-height: 12rem;
    }
}

/* about */
/* projects */

#project {
    max-width: var(--section-max-width);
    margin: var(--standard-section-margin) auto;
}

#project h2 {
    margin-bottom: 3rem;
}

#project span {
    color: var(--main-color);
}

#projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4rem;
}

#projects > div:nth-child(even){
    grid-column-start: 2;
    grid-column-end: 2;
    grid-row-end: span 2;
    justify-self: start;
    align-self: center;
}

#projects > div:nth-child(odd) {
    grid-column-start: 1;
    grid-column-end: 1;
    justify-self: end;
}

.card {
    background-color: white;
    padding: 0.4rem;
    border-radius: 0.75rem;
    height: 19.5625rem;
    width: 22.5625rem;
    box-shadow: 1rem 1rem 2rem rgb(0 0 0 / 15%);
}

.card img {
    border-radius: 0.5rem;
    width: 100%;
    height: 80%;
    aspect-ratio: 1;
    object-fit: cover;
}

.card div {
    padding: 1rem;
}

.card h4 {
    color: var(--main-color)
}

@media only screen and (max-width: 1000px) {
    #projects {
        display: flex;
        flex-direction: column;
    }

    .card {
        justify-self: center;
        align-self: center;
    }
}

@media only screen and (max-width: 500px) {
    #projects {
        gap: 3rem;
    }
    #project h2 {
        font-size: 2rem;
    }

    .card {
        height: 15.65rem;
        width: 18.05rem;
    }

    .card img {
        height: 79%;
    }

    .card > div {
        padding: 0.2rem 1rem;
    }
}

/* projects */
/* partners */

#partners {
    margin-top: var(--standard-section-margin)
}

/* partners */
/* maatschappelijkePartners */

#maatschappelijkePartners {
    margin-top: var(--standard-section-margin)
}

/* maatschappelijkePartners */
/* footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: var(--text-color) 0.05rem solid;
    padding: 1rem 0;
    margin: 1rem var(--page--horizontal-padding);
}

footer > div:first-child, footer > div:last-child {
    display: flex;
    flex-direction: row;
    margin: 0;
    align-items: center;
}

footer > div > * {
    margin: 0 0.5rem;
}

footer > div:first-child > img {
    height: 3.15rem;
    width: 2.5rem;
}

footer > div:last-child > a {
    height: 2rem;
    width: 2rem;
    background-color: var(--main-color);
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
}

footer > div:last-child > img {
    margin: auto;
}

@media only screen and (max-width: 800px) {
    footer {
        margin: 0 1rem;
        flex-direction: column;
        align-items: center;
    }

    footer > div:first-child {
        margin: 0;
    }

    footer > div:last-child {
        margin: 1rem 0 0 0;
    }
}


/* footer */