/* RESET */

html{
    font-size: 100%;
}

*, *::after, *::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBALS */

body{
    font-family: 'Circular Std', sans-serif;
    color: #75777c;
}

a, a:hover, a:visited{
    text-decoration: none;
    color: #75777c;
}

li{
    list-style-type: none;
}

.rotatey-180deg{
    transform: rotateY(180deg);
}

.hover-wht{
    transition: all 300ms ease-in-out;
}

.hover-wht:hover{
    color: white;
}

/* FONT SIZES */

.font-lg{
    font-size: 25px;
}

.font-md{
    font-size: 20px;
}

.font-sml{
    font-size: 14px;
}

/* COLORS */

.clr-white{
    color: white;
}

/* FLEX */

.flex{
    display: flex;
}

.flx-col{
    flex-direction: column;
}

.jtf-ct-end{
    justify-content: flex-end;
}

.jtf-ct-center{
    justify-content: center;
}

.jtf-ct-sp-bw{
    justify-content: space-between;
}

.jtf-ct-evenly{
    justify-content: space-evenly;
}

.align-items-center{
    align-items: center;
}

.flx-wrap{
    flex-wrap: wrap;
}

/* BUTTONS */

.btn{
    display: inline-block;
    padding: .8rem 2.5rem;
    border: 1px solid white;
    border-radius: 3.125rem;
    text-transform: uppercase;
}

/* MAIN */

main{
    width: 100vw;
    height: calc(100vh - 100px);
}

/* MENU SIDE */

section#menu-side{
    width: 230px;
    height: 100%;
    background-color: #000000;
    position: relative;
}

#nav-top #logo{
    height: 85px;
    padding-left: 2rem;
}

#nav-top #logo .logo-sm{
    display: none;
}

#nav-top #logo .logo-lg{
    height: 50px;
}

nav#menu ul li, nav#playlist ul li, nav#playlist h4, nav#playlist .new-playlist{
    padding-left: 2rem;
    position: relative;
}

#menu{
    margin-bottom: 1.8rem;
}

#menu ul li:not(:last-child){
    padding-top: .4rem;
    padding-bottom: .4rem;
}

li.active::before{
    content: "";
    display: inline-block;
    width: 3px;
    height: 100%;
    background-color: greenyellow;
    position: absolute;
    left: 0;
    top: 0;
}

#menu ul li i{
    font-size: 1.8rem;
    width: 2rem;
    vertical-align: middle;
}

#playlist h4{
    margin-bottom: .5rem;
}

#playlist div.new-playlist i{
    font-size: 3rem;
    width: 3rem;
    vertical-align: middle;
}

#playlist ul{
    overflow-y: scroll;
    max-height: 50%;
}

#playlist ul li{
    margin-top: .8rem;
}

#nav-bot{
    padding: 0 2rem;
    background-color: #000000;
    position: relative;
}

#nav-bot .download{
    padding: .8rem 0;
    display: inline-block;
}

#nav-bot .user{
    padding: 1rem 0;
    border-top: 1px solid grey;
}

#nav-bot .user .user-img{
    height: 40px;
    margin-right: .4rem;
    background-color: grey;
    border-radius: 50px;
    overflow: hidden;
}

#nav-bot .user .user-img img{
    height: 100%;
    width: 100%;
    margin-right: .4rem;
}

#nav-bot .user span{
    font-size: 1.2rem;
}


/* MAIN CONTENT */

section#main-content{
    width: calc(100vw - 230px);
    height: 100%;
}

div#cta{
    height: 85px;
    width: 100%;
    padding-right: 3rem;
    background: #080b12;
    flex-direction: row-reverse;
}

div#cta a{
    transition: all 300ms ease-in-out;
}

div#cta a:hover{
    transform: scale(1.2);
    color: white;
}

div#content{
    height: calc(100% - 85px);
    width: 100%;
    background-color: #141922;
    overflow-y: auto;
}

.main-nav{
    text-align: center;
}

