@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: 79vw;
}


.home ul li {
    display: flex;
    gap: 15px;
    list-style: none;
    width: 14px;
    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: 79vh;
    position: relative;
}

.footer {
    display: flex;
    font-size: 9px;
    color: gray;
    gap: 10px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
}

.footer a {
    color: gray;
}

.right{
    margin: 16px 0;
    position: relative;
}

.header{
    display: flex;
    justify-content: space-between;
    background-color: rgb(34 34 34);
}
.header > *{
    padding: 20px;
}

.spotifyPlaylists{
    padding: 16px;
}
.spotifyPlaylists h1{
    padding: 16px;
}

.cardContainer{
    margin: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 60vh;
}
.card{
    width: 200px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(42, 42, 42);
    position: relative;
    transition: all .8s;
}
.card:hover{
    background-color: rgb(97, 97, 97);
    cursor: pointer;
    --a:1;
}

.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: 88px;
    right: 17px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.buttons > *{
    margin: 0 10px;
}
.signupbtn{
    background-color:rgb(34 34 34);
    color: rgb(156,148,148);
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signupbtn:hover{
    font-size: 17px;
    color: white;
}

.loginbtn{
    background-color: white;
    color: black;
    border-radius: 21px;
    padding: 10px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    border: none;
}

.loginbtn:hover{
    font-weight: bold;
    font-size: 17px;
}


.playbar{
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background-color: #dad5d5;
    border-radius: 10px;
    padding: 5px;
    min-height: 40px;
    width: 70vw;
}

.songbuttons{
    display: flex;
    justify-content: center;
    gap: 16px;
}


.songbuttons img {
    width: 35px;
    height: 35px;
    cursor: pointer;
    flex-shrink: 0;
}

.songList{
    height: 500px;
    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 54px;
}

.songList ul li{
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border: 1px solid white;
    margin: 10px -51px;
    border-radius: 5px;
    border-bottom: 1px solid #333;
}

.songList .info{
    font-size: 13px;
    width: 344px;
}

.playnow{
    display: flex;
     justify-content: center;
    align-items: center;
}

.playnow span{
    font-size: 15px;
    width: 66px;
    padding: 10px;
}

.seekbar{
    height: 3px;
    width: 97%;
    background: black;
    border-radius: 10px;
    position: absolute;
    bottom: 8px;
    margin: 6px;
    cursor: pointer;
}

.circle{
    height: 15px;
    width: 15px;
    border-radius: 15px;
    background-color: black;
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: left 0.5s;
}

.songbuttons img{
    cursor: pointer;
}

.timevol{
    display: flex;
    gap: 25px;
    align-items: center;
}

.songinfo {
    color: black;
    min-width: 200px;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.songtime {
    color: black;
    min-width: 60px;
    text-align: right;
}  

.volume{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.range input{
    cursor: pointer;
}

.abovebar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0px;
    min-height: 50px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width:1200px) {
    .left{
        position: absolute;
        left: -130%;
        transition: all .3s;
        z-index: 1;
        width: 373px;
        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: space-evenly;
        align-items: center;
        flex-direction: column;
        gap: 13px;
    }

    .right{
        width: 100vw;
    }
    .playbar{
        width: 88vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .seekbar{
        width: 86vw;
    }
    .hamburger{
        display: block;
    }
    .right{
        margin: 0;
    }
    .card{
        width: auto;
    }
    .cardContainer{
        margin: 0;
        justify-content: center;
    }
    .close{
        display: block;
    }
    .abovebar{
        flex-direction: column;
        gap: 23px;
        align-items: center;
    }


    .cardContainer{
        max-height:unset;
        overflow-y: unset;
        margin-bottom: 30vh;
    }
}


@media (max-width:450px){
    .card{
        width: 100%;
    }

    .header>* {
        padding: 2px;
    }

    .buttons>*{
        margin: 0 6px;
    }

    .header{
        padding: 7px;
    }

    .spotifyPlaylists h1{
        padding: 4px;
    }

    .left{
        width: 100vw;
    }
}

