@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300..900;1,300..900&display=swap");
body{
    height: 100vh;
    width: 100%;
    font-family: "Roboto", Arial, sans-serif;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body>header{
    width: 100%;
    height: fit-content;

    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0px;

    background-color: white;
    padding: 10px 0 10px 0;
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.3);
}
header>nav{
    width: 88%;
    height: 100%;
    display: flex;
    justify-content: space-between;
}
header>nav>a img{
    width: auto;
    height: 55px;
}
header>nav ul{
    width: fit-content;
    height: fit-content;
    display: flex;
    gap: 50px;
    padding-top: 22px;
}
header>nav ul a{
    font-size: 1.05em;
    color: black;
    text-decoration: none;
}
header>nav ul li:nth-child(4){
    font-size: 1.1em;
    text-decoration: underline;
}
header>nav ul li:hover{
    transform: scale(1.05,1.05);
    text-decoration: underline;
}
#sidebar-checkbox, .open-sidebar-button, .close-sidebar-button{
    display: none;
}
main{
    width: 85%;
    display: flex;
    flex-direction: column;
}
main>h1{
    font-size: 1.5em;
    text-align: center;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 20px;
}
main>article{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 13px;
    margin-bottom: 26px;
}
main>article h2{
    font-size: 18px;
    font-weight: 500;
    margin-top: 7px;
}
main>article section{
    width: 100%;
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 5px;
}
main>article:first-of-type section:last-child{
    margin-top: -7px;
}
main>article section.extra{
    display: inline-flex;
    justify-content: center;
    text-align: start;
    gap: 5px;
}
main>article section.extra>.container>p:nth-child(3){
    margin-bottom: 10px;
}
main>article:first-of-type section.extra aside img{
    width: auto;
    height: 101px;
}
main>article section.extra aside img{
    width: auto;
    height: 65px;
}
main>article b{
    font-weight: 500;
}
footer{
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: end;

    box-sizing: border-box;
    padding: 80px 0 30px 0;
}
footer p{
    font-size: 18px;
}
@media (min-width: 3901px){
    main{
        width: 25%;
    }
    header>nav{
        width: 30%;
    }
}
@media (min-width: 3000px) and (max-width: 3900px){
    main{
        width: 40%;
    }
    header>nav{
        width: 50%;
    }
}
@media (min-width: 2500px) and (max-width: 3000px){
    main{
        width: 55%;
    }
    header>nav{
        width: 65%;
    }
}
@media (min-width: 2000px) and (max-width: 2500px){
    main{
        width: 65%;
    }
    header>nav{
        width: 75%;
    }
}
@media (min-width: 1201px) and (max-width: 1600px){
    main{
        width: 85%;
    }
}

@media (min-width: 769px) and (max-width: 1201px){
    main{
        width: 96%;
    }
}

@media (max-width: 769px){
    body{
        height: 100%;
    }
    header>nav{
        width: 96%;
        align-items: center;
        padding: 0 10px 0 3px;
    }
    header>nav>a img{
        height: 45px;
    }
    header>nav ul{
        width: 50%;
        height: 100vh;

        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%; 
        z-index: 99;

        box-shadow: -2px 0px 10px 1px rgba(0, 0, 0, 0.3);
        padding: 15px 15px 20px 15px;
        gap: 15px;
        box-sizing: border-box;
        background-color: white;

        transition: all 0.3s ease-in-out;
    } 
    header>nav ul li{
        width: 100%;
    }   
    header>nav ul li a{
        width: 100%;
        display: block;
    }      
    header>nav ul li:hover{
        text-decoration: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.7);
    }
    header>nav ul li:nth-child(4){
        font-size: 1.1em;
        text-decoration: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.7);
    }
    header>nav label.open-sidebar-button, header>nav label.close-sidebar-button{
        cursor: pointer;
    }
    .open-sidebar-button>i{
        font-size: 32px;
    }
    .open-sidebar-button, .close-sidebar-button{
        display: block;
    }
    .close-sidebar-button{
        margin-left: auto;
    }
    .close-sidebar-button{
        height: 32px;
    }
    label#overlay{
        display: none;
    }
    #sidebar-checkbox:checked ~ ul{
        right: 0;
    }
    #sidebar-checkbox:checked ~ #overlay{
        display: block;
        background-color: rgba(0, 0, 0, 0.3);
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
    }
    main{
        width: 95%;
    }
    main>h1{
        margin-top: 40px;
        margin-bottom: 25px;
    }
    footer{
        padding: 34px 0 30px 0;
    }
}