/*
##################
# Styles Basicss #
##################
*/
*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body{
    background-color: #eee;
    overflow: hidden;
}

.title{
    margin-top: 20px;
    font-size: 16px;
}

section{
    margin-bottom: 50px;
    position: relative;
}

.next-courses{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    width: 100%;
    height: 100%;
}

.next-courses a{
    text-decoration: none;
}

.next-courses span{
    font-size: 40px;
    color: #777777;
}

.next-courses p{
    font-size: 14px;
    color: #777777;
    margin-top: 8px;
}

/*
#############
# Container #
#############
*/
.container{
    padding-right: 1.9375rem;;
    padding-left: 1.9375rem;
    margin-right: auto;
    margin-left: auto;

    max-width: 1300px;
}

.main{
    margin-top: 100px;
}

/*
###########
# Gallery #
###########
*/

.gallery{
    margin: 10px 0;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 12px;
}

.gallery img{
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

/*
##############
# Navigation #
##############
*/
.navigation{
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #fff;
    box-shadow: 0 0 0.7px;

    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

.navigation .links-pages{
    display: flex;
    justify-content: space-around;
}

.navigation .links-pages li{
    list-style: none;
    padding: 0 8px;
}

.navigation .links-pages li a{
    text-decoration: none;
    font-style: normal;
    color: #777777;
    font-weight: bold;
    font-size: 14px;
    line-height: 16px
}

/*
################
# Dropdwn Menu #
################
*/
.dropdown-content{
    position: absolute;
    background: #fff;
    z-index: 99;
    width: 90%;
    left: 0;
    padding: 22px;
    top: 50px;
    border-radius: 6px;
    box-shadow: 0 0 1.7px;
    margin: 10px;
    min-height: 40vh;

    transition: all 2s;

    /* display: grid; */
    display: none;
    grid-template-columns: repeat(3, 1fr);
}

.dropdown-content .item{
    display: flex;
    margin-bottom: 20px;
    cursor: pointer;
}

.dropdown-content .item .icon{
    margin-right: 10px;
}

.dropdown-content .item .content h4{
    margin: 0;
}

/*
#################
# Buttons Group #
#################
*/
.buttons-group{
    margin-right: 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons-group a{
    text-decoration: none;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 16px;
    color: #777777;

    margin: 0 5px;
}

.buttons-group a.btn-full{
    background: #1192EE;
    border-radius: 4px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 6px;

    width: 107px;
    height: 36px;
}

.menu{ display: none; }

/*
########################
# Btn next and preview #
########################
*/
.btn-next{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #1192ee;
    position: absolute;
    right: -16px;
    font-size: 18px;
    top: 45%;
    box-shadow: 0 0 2.8px #000;
    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

/*
########
# Feed #
########
*/
.feed{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
}

.feed .news section{
    margin-top: 10px;
    padding: 0 10px;
}

.feed .news section img{
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}


.feed .users{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 14px;
}

.feed .user .image-user{
    background-color: aqua;
    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.feed .users .user{
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feed .users .user .username{
    color: #666666;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

/*
##########
# Loader #
##########
*/
.loader{
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #fff;
}

.loader img{
    width: 44px;
    height: 44px;

    animation: rotate .8s infinite linear;
}

.loader p{
    margin-top: 20px;
}

@keyframes rotate{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

/*
#########
# Icons #
#########
*/
.icon-question{
    color: #FFF;
    background-color: gray;
    border-radius: 50%;

    padding: 3px;
    font-size: 18px;
    cursor: pointer;
}

.star{
    color: #f0c419;
}

/*
#########
# Posts #
#########
*/
.posts .comment{
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 10fr;
}

.posts .comment span{
    font-size: 40px;
    margin-right: 10px;
}

.posts .comment input{
    padding: 0 20px;
}



/*
##########
# Footer #
##########
*/
footer{
    background-color: #fff;
    text-align: center;
    padding: 20px;
}

/*
################
# Mediaqueries #
################
*/
@media screen and (max-width: 943px){
    .gallery{
        grid-template-columns: repeat(4, 1fr);
    }
    .gallery img:nth-child(5){
        display: none;
    }
}

@media screen and (max-width: 828px){
    .gallery{
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery img:nth-child(4){
        display: none;
    }

    .featured-users{
        display: none;
    }

    .news{
        display: none;
    }

    .feed{
        grid-template-columns: 1fr;
    }

    .navigation .links-pages{
        position: fixed;
        background: #fff;
        top: 56px;
        right: 0;
        flex-direction: column;
        height: 100vh;
        padding: 20px;
        width: 75%;

        display: none;
    }

    .gallery .next-courses{
        display: none;
    }

    .buttons-group{
        display: none;
    }
}

@media screen and (max-width: 630px){
    .gallery{
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img:nth-child(3){
        display: none;
    }
}
