:root {
    --green-shade: #5e7a3d;
    --green: #8ca471;
    --green-light: #dae6c8;

    --blue-light: #e2f4ff;
    --blue: #288ac5;
    --blue-shade: #2a4d7f;
    --footer-bg: #2f2f31;

    --header-height: 85px;

    --body-font: "Open Sans", Arial, sans-serif;
    --title-font: "Fredoka", Arial, sans-serif;

    --side-padding: 15px;
    --section-padding: 40px;

    --block-shadow: 0px 2px 5px #00000017;
}

* {
    box-sizing: border-box;
}

html {
  scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    padding-top: var(--header-height);
    
    font-family: var(--body-font);
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--title-font);
}

li, td {
    text-align: left;
}

header {
    height: 85px;

    width: 100%;
    max-width: 100vw;

    display: flex;

    position: fixed;
    top: 0;
    left: 0;
    
    z-index: 999;
    background-color: white;
    align-items: center;
    justify-content: center;

    box-shadow: var(--block-shadow);
}

header .content-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--side-padding);
}

#header-logo {
    max-width: 320px;
    height: 100%;

    display: flex;
    align-items: center;
    font-family: var(--title-font);
    font-weight: 500;
    font-size: 33px;
    gap: 10px;
}

#header-logo img {
    height: 75%;
}

#header-logo .darkblue {
    color: var(--blue-shade)
}

#header-logo .blue {
    color: var(--blue)
}

#header-logo .green {
    color: var(--green)
}

section.green {
    background-color: var(--green-light);
}

section.green h1 {
    color: var(--green-shade);
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    font-family: Anton, Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    color: var(--blue-shade);
    text-decoration: none;
}

nav a:hover {
    color: var(--green);
}

#afspraak-button {
    display: flex;
    align-items: center;
    color: white;
    background-color: var(--green);
    height: 36px;
    padding: 0 25px;
    border-radius: 18px;
}

.content-container {
    width: 100%;
    max-width: 1000px;
    padding: var(--section-padding) var(--side-padding);
}

section {
    justify-content: center;
    display: flex;
}

button:not(:disabled) {
    cursor: pointer;
}

#open-mobile-menu {
    --btn-size: 30px;
    --open-line-width: 40px; /* == sqrt(30^2 * 2) */
    --line-height: 4px;

    max-width: var(--btn-size);
    width: var(--btn-size);
    height: calc(var(--btn-size) - var(--line-height));

    border: none;
    
    padding: 0;
    margin: 0;
    margin-right: calc((var(--header-height) - var(--btn-size) - var(--side-padding)) / 2);

    background-color: transparent;

    position: relative;
}

#open-mobile-menu > div {
    height: 4px;
    width: var(--btn-size);

    border-radius: 2px;
    background-color: var(--green);

    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;

    transition: 
        width ease-in-out 200ms,
        transform ease-in-out 200ms,
        top ease-in-out 200ms,
        opacity linear 150ms;
}

#open-mobile-menu > div:nth-of-type(1) { 
    top: 0%;
}
#open-mobile-menu > div:nth-of-type(3) { 
    top: 100%;
}

#open-mobile-menu.open > div:nth-of-type(1),
#open-mobile-menu.open > div:nth-of-type(3) { 
    width: var(--open-line-width);
    top: 50%;
}
#open-mobile-menu.open > div:nth-of-type(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
#open-mobile-menu.open > div:nth-of-type(3) { 
    transform: translate(-50%, -50%) rotate(-45deg);
}
#open-mobile-menu.open > div:nth-of-type(2) {
    opacity: 0;
}

#open-mobile-menu {
    display: none;
}

@media screen and (max-width: 900px) {
    #open-mobile-menu {
        display: block;
    }

    #menu-links {
        width: 100%;

        flex-direction: column;
        gap: 0;

        position: absolute;
        top: var(--header-height);
        right: -105%;
        background-color: white;

        transition: right ease-in-out 200ms;
    }

    #menu-links a {
        height: 55px;
        width: 100%;

        display: flex;
        justify-content: center;
        align-items: center;

        color: var(--footer-bg);
        background-color: #fff;
    }

    #menu-links a:nth-of-type(2n + 1) {
        background-color: #f1f1f1;
        border-radius: 0;
    }

    #menu-links.open {
        right: 0;
    }
}


@media screen and (max-width: 415px) {

    #header-logo {
        display: grid;
        grid-template-columns: 55px 1fr;
        gap: 0;
    }

    #header-logo img {
        /* height: 70%; */
        height: 65px; 
        grid-row: span 2;
    }

    #header-logo span {
        margin-left: 10px;
    }

    #header-logo span:first-of-type {
        align-self: flex-end;
        font-size: 29.5px;
        margin-bottom: -8px;
    }
    #header-logo span:last-of-type {
        align-self: flex-start;
        font-size: 24px;
    }


}

.footer {
    font-size: 10px;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;

}

.footer-item {
    padding: 10px;
}