@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300..900;1,300..900&display=swap");
body{
    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(2){
    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: 78%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main>h2{
    margin-top: 50px;
    margin-bottom: 10px;
    font-size: 1.5em;
    text-align: center;
}
main>h2:first-of-type{
    margin-bottom: 0px;
}
main .card{
    width: 100%;
    height: fit-content;
    display: inline-flex;

    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.2);
}
main .card>.card-image{
    width: 33.5%;
    height: 100px;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: start;
    object-fit: cover;
    object-position: center 0;
}
main .card .card-image.right{
    border-radius: 0 10px 10px 0;
    border-left: 1px solid rgb(228, 228, 228);
}
main .card>article{
    width: 66.5%;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 30px 3.5% 15px 3.5%;
    box-sizing: border-box;
}
main .card>article>header{
    width: 100%;
    height: 35px;
}
main .card>article>header>a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    font-size: 21px;
    font-weight: 500;
    color: black;
    text-decoration: none;
}
main .card>article>header>a img{
    max-width: 100%;
    height: 100%;
}
main .card>article>p{
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    margin-top: 23px;
    word-spacing: 1px;
}
main .card>article>p b{
    font-weight: 500;
}
main .card>article>a{
    display: flex;
    align-items: end;
    font-size: 17px;
    margin-top: 25px;
}
main>.container{
    width: 100%;
    display: inline-flex;
}
main>.container .map{
    width: 57%;
    height: 500px;
}
main>.container>article{
    width: 43%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    font-size: 16px;
}
main>.container>article>p{
    line-height: 19px;
    margin-bottom: 5px;
    text-align: justify;
}
main>.container>article>section>p{
    line-height: 19px;
    margin-bottom: 5px;
}
main>.container>article b{
    font-weight: 500;
}
main>.container>article i{
    font-style: italic;
}
main>.container>article>aside>img{
    width: 100%;
    object-fit: scale-down;
}
main>div.separator{
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: rgb(225, 225, 225);
    margin: 50px 0 10px 0;
}
footer{
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    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%;
    }
    main>.container .map{
        height: 450px;
    }
}

@media (min-width: 769px) and (max-width: 1201px){
    main{
        width: 96%;
    }
    main>.container .map{
        height: 320px;
    }
    main>.container>article>aside>img{
        height: 150px;
        object-fit: cover;
        object-position: 0 -50px;
    }
}

@media (max-width: 769px){
    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(2){
        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>h2{
        margin-top: 40px;
        font-size: 1.4em
    }
    main .card{
        display: flex;
        flex-direction: column;

        margin-top: 25px;
        box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.2);
    }
    main .card>.card-image{
        width: 100%;
        height: 225px;
        border-radius: 10px 10px 0 0;
        display: flex;
        align-items: start;
        object-fit: cover;
    }
    main .card .card-image.right{
        border-radius: 0 0 10px 10px;
        border-left: none;
    }
    main .card>article{
        width: 100%;
        padding: 20px 3.5% 15px 3.5%;
    }
    main .card>article>header{
        height: fit-content;
        margin-bottom: 3px;
    }
    main .card>article>header>a{
        flex-wrap: wrap;
        font-size: 18px;
    }

    main .card>article>header>a img{
        height: 30px;
        width: auto;
    }
    main .card>article>p{
        margin-top: 11px;
        font-size: 15px;
    }
    main .card>article>a{
        flex: 1;
        margin-top: 14.5px;
    }
    main>div.separator{
        margin: 10px 0 0 0;
    }
    main>.container{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    main>.container .map{
        width: 100%;
        height: 200px;
    }
    main>.container>article{
        width: 100%;
        font-size: 15px;
        gap: 5px;
        padding: 4px 0 0 0;
    }
    main>.container>article>section>p{
        line-height: 17px;
        margin-bottom: 2px;
    }
    main>.container>article>aside>img{
        width: 100%;
        height: 150px;
        object-fit: cover;
        object-position: 0 -50px;
    }
    footer{
        padding: 60px 0 30px 0;
    }
}