@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300..900;1,300..900&display=swap");
body{
    width: 100%;
    height: 100vh;
    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(3){
    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: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main>article {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main>article h1{
    font-size: 1.75em;
    text-align: center;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 2px;
}
main>article p{
    width: 80%;
    margin-top: 18px;

    font-size: 16px;
    line-height: 27px;
    text-align: center;
}
main>article p:nth-child(4){
    margin-top: 32px;
}
main>article p:nth-child(5){
    margin-top: 0px;
    margin-bottom: 14px;
}
main>article p b{
    font-weight: 700;
}
main>article p.italic{
    font-style: italic;
}
main>article>div.ratings{
    width: 100%;
    height: fit-content;


    margin: 10px 0 5px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
}
main>article div.ratings a img{
    width: auto;
    height: 36px;
}
main>article div.ratings a:first-child img{
    width: auto;
    height: 28px;
}
main>article>aside:last-child{
    width: 100%;
    height: fit-content;

    margin-top: 45px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
}
main>article aside:last-child img{
    width: auto;
    height: 55px;
}
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: 20px;
}
@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%;
    }
    main>article p{
        width: 95%;
    }
}

@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(3){
        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: 96%;
    }
        main>article h1{
        font-size: 1.70em;
    }
    main>article p{
        width: 100%;
        margin-top: 15px;

        font-size: 15px;
        line-height: 23px;
    }
    main>article p:nth-child(4){
        margin-top: 29px;
    }
    main>article p:nth-child(5){
        margin-top: 0px;
        margin-bottom: 11px;
    }
    main>.container{
        width: 100%;
        height: fit-content;

        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px 20px;
    }
    main>article>aside{
        gap: 10px 25px;
    }
    main>article aside a img{
        height: 47px;
    }
    footer{
        padding: 60px 0 30px 0;
    }
}