
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    font-family: "myFont";
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    height: 100vh;
    background-color: black;
}
@font-face {
    font-family: "myFont";
    src: url("font/SpotifyMix-Medium.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;

}
/* Target the scrollbar track */
::-webkit-scrollbar {
    width: 6px; /* Sleek width */
    height: 6px;
}

/* Background of the scrollbar */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background-color: rgb(59, 59, 59);
    border-radius: 3px;
}

/* Optional: on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: #504f4f;
}
.scroll-container {
    width: 100%;              /* Take full width */
    overflow-x: auto;
    padding-left: 10px;
    box-sizing: border-box;   /* So padding doesn't overflow */
    white-space: pre-wrap;
    word-break: break-word;
}


.container{
    padding: 20px;
}
.left{
    width: 25vw;
    
    padding: 15px;
    
}
.right{
    width: 75vw;
    
    position: relative;
}
.home ul li{
    width: 20px;
    list-style: none;
    display: flex;
    margin: 1em 0 10px 1em;
    
    gap: 7px;
}
.home{
    padding: 10px;
    margin: -1em 0 0.5em -1em;
    position: relative;
}
.library img{
    width: 15px;
    display: flex;
    filter: invert(1);
    margin-left: 60%;
    margin: 0 5px 0 0;
}
.heading img{
    width: 20px;
    /* margin-left: 60%; */
    
}
.library{
    padding: 10px;
    margin: 0 0 0 -15px;
    position: relative;
    min-height: 80vh;
    
    font-size: 13px;
}
.footer{
    display: flex;
    gap: 5px;
    
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    position: absolute;
    bottom: 0;
    padding: 5px;
}
.footer a{
    color: grey;
    font-size: 8px;
    word-break: break-word;    
}
.buttons{
    
    padding: 20px;
    max-width: 100%;
    min-width: 0;
    background-color: rgb(16, 16, 16);
    align-items: center;
    gap: 10px;
}

.arrow:hover{
    cursor: pointer;
}
.buttons button{
    background-color: transparent;
    color: white;
    border: none;
    /* padding: 10px; */
}
.signupButton{
    position: absolute;
    right: 20px;
}
.signupButton button:first-child{
    color: grey;
    padding: 10px;
}
.signupButton button:first-child:hover{
    color: white;
    cursor: pointer;
    transform: scale(1.04);
    transition: all ease-in 0.1s;
}
.signupButton button:last-child{
    background-color: white;
    color : black;
    border-radius: 20px;
    padding: 10px;
    width: 6em;
}
.signupButton button:last-child:hover{
    background-color: rgb(56, 56, 56);
    color: white;
    cursor: pointer;
    transform: scale(1.1);
    transition: all ease-in 0.1s;
}
.content{
    background-color: rgb(16, 16, 16);
    box-shadow: 0 55px 70px -10px rgb(33, 33, 33) inset;
    min-height: 80vh;
    padding: 10px;
    margin: 5px 0 0 0;

    
}
.card h3, p{
    width: 12em;
    font-size: 13px;
}
.card img{
    width: 174px; /* Image fills the card width */
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Scales image to cover the area, cropping if needed */
    display: block;
}
.card{
    gap: 20px;
    margin: 10px 0 0 0;
    flex-wrap: wrap;
}
.card h3{
    margin-top: 5px;
    font-size: 15px;
}
/* .img1{
    position: relative;
}
.img2{
    position: relative;
} */
.play{
    position: absolute;
    right: 15px;
    bottom: 100px;
}

.playBar {
    position: fixed;
    bottom: 0;
    width: 70%;
    background-color: rgb(102, 232, 102);
    color: black;
    padding: 2px 0px 10px 0;
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    border-radius: 15px;
    justify-content: space-between;
    box-shadow: 0 28px 50px black;
}
.songButtons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.songButtons img:hover{
    cursor: pointer;
}

.playBar img{
    width: 30px;
}
.songList{
    margin: 20px 0 0 0px;
    height: 450px;
    overflow: scroll;
}
.songList ul li{
    margin: 5px 0 0 0;       
    padding-left: 7px;    
   
   
    list-style-type:decimal;
    display: flex;
    border-radius: 5px;
    min-height: 4em;
    align-items: center;
    /
}

.songList li{
    padding: 5px;
}
.songList li:hover{
    cursor: pointer;
}
.playMusic{
    margin-left: 30px;
}
.songInfoContainer{
    width: 20vw;              
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-right: -10vw;
}
.songInfo {
    width: 20vw; 
    display: inline-block;
    padding-left: 0%;
    animation: scroll 5s linear infinite;
}
@keyframes scroll {
    from {
      transform: translateX(10%);
    }
    to {
      transform: translateX(-100%);
    }
}
.info {
    width: 150px; 
}
.artistName{
    color: grey;
    font-size: 10px;
}
.playNow{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-left: 3em;
}
.playNow img{
    width: 20px;
}
.seekBar {
    width: 50vw;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    position: relative; 
    cursor: pointer;
}
.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    position: absolute;
    bottom: -3px;
    left: 0%;
    transition: left 0.5s;
}
.songTime{
    height: 30px;
    /* border: 1px solid white; */
    width: 120px;
    padding: 4px;
    color: black;
    /* margin-right: 0%; */
    font-size: 13px;
    margin: 0 -11vw 0 4vw;
}
.aboveBar{
    display: flex;
    justify-content: space-between;
    padding: 10px;
    width: 65vw;
}
.hamBurger{
    display: none;
}
.close{
    position: absolute;
    right: 20px;
    top: 20px;
    display: none;
}
.volume{
    cursor: pointer;
    display: flex;
    align-content: center;
}


.volume {
    position: relative;
    display: inline-block;
}

/* Initially hide the range input (volume slider) */
.volume input[type="range"] {
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    width: 0;
    height: 4px; 
    background-color: black; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    opacity: 0;
}


.volume:hover input[type="range"] {
    width: 100px; 
    transform: translateX(-50%) translateY(-20px); 
    opacity: 1;
}




@media (max-width:1000px) {
    .left{
        position: absolute;
        left: -100%;
        transition: all 0.3s;
        z-index: 1;
        background-color: rgb(0, 0, 0);
        width: 70vw;
    }
    .right{
        width: 100vw;
        height: 100vh;
    }
    .card{
        justify-content: center;
    }
    .playBar{
        width: 90vw;
    }
    .hamBurger{
        display: block;
        width: 50px;
    }
    .close{
        display: block;
    }
    .aboveBar{
        width: 80vw;
    }
    .songInfo{
        width: 25vw;
    }
    .seekBar{
        width: 70vw;
    }
    .songInfoContainer{
        margin-right: 0;
    }
    .card img{
        width: 15em;
    }
    .volume{
        display: none;
    }
    .songButtons{
        margin-left: 4vw;
    }
    .songTime{
        height: 30px;
        /* border: 1px solid white; */
        width: 120px;
        padding: 4px;
        color: black;
        margin-right: 0%;
        font-size: 13px;
    }
    
}


