@import url('https://fonts.googleapis.com/css2?family=Iosevka+Charon:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

body{
    background-color: deepskyblue;
}

h1{
    color: yellow;
    text-align: center;
    font-family: "Iosevka Charon", monospace;
    font-weight: 400;
    font-style: normal;
}

h2{
    color: white;
}

nav {
    background-color: dodgerblue;
    padding: 10px;
    }

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    }

nav li {
    margin: 0 20px;
    }

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    }

nav a:hover {
    color: yellow;
    }

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: deepskyblue;
}

footer{
    background-color: dodgerblue;
    color: white;
    text-align: center;
    margin-top: 40px;
    padding: 2px;
}

/* responsiveness navigatie */
/* verberg de echte checkbox */
.nav-check {
    display: none;
}

/* menuknop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* veranderd de 3 streepjes naar een kruisje wanneer er op geklikt wordt */
.nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.nav-check:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* gsm opmaak */
@media (max-width: 639px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    #mainNav {
        display: none;
        width: 100%;
    }

    /* toont het menu wanneer de menuknop is aangeklikt */
    .nav-check:checked ~ #mainNav {
        display: block;
    }

    #mainNav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        padding: 10px 15px;
    }
}