@import url('https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{
    --a:0;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}
.close{
    display: none;
}
body {
    background-color: black;
    color: white; 
}

.left {
    width: 25vw;
    padding: 10px;
}

.right {
    width: 75vw;
}

.home ul li {
    display: flex;
    width: 14px;
    gap: 15px;
    list-style: none;
    padding-top: 14px;
    font-weight: bold;
}

.heading{
    display: flex;
    width: 100%;
    gap: 15px; 
    padding-top: 14px;
    padding: 23px 14px;
    font-weight: bold;
    align-items: center;
    font-size: 14px;
}

.heading img{
    width: 25px;
}

.library{
    min-height: 80vh;
    position: relative;
}

.footer{
    display: flex;
    font-size: 10px;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;

}

.footer a{
    color: grey;
}


.right{
    margin: 16px 0;
    position: relative;
}


.header{
    display: flex;
    justify-content: space-between;
    background-color: rgb(34 34 34);
}

.header > *{
    padding: 20px;
}

.spotifyplaylist{
    padding: 14px;
}

.spotifyplaylist h1{
    padding: 14px;
}


.cardcontainer{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.card{
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
    transition: all .9s;
}

.card:hover{
    background-color: rgb(69, 69, 69);
    cursor: pointer;
    --a:1
}

.card >*{
    padding-top: 10px;
}

.card img{
    width: 100%;
    object-fit: contain;
}


.play{
     width: 28px;
    height: 28px;
    background-color: #1ed760;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 168px;
    right: 17px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.buttons >*{
    margin: 0 12px;
}

.signupbtn{
    background-color:rgb(34 34 34);
    color: rgb(159, 153, 153);
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signupbtn:hover{
    font-size: 17px;
    color: white;
}


.loginbtn{
    background-color: white;
    border-radius: 21px;
    color: black;
    padding: 10px;
    width: 79px;
    cursor: pointer;  
    font-size: 16px;  
}


.loginbtn:hover{
    font-weight: bold;
    font-size: 17px;   
}


.playbar{
    position: fixed;
    bottom: 40px;
    filter: invert(1);
    background-color: #dad5d5;
    border-radius: 10px;
    width: 90%;
    padding: 12px;
    width: 70vw;
    min-height: 40px;
}


.songbuttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}


.songlist{
    overflow: auto;
    height: 544px;
    margin-bottom: 44px;
}


.hamburgercontainer{
    display: flex;
    justify-content:center ;
    align-items: center;
    gap: 14px;
}

.hamburger{
    display: none;
    cursor: pointer;
}


.songlist ul{
    padding: 0 12px;
    
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;
    gap: 12px;
    cursor: pointer;
    border: 1px solid white;
    margin: 12px 0;
    padding: 13px;
    border-radius: 12px;
    justify-content: space-between;
}


.songlist .info{
    font-size: 13px;
    width: 344px;
}

.info div{
    word-break: break-all;
}

.playnow{
    display: flex;
    justify-content: center;
    align-items: center;
}



.playnow span{
    font-size: 15px;
    width: 64px;
    padding: 12px;
    
}

.seekbar{
    height: 4px;
    width: 98%;
    border-radius: 10px;
    background:  black;
    position: absolute;
    bottom: 0;
    margin: 6px;
    cursor: pointer;
}

.circle{
    width: 12px;
    height: 12px;
    border-radius: 13px;
    background-color: black;
    position: relative;
    bottom: 5px;
    left: 0%;
    transition: left 0.5s;
}



.songbuttons img{
    cursor: pointer;
}

.timevol{
    display: flex;
    justify-content:space-evenly ;
    align-items: center;
}

.songinfo  {
    color: black;
    padding: 0 12px;
    width: 250px;
}

.songtime{
    color: black;
    padding: 0 12px;
    width: 125px;
}


.volume{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.range input{
    cursor: pointer;
}

.abovebar{
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}



@media (max-width:1200px){
    .left{
        background-color: black;
        position: absolute;
        left: -120%;
        transition: all .3s;
        z-index: 1;
        width: 370px;
        padding: 0;
    }


    .songinfo , .songtime{
        width: auto;
    }

    .left .close{
        position: absolute;
        right: 26px;
        top: 25px;
        width: 29px;
    }

    .timevol{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        gap: 13px;
    }

    .right{
        width: 100vw;
    }

    .playbar{
        width: calc(100vw - 65px);
    }

    .seekbar{
        width: calc(100vw - 70px);
    }

    .hamburger{
        display: block;
    }

    .right{
        margin: 0;
    }

    .cardcontainer{
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .card{
        width: 55vw;
    }

    .close{
        display: block;
    }
    .abovebar{
        flex-direction: column;
        gap: 23px;
        align-items: center;
    }
    .cardcontainer{
        max-height: 50vh;
    }
}

@media (max-width:500px){
    .card{
        width: auto;
    }

}

