@import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Saira", sans-serif;
    color: black;
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    margin: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 400;

    text-align: center;
}

a {
    text-decoration: none;
    color: red;
}

nav a {
    color: black;
    padding: 0.5rem;
    font-weight: 500;
}
nav a:hover {
    background-color: #7aaf85;
    transition: all 0.3s;
}

nav {
    display: flex;
    place-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f2edeb;
}

ul {
    display: flex;
    list-style-type: none;
    text-align: center;
}
li {
    padding: 0.5rem;
}

.checkbtn {
    display: none;
    margin: 1rem;
}
#navcheck {
    display: none;
}

section {
    height: auto;
    width: 60vw;

    padding-bottom: 5rem;

    display: flexbox;
    margin: auto;
    text-align: justify;
    place-content: center;
}

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

    section {
        width: 95vw;
    }

    nav {
        flex-direction: column;
        background-color: #f2edeb;
    }
    nav li {
        margin-top: 1rem;
    }

    ul {
        flex-direction: column;
        display: none;
        text-align: center;
    }

    .checkbtn {
        display: flex;
        order: 1;
        align-self: center;
    }

    #navcheck:checked ~ ul {
        display: flex;
    }

}