@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --a:0;
    --b:200px;
}

*{
    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;
}
.logo img{
    width: 40px;
}
.home ul li{
    display: flex;
    gap: 15px;
    width: 14px;
    list-style: none;
    padding-top: 14px;
    font-weight: bold;
}
.heading{
    display: flex;
    gap: 15px;
    width: 100%;
    padding-top: 14px;
    padding: 23px 14px;
    font-weight: bold;
    align-items: center;
    font-size: 13px;
}
.heading img{
    width: 30px;
}
.library{
    min-height: 80vh;
    position: relative;
}
.footer{
    display: flex;
    font-size: 10px;
    color: grey;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 10px;
}
.footer a{
    color: grey;
    text-decoration: none;
  
}
.right{
    margin: 16px 0;
    position: relative;
}
.header{
    display: flex;
    justify-content: space-between;
    background-color: rgb(34, 34, 34);
}
.header > *{
    padding: 20px;
}
.spotifyPlaylist{
    padding: 16px;
}
.spotifyPlaylist h1{
    padding: 16px;
}
.cardContainer{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    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: #5e5d5d;
    cursor: pointer;
    --a:1;
    --b:168px;
    
}

.card > *{
    padding-top: 10px;

}
.card img{
    width: 100%;
    object-fit: contain;
}
.play{
    width: 28px;
    height: 28px;
    background-color: #1fdf64;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 57%;
    right: 44%;
    opacity: var(--a);
    transition: all .7s ease-out;
    /* bottom: 0; */

}
.buttons > *{
    margin: 0 12px;

}

.signup-btn{
    background-color: rgb(34, 34, 34);
    color: #5d5d5d;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    
}
.signup-btn:hover{
    font-size: 17px;
    color: white;
    
}

.login-btn{
    background-color: #ffffff;
    color: #010101;
    font-size: 16px;
    font-weight: bolder;
    border-radius: 32px;
    padding: 15px 30px;
    cursor: pointer;
}
.login-btn:hover{
    background-color: #ffffff;
    color: #010101;
    font-weight: bold;
    border-radius: 32px;
    padding: 15px 34px;
    cursor: pointer;
}

.playbar{
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background-color: #dad5d5;
    border-radius: 10px;
    width: 70vw;
    padding: 12px;
    min-height: 40px;
}
.songbuttons{
    display: flex;
    justify-content: center;
    gap: 16px;
}

.songlist{
    height: 544px;
    overflow: auto;
    margin-bottom: 44px;
}
.hamburger{
    display: none;
    cursor: pointer;
}
.hamburgerContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}
.songlist ul{
    padding: 0 12px;
}

.songlist ul li{
    display: flex;
    /* list-style-type: decimal; */
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    border: 1px solid white;
    margin: 12px 0;
    padding: 13px;
    border-radius: 5px;
    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;
    padding: 12px;
    width: 64px;
}
.seekbar{
    height: 4px;
    width: 95%;
    border-radius: 10px;
    background:black;
    position: absolute;
    bottom: 10px;
    cursor: pointer;
    margin: 6px;
}
.circle{
    width: 13px;
    height: 13px;
    border-radius: 13px;
    background-color: black;
    position: relative;
    bottom: 6px;
    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;
    word-wrap: break-word;
}
.songtime{
    color: black;
    padding: 0 12px;
    width: 125px;
}
.volume{
    display: flex;
    /* flex-direction: column; */
    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:1260px) {
    .left{
        position: absolute;
        left: -133%;
        transition: all .3s;
        z-index: 1;
        width: 353px;
        background-color: black;
        padding: 0;
        height: 100vh;
        position: fixed;
        top: 0;

    }
    .left .close{
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;
    }
    .timevol{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 13px;
    }
    .right{
        width: 100vw;
        margin: 0;
    }
    .playbar{
        width: calc(100vw - 65px);
    }
    .seekbar{
        width: calc(100vw - 75px);
    }
    .abovebar{
        /* font-size: 5px; */
        flex-direction: column;
        gap: 23px;
        align-items: center;

    }
    .songinfo,.songtime{
        /* font-size: 10px; */
        width: auto;

    }
    
    .hamburger{
        display: block;
        margin: 10px;
    }
    .card{
        width: 40vw;
    }
    .cardContainer{
        justify-content: center;
        margin: 0;
    }
    .cardContainer{
        max-height: unset;
        overflow-y: unset;
        margin-bottom: 25vh;
    } 
    .close{
        display: block;
    }
    .playbar{
        right: 25px;
    }
}

@media (max-width:500px){
    .card{
        width:100%;
    }
    .header>*{
        padding: 3px;
    }
    .buttons>*{
        margin: 0 6px;
    }
    
    .spotifyPlaylist h1{
        padding: 4px;
        padding-bottom: 2px;
        margin-bottom: 6px;
    }
    .playbar{
        right: 25px;
    }
    .header{
        padding: 7px;
    }
    .library{
        height: 85vh;
    }
  
    .left{
        width: 100vw;
    }


}
@media (max-width:690px){
    .login-btn{
        /* padding: 10px 1px; */
        font-size: 13px;
    }
    .signup-btn{
        font-size: 13px;
    }
    /* .card:hover{
        background-color: #5e5d5d;
        cursor: pointer;
        --a:1;
        --b:500px;
        right:5px
    } */
}
@media (max-width:400px){
    .login-btn{
        margin: 8px;
        padding: 10px 10px;
        border-radius: 15px;
    }
    .left{
        left: -133%;
    }

    /* .abovebar{
        margin: 2px 0;
    } */
    

}
