@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0f0f0f;
}
body {
    padding: 0 50px;
    font-family: 'Poppins', sans-serif;
}

/* nav */
.header__nav{
    display: flex;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
}

.header__figure img{
    width: 180px;
}

.header__list{
    display: flex;
    list-style: none;
    gap: 20px;
}

.header__list img{
    width: 45px;
    height: 40px;    
}

.header__list li a{
    color: #fff;
    text-decoration: none;
}

.header__list li a:hover{
    font-weight: 800;
}

/* buttons */
.main{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main__buttons{
    display: flex;
    gap: 20px;
}

.main__buttons button{
    padding: 5px 10px;
    font-family: 'Poppins', sans-serif;
    border: none;
    color: #f1f1f1;
    background-color: #343434;
    border-radius: 10px;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
}

.main__buttons button:hover{
    background-color: #474646;
    color: #fff;
}

/* section */
.main_cards{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-column-gap: 16px;
    grid-row-gap: 30px;
    margin-top: 15px;
}

.cards .cards__image {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
}

.cards .flex-div{
    display: flex;
    flex-direction: row;
    margin-top: 7px;
}

.cards .flex-div img{
    width: 35px;
    margin-right: 10px;
    border-radius: 50%;
    cursor: pointer;
}

.cards__name{
    color: #cfcfcf;
    font-size: 16px;
    font-weight: 600;
    display: block;
    cursor: pointer;
}

.cards__views{
    color: #aaa;
    margin-left: 45px;
    margin-top: 6px;
    font-size: 13px;
}

@media screen and (max-width: 600px) {
    .header__nav{
     flex-direction: column;
    }
 }