nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

nav ul li {
    float: left;
    border-right: 1px solid #bbb;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    height: 22px;
}

nav a:hover {
    background-color: rgb(255, 84, 84);
}

nav ul li a.active {
    background-color: rgb(255, 84, 84);
    color: white;
}

main {
    overflow: hidden;
    border-style: solid;
    background-color: rgb(255, 84, 84);
    color: white;
    padding-bottom: 20px;
    padding-top: 20px;
}

figure {
    background-image: url(../afbeeldingen/mezelf.jpg);
    background-size: cover;
    height: 600px;
    
}

body {
    background-color: lightcoral;
}

header nav ul li a :nth-child(1) {
    margin-right: 100px;
}

main img {
    padding: 10px;
}

main p {
    float: right;
    padding-left: 15px;
    font-size: 30px;
}

.article-content {
    padding: 10px;
}

article {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 10px auto;
}

article section {
    color: white;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 84, 84);
    margin: 20px;
    font-family: "Anton";
}

footer {
    text-align: center;
    color: white;
    padding-top: 10px;
    background-color: #333;
}

#menu-toggle {
    display: none;
}

label {
    display: none;
    font-size: 30px;
    color: rgba(202, 202, 202, 0.721);
    cursor: pointer;
    height: 50px;
    background-color: #333;
}


@media screen and (max-width: 480px) {
    nav {
        position: relative;

    }

    label {
        display: block;
    }

    #menu-toggle:checked~ul {
        display: flex;
    }

    nav ul li {
        width: 100%;
        height: 50px;
        text-align: center;
        display: block;
    }

    nav a:hover {
        background-color: #4b4b4b;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 50px;
        left: 0;
        padding: 0px;
        z-index: 9;
    }

    article {
        grid: none;
    }

    article section {
        padding: 0px;
    }

    main {
        display: grid;
        justify-items: center;
        padding: 0;
    }
}