@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
:root{
    /* Default value for fill in the card playNow button */
    --play-fill: rgb(35, 34, 34);
    /*default value for hover*/
    --hover-val:0;
}
* {
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: black;
  color: white;
}

.right {
    width: 75vw;
}

.left {
    width: 25vw;
    padding: 10px;
}

.home {
    padding: 10px;
}

.home ul li {
    display: flex;
    gap: 15px;
    width: 14px;
    list-style: none;
    padding-top: 14px;
    padding-left:10px;
    font-weight: bold;
    font-size: small;
}

.logo{
    align-items: center;
    padding-bottom:5px;
}
.close{
    display: none;
    cursor: pointer;
}
.text {
    padding-top: 4px;
    padding-left: 10px;
    font-weight: bold;
}

.library {
    /*min-height: 85vh;*/
    position: relative;
}

.heading {
    width: 120%;
    display: flex;
    padding: 15px 14px 15px 14px;
    font-weight: bold;
    font-size: 13px;
}
.songList{
    height:83vh;
    overflow: auto;


}
.songList ul{
    padding:0 20px;
    font-size:small;
}

.songList ul li{
    list-style:none;
    display: flex;
    gap:10px;
    cursor:pointer;
    padding:7px 0;
    border:2px solid white;
    border-radius: 5px;
    padding:10px;
    margin:10px 0;
    justify-content: space-between;
    align-items: center;
}

.songList .info{
    font-size: 10px;
    width:350px;
}

.songList .info {
    font-size: 10px;
    width: 300px; /* fixed width */
    white-space: nowrap;
    overflow: hidden;
    /*text-overflow: ellipsis;*/
}


.playNow {
    display: flex;
    align-items: center;
    gap: 5px;
}

.playNow span{
    font-size: 10px;
    width:64px; 
    padding-left:10px;
}

.footer {
    display: flex;
    color: grey;
    font-size: 10px;
    gap: 15px;
    position: block;
    bottom: 0;
}

.footer a {
    color: grey
}

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

.nav{
    display:flex;
    gap:14px;
}
.header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(34,34,34);

}
.header>* {
    padding: 15px;
}
.buttons>*{
    margin:0 6px;
}
.signupButton{
    background-color: black;
    color:#555;
    font-weight: bold;
    border:none;
    outline:none;
    font-size: 14px;
}

.signupButton:hover{
    font-size: 14.5px;
    color:white;
}

.loginButton{
    background-color: white;
    color:black;
    border-radius: 20px;
    padding:5px;
    cursor:pointer;
    width:79px;
    font-size: 14px;
}

.loginButton:hover{
    background-color: white;
    color:black;
    font-weight: bold;
    border-radius: 20px;
    padding:5px;
    cursor:pointer;
    width:80px;
    font-size: 14px;
}

.spotifyPlaylists >p{
    font-weight:bold;
    font-size:larger;
}
.spotifyPlaylists{
    padding:16px;
}

.spotifyPlaylists>*{
    padding-top:5px;
}
.cardContainer{
    display:flex;
    gap:10px;
    flex-wrap: wrap;
    margin:30px;
    overflow-y:auto;
    max-height: 70vh;
    padding-bottom:30px
}

.card{
    width:175px;
    padding:10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
}

.card>*{
    padding-top:10px;
}
.card img{
    width:100%;
    object-fit: contain;
}

.card:hover{
    background-color: rgb(71, 69, 69);
    cursor:pointer;
    transition: all 0.5s;
    --hover-val:1;
}

.play{
    position: absolute;
    top:135px;
    right:14px;
    opacity:var(--hover-val);
    transition: all 1s ease-out;
}

.play svg circle {
    fill: var(--play-fill);
}


.abovebar{
    display: flex;
    justify-content: space-between;
    height:50px;
}
.songinfo{
    width: 10vw;
}

.songinfo{
    padding:12px 12px;
    margin-bottom: 15px;
    font-size:large;
}
.timeu{
    width:150px;
}
.songinfo{
    width:200px;
}

.playbar{
    position: fixed; 
    bottom:10px;
    background-color:#252525;
    width:70vw;
    border-radius: 10px;
    height:30px;
    padding-bottom:30px ;
}



.volume{
    display: flex;
    gap:10px;
    align-items:center ;
    justify-content: center;
    cursor:pointer;
}
.range input[type="range"] {
    appearance: none;         /* standard property for compatibility */
    -webkit-appearance: none; /* remove default styling */
    width: 70px;             /* adjust width */
    height: 6px;              /* height of the track */
    background: #eeeeee;         /* fallback track color */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
.range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: #ffffff;  /* white thumb */
    border-radius: 50%;
    border: 1px solid #ccc; /* optional border */
    box-shadow: 0 0 2px rgba(0,0,0,0.2); /* optional for visibility */
    cursor: pointer;
    margin-top: -2px; /* aligns thumb vertically */
}

.seekbar{
    height: 5px;
    width:98%;
    background: white; 
    border-radius: 10px;
    bottom:0;
    margin:7px;
    cursor: pointer;
    position:absolute;
}

.circle{
    width:10px;
    height:10px;
    border-radius: 15px;
    border: 2px solid white;
    background-color: black;
    bottom:5px;
    left:0%;
    position:relative;
}
.songbuttons{
    padding:10px;
    display:flex;
    justify-content: center;
    gap:20px;
    cursor:pointer;
}

.hamburger{
    display: none;
    cursor: pointer;
}
@media(min-width:2000px){


}
@media(max-width:1000px){
    .left{
        position:absolute;
        left:-120% ;
        transition: all .3s ease-out;
        z-index: 1;
        width:280px;
    }
    .left .close{
        position: absolute;
        top:38px;
        left:250px;
    }
    .right{
        width: 100vw;
        margin-top:0;
    }

    .playbar{
        width:95vw;
    }
    .seekbar{
        width:98%;
    }
    .hamburger{
        display: block;
    }
    .close{
        display: block;
    }
}


/* Hide "Play Now" text when screen width is less than 400px */ 
@media (max-width: 500px) {
    .left{
        padding:0px;
    }
    .right{
        position: fixed;
    }
    .playNow span {
        display: none;
    }
    .playbar{
        font-size:5px;
    }
    .songinfo,.songtime{
        margin:0px;
        margin-bottom: 10px;
        font-size: small;
    }
    .card{
        width:80vw;
    }
    .cardContainer{
        justify-content: center;
    }

    .close{
        display: block;
    }
}