*{ 
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.center{ 
    display: flex;
    max-width: 1100px;
    padding:1% 1%;
    margin:0 auto;
    flex-wrap: wrap; 
}

.menu{display: flex;width:100%; padding-bottom: 1%;}

.menu-mobile{display: none}

.logo-menu{width:50%;}

.items-menu{
    width:50%;
    text-align: right;
}

.items-menu a{
    color: hsl(236, 13%, 42%);
    text-decoration: none;
    display: inline-block;
    margin:0 10px;
}

.items-menu a:hover{
    color: hsl(35, 77%, 62%);
}

.main{
    display: flex;
}

.higlight{
    width: 66%;
    display: flex;
}

.top-image img{max-width: 100%}

.top-image-mobile img{max-width: 100%; display: none;}



.description{
    display: flex;
    width: 100%;
}

.title{
    display: flex;
    width: 50%;
    padding-top: 2%;
}

.title h1{
    font-weight: 800;
    font-size: 60px;
    line-height: 90%;
}

.description-content{
    width: 50%;
    color: hsl(233, 8%, 79%);
    padding: 2%;
    font-size: 15px;
    line-height: 160%;
}

.description-content p{
    margin-bottom: 45px;
}

.description-content a{
    color: hsl(36, 100%, 99%);
    text-decoration: none;
    background-color: hsl(5, 85%, 63%);
    padding: 10px 20px;
}

.description-content a:hover{
    background-color: hsl(240, 100%, 5%);
}

.new{
    background-color: hsl(240, 100%, 5%);
    margin-left: 1%;
    padding: 2%;
    display: flex;
    flex-direction: column;
}

.new-item{
    flex-grow: 1;
}

.solid{
    color: hsl(236, 13%, 42%);
    margin-bottom: 30px;
}

.new h2{
    color: hsl(35, 77%, 62%);
    flex-grow: 1;
}

.new a{
    text-decoration: none;
    color: hsl(36, 100%, 99%);
}

.new a:hover{
    color: hsl(35, 77%, 62%);

}

.new p{
    color: hsl(236, 13%, 42%);
    line-height: 140%;
    margin-top: 10px;
}



.trending{
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding-top: 50px;
    flex-wrap: nowrap;
}

.trendn{
    display: flex;
}

.trendn img{
    width: 85%;
}

.trend-text h2{
    color: hsl(233, 8%, 79%);
    margin-bottom: 20px;
}

.trend-text a{
    text-decoration: none;
    color: hsl(240, 100%, 5%);
    font-weight: 700;
}

.trend-text a:hover{
    color: hsl(5, 85%, 63%);
}

.trend-text p{
    margin-top: 20px;
    color: hsl(236, 13%, 42%);
}

.footer{
    display: flex;
    width: 100%;
    
}

.challenge{
    width: 50%;
    align-self: baseline;
    padding-top: 12px;
}

.autor{
    width: 50%;
    text-align: right;
}

.close-menu {
    display: none;
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
}

@media screen and (max-width: 768px) {
    .top-image img{
        display: none;
    }
    .top-image-mobile img{
        display: block;
        padding: 1%;
    }

    .main{
        flex-direction: column;
    }

    .description{
        flex-direction: column;
    }

    .title{
        
        width: 100%;
    }

    .title h1{
        font-size: 2.7rem;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .description-content{
        width: 100%;
    }

    .description-content p{
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .description-content a{
        padding: 15px 40px;
    }

    .new {
        width: 100%;
        margin-top: 4rem;
        padding: 4%;
    }

    .new h2{
        margin-bottom: 1.5rem;
    }

    .new-item p{
        margin-bottom: 1.5rem;
    }

    .trending{
        flex-direction: column;
        padding: 1%;
        width: 100%;
        margin-top: 2rem;

    }

    .trendn{
        width: 100%;
        margin-top: 2rem;
    }

   

    .img-trend img{
        width: 80%;
    }

    .trend-text{
        width: 100%;
    }

    #lap {
        width: 80%;
    }

    .items-menu{
        display: none;
    }

   .menu-mobile{
        display: none;
        width:50%;
        position: fixed;
        background-color: beige;
        top: 0;
        right: 0;
        width: 70%;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
    }

    .menu-mobile a{
        display: block;
        text-align: center;
        color: hsl(236, 13%, 42%);
        text-decoration: none;
        line-height: 200%;
        font-size: 1.5rem;
    }

    .items-menu-mobile{display: flex; width: 50%;}

    .close-menu-label::after{
        content: url(https://raw.githubusercontent.com/Edluel/news-homepage/70a5ee8e3ea4ed18fb8e885d80a1a65ae8f96c7e/images/icon-menu.svg);
        z-index: 2;
        position: fixed;
        top: 8px;
        right: 8px;
        cursor: pointer;
    }

    .close-menu:checked~.close-menu-label::after{
        content: url(https://raw.githubusercontent.com/Edluel/news-homepage/70a5ee8e3ea4ed18fb8e885d80a1a65ae8f96c7e/images/icon-menu-close.svg);
    }


    .close-menu:checked~.menu-mobile{
        display: flex;
    }


}