.main-nav ul li{
    display: inline-block;
    padding: 2rem 0;
    position: relative;
}

.main-nav ul li.nav-main-active::after{
    content: "";
    display: inline-block;
    width: 40px;
    height: 3px;
    background-color: greenyellow;
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav ul li:not(:last-child){ /* forse questo a da eliminare */
    margin-right: 1.2rem;
} 

.main-nav ul li a{
    color: #75777c;
    text-transform: uppercase;
    font-weight: bolder;
}

/* MAIN CONTENT */

.recently, .album, .artist{
    padding: 0 1rem;
}

#content h2{
    margin-bottom: .6rem;
}

.list-songs{
    gap: .5%;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.box-song{
    width: calc(94% / 6);
    text-align: center;
}

.box-song .image-album{
    position: relative;
}

.box-song .image-album img{
    width: 100%;
    transition: all 300ms ease-in-out;
}

.box-song .image-album:hover img{
    opacity: 0.5;
}

.box-song .image-album i{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.box-song .image-album:hover i{
    opacity: 1;
}

.box-song p{
    margin: .5rem 0;
}

.artist .list-songs .box-song img{
    border-radius: 50%;
}

/* FOOTER */

footer{
    width: 100vw;    
    height: 100px;
    padding: 0 1rem;
    background-color: #282828;
}

.col-left .song{
    margin-right: 3rem;
}

.col-left .song img{
    height: 3rem;
}

.col-left .song .song-title{
    margin-left: 1rem;
}

.col-left .song-icon .fa-heart{
    margin-right: .6rem;
}

.col-middle{
    width: 40%;
}

.col-middle .play-icon i.fa-play-circle:hover{
    transform: scale(1.2);
}

.col-middle .play-icon i:not(:last-child){
    margin-right: 2rem;
}

.progress{
    width: 100%;
    height: 5px;
    background-color: grey;
    margin: 0 1rem;
    border-radius: 5px;
}

.progress .bar-progress{
    width: 30%;
    height: 100%;
    background-color: white;
    border-radius: 5px;
    position: relative;
}

.progress:hover .bar-progress .btn-progress{
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid grey;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.progress:hover .bar-progress{
    background-color: greenyellow;
}

.col-right i{
    margin-right: 1.2rem;
}

.col-right .progress{
    width: 150px;
}

/* TABLET */
@media screen and (max-width: 992px){

    /* MAIN */

    .box-song{
        width: calc(94% / 4);
    }

}

/* MOBILE SMALL */
@media screen and (max-width: 768px){

    /* MAIN */

    .box-song{
        width: calc(94% / 2);
    }

}

/* MOBILE XSMALL */

@media screen and (max-width: 576px){

    /* MAIN */

    section#menu-side{
        width: 45px;
        height: 100%;
    }
    
    #nav-top #logo{
        height: auto;
        padding-left: 0;
        padding: .4rem;
    }

    #nav-top #logo .logo-sm{
        display: inline-block;
        width: 40px;
    }
    
    #nav-top #logo .logo-lg{
        display: none;
    }
    
    nav#menu ul li, nav#playlist ul li, nav#playlist h4, nav#playlist span{
        padding-left: 0;
    }
    
    #menu{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    li.active::before{
        display: none;
    }
    
    #menu ul li i{
        font-size: 1.4rem;
        width: auto;
        vertical-align: middle;
    }

    #menu ul li span{
        display: none;
    }

    #playlist{
        display: none;
    }
    
    #nav-bot{
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #nav-bot .download{
        border-bottom: 0 solid grey;
        padding-bottom: .5rem;
    }

    #nav-bot .download span{
        display: none;
    }
    
    #nav-bot .user{
        padding: .5rem 0;
    }

    #nav-bot .user img{
        margin: 0;
    }
    
    #nav-bot .user span{
        display: none;
    }

    section#main-content{
        width: calc(100vw - 45px);
        height: 100%;
    }
}