/* lets make the bg black */

@import url('https://fonts.googleapis.com/css2?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
{
    /* assuming, that the left thign is 25 */
    width: 25vw;
    padding: 10px;
}

.right
{
    /* assuming right part is 75 */
    width: 75vw;
    position: relative;
}

.home{
    padding: 10px;
}

.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: gray;
    gap: 13px;
    position: absolute;
    bottom:0;
    padding: 10px 0px;

}

.footer a{
    color: gray;
}

.right{
    margin: 16px 0;
}

.header
{
    display: flex;
    /* to keep the elemetns to left corner and right corner */
    justify-content: space-between;
    background-color: rgb(34 ,34,34);
}

/* targeting the direct elements of the HEADER */
.header > *{
    padding: 20px;
}

.spotifyPlaylists{
    padding: 16px;

}
.spotifyPlaylists h1{
    padding: 16px;

}

.cardContainer{
    margin: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* justify-content: center; on in mobile phones this is good */
    max-height: 60vh;
    overflow-y: auto;
}

.card{
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
    transition: all .8s;
}

.card:hover{
    background-color: rgb(71, 71, 71);
    cursor:pointer;
    --a:1;
    /* transform: scale(1.05);
    transition: all 1s ease-out; */
}

.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;
    /* top: 171px;
    right: 30px; */

    /* bottom: 88px;
    right: 17px; */

    bottom: 120px;
    right: 25px;
    

    opacity: var(--a);
    transition: all 1s ease-out;
}





.buttons > *{
    margin: 0 12px;
}

.signupbtn{
    font-weight: bold;
    /* background-color: black; */
    color:rgb(131, 131, 131);
    background-color: rgb(34, 34, 34);
    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;
    /* font-weight: bold; */
    padding: 10px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
}

.loginbtn:hover{
    
    font-weight: bold;
    
    width: 80px;
    font-size: 17px;
}

.playbar{
    position: fixed;
    bottom: 30px;

    filter: invert(1);

    background-color: #dad5d5;
    border-radius: 10px;
    width: 70vw;
    min-height: 40px;
    padding: 12px;
}


.songbuttons
{
    display: flex;
    justify-content: center;
    gap: 16px;
}

.songList{
    height: 544px;
    overflow: auto;

    margin-bottom: 44px;
}

.hamburger{
    width: 40px;
    display: none;
    cursor: pointer;
}

.hamburgerContainer{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.songList ul{
    padding: 0 12px;

}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0px;
    border: 1px solid white;
    margin: 12px 0px;
    padding: 13px;
    border-radius: 5px;

}

.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%;
    background-color:  black;

    position: absolute;
    bottom: 5px;
    border-radius: 10px;
    margin:6px;

    cursor: pointer;

}

.circle{
    width: 13px;
    height: 13px;
    border-radius: 13px;
    background-color: black;
    position: relative;
    bottom: 5px;
    left: 0%;

    transition: left 0.5s;
}

/* loop starts here */
.loop-button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    /* font-weight: bold; */
    background-color: #000000;
    color: #ffffff;
    transition :all 0.2s;
}





/* Loop marker styles */
.loop-marker {
    width: 15px;
    height: 15px;
    position: absolute;
    bottom: 4px;
    cursor: pointer;
    transform: rotate(60deg);
    display: none; /* Hidden by default */
}

#loop-triangle1 {
    left: 0%; /* Positioned at the start */
    position: absolute; /* Ensure the position is absolute */
}

#loop-triangle2 {
    right: 0%; /* Positioned at the end */
    position: absolute; /* Ensure the position is absolute */
}
/* looping ends here */

.songbuttons img{
    cursor: pointer;
}

.timevol{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.songinfo{
    color: black;
    padding: 0px 12px;
    width: 400px;
}
.songtime{
    color: black;
    padding: 0px 12px;
    width: 125px;
}

.volume{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.range input {
    cursor: pointer;
}

/* .volume:hover::after{
    content:"sfsjdfkl" ;
} */

.abovebar{
    display: flex;

    justify-content: space-between;
    margin: 20px 0;
}




@media (max-width: 1362px){
    .play{
        bottom: 97px;
    right: 25px;
    }
}
@media (max-width: 1200px){



    .left{
        /* background-color: red; */
        position: absolute;
        left: -130%;
        transition: all .3s;
        z-index: 1;
        width: 370px;
        background-color: black;
        padding: 0;
        height: 100vh;
        
        position: fixed;
        top: 0;

    }

    .left .close{
        position: absolute;
        right: 30px;
        top: 30px;
        width: 37px;
        cursor: pointer;
    }



    .left .close .closeImage{
        width: 35px;
    }


    .timevol{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        gap: 13px;

    }
    .right{
        width: 100vw;
    }

    /* .card{
        position: relative;
    }

    .play{
        position: absolute;
        bottom: 53px;
        top: 563px;
        right: 35px;
    }
     */
    .playbar{
        width: calc(100vw - 60px);
    }

    .seekbar{
        width: calc(100vw - 70px);
    }

   
    .hamburger{
        display: block;
    }


    .abovebar{
        flex-direction: column;
        gap: 13px;
        align-items: center;
    }
    

    /*
    THERE IS A COMMENT ISSUE
    CHANGE THE COMMENTS.. IN THE DOWN

    THIS IS ABOUT THE STACKED VERSION .abovebar things for smaller screens
    .abovebar {
        flex-wrap: wrap;
    }

    .songinfo, .songbuttons, .songtime {
        flex-basis: 100%; 
        Full width on smaller screens
        text-align: center;
         Center-align for better mobile view
        margin-top: 5px;
         Optional: add space between lines
    }

    .songbuttons {
        justify-content: center;
         Center buttons on small screens
    }  */

    .right{
        margin: 0;
    }

    .card{
        width: 44vw;

    }

    .cardContainer{
        margin: 0px;
        justify-content: center;
    }
    
    .close{
        display: block;
    }
    
    .songinfo{
        width: auto;
    }

    .songtime{
        width: auto;
    }
    
}


@media (max-width: 550px){
    .card{
        width: 100%;
    }
    
    .header>*{
        padding: 2px;
    }
    
    .buttons>*{
        margin: 0 6px;  
    }
    .cardContainer{
    
        /* max-height: 136vw;
        margin-bottom: 60vw; */

        max-height: unset;
        overflow-y: unset;
        margin-bottom: 30vh;
        
    }

    .spotifyPlaylists h1{
        padding: 4px;
    }

    .playbar{
        right: 18.5px;
        bottom: 7px;
    }

    .header{
        padding: 7px;
    }

    .abovebar{
        margin-bottom: 25px;
    }
    .seekbar{
        margin-bottom: 20px;
    }

    .library{
        height: 85vh;
    }

    .left{
        
        width: 100vw;   
    }
}