:root {
    --main-color: #00DAFF;
    --second-color: #00BBFF;
    --font-size: 'Agency FB', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background: black;
}

main {
    padding: 2rem;
    font-family: var(--font-size);
    color: var(--main-color);
}

.header {
    background: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border: 0.1rem solid var(--main-color);
    color: white;
}

.logo {
    width: 20rem;
}

.fa {
    font-size: 3rem;
}

.hamburger {
    background: none;
    color: var(--main-color);
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 28px;
    left: 0;
}

.navbar {
    margin: 0rem 0rem 0rem 0rem;
    padding: 1rem;
    width: 20%;
    background: rgba(0, 0, 0, 0.8);
    font-size: 3rem;
    list-style: none;
    display: none;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    border: 0.1rem solid var(--main-color);
}

a {
    border-bottom: 0.2rem solid var(--main-color);
    text-decoration: none;
    color: var(--main-color);
}

.nav-item:hover,
.hamburger:hover {
    cursor: pointer;
}

/* Code van de pagina */

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    margin: 1rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 5rem;
}

.hero-img {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    object-fit: cover;
}

.hero-text {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: right;
    max-width: 45vw;
}

/* Code van tijdlijnen */

.geschiedenis {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.geschiedenis>h1 {
    font-size: 5rem;
    margin: 5rem 0rem 2rem 0rem;
}

.geschiedenis>p {
    font-size: 3rem;
}

ul {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: 60%;
    margin-inline: auto;
    font-size: 1.5rem;
}

ul::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgb(225, 225, 225);
    border-radius: calc(var(--line-w) / 2);
}

ul li:not(:last-child) {
    margin-bottom: var(--row-gap);
}

ul li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}

ul>li>img {
    max-width: 20rem;
}

.top {
    width: 5rem;
    height: 8rem;
    background: var(--main-color);
    border: none;
    font-size: 2.5rem;
    font-family: sans-serif;
    color: black;
    position: fixed;
    bottom: 1rem;
    left: 5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    rotate: 270deg;
}

@media only screen and (max-width: 720px) {
    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .navbar {
        flex-direction: column;
        width: 100%;
    }

    .hero {
        flex-direction: column;
    }

    .hero-text {
        max-width: 70vw;
    }

    img {
        max-width: 70vw;
    }
}

@media only screen and (max-width: 550px) {
    .top {
        display: none;
    }
}

@media (min-width: 40rem) {
    ul {
        grid-template-columns: 1fr var(--line-w) 1fr;
    }

    ul::before {
        grid-column: 2;
    }

    ul li:nth-child(odd) {
        grid-column: 1;
    }

    ul li:nth-child(even) {
        grid-column: 3;
    }

    ul li:nth-child(2) {
        grid-row: 2/4;
    }
}