@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;
    /* font-size: 13px; */
}

body {
    background-color: black;
    color: white;
}

.left {
    width: 25vw;
    transition: all 1s;

}

.logo {
    display: flex;
    justify-content: space-between;
    padding-left: 10px
}



.home ul li {
    list-style: none;
    display: flex;
    gap: 15px;
    width: 34px;
    padding-top: 14px;
    font-weight: bold;

}

.heading {
    display: flex;
    gap: 15px;
    font-weight: bold;
    align-items: center;
    font-size: 13px;
    padding-bottom: 15px;
}

.library {
    min-height: 80vh;
    position: relative;
}

.footer a {
    color: gray;
    text-decoration: none;
    font-size: 13px;
}

.footer {
    display: flex;
    margin: 5px 0;
    position: absolute;
    bottom: 0;
    padding: 20px 10px 5px;
}

.right {
    width: 75vw;
    margin: 12px 0;
    position: relative;

}

.hamburger {
    display: none;
}

.cross {
    display: none
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(35, 34, 34);
    height: 73px;



}

.header>* {
    padding: 20px
}

.spotify-playlist {
    padding: 10px;
}

.card-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 30px;
    overflow-y: scroll;
    max-height: 70vh;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    /* Dark track color */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    /* Scrollbar handle color */
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    /* Matches track color */
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Lighter on hover */
}

.card {
    width: 200px;
    padding: 12px 10px 15px 10px;
    border-radius: 6px;
    background-color: #252525;
    height: 340px;
    position: relative;
    transition: all 0.9s;
}

.card:hover {
    background-color: #171717;
    --a: 1
}

.card>* {
    padding-top: 10px
}

.card img {
    width: 100%;
    object-fit: contain;
}

.play {
    position: absolute;
    right: 10px;
    bottom: 143px;
    opacity: var(--a);
    transition: all 0.5s ease-out;
}

.play:hover {
    opacity: 1
}

.button {

    margin: 0 10px;
}

.sign-btn {
    font-weight: bold;
    background-color: #252525;
    color: #848282;
    border: none;
    outline: none;

}

.sign-btn:hover {
    font-size: 14px;
    color: white;
    transition: all 0.5s ease-out;
    cursor: pointer;
}

.login-btn {
    background-color: white;
    color: rgb(96, 88, 88);
    border-radius: 21px;
    font-weight: bold;
    padding: 10px;
    border: none;
    width: 79px;
    font-size: 13px;
    cursor: pointer;
}

.login-btn:hover {
    font-size: 14px;
    width: 80px;
    font-weight: bold;
    color: black;


}

.playbar {
    position: fixed;
    bottom: 15px;
    filter: invert(1);
    background-color: rgb(213, 207, 207);
    width: 70vw;
    padding: 12px;
    border-radius: 15px;
    min-height: 33px;
}

.song-btn {
    display: flex;
    gap: 10px;
    justify-content: space-between;


}

.plau-pause-btn {
    min-width: 80px;
    transform: scale(1.3);
}


.song-info,
.time-upper-div {
    color: black;
    padding: 0 8px;
    width: 250px;

}

.time-upper-div {
    justify-content: first baseline;
    align-items: center;
    gap: 10px;
    padding-bottom: 30px
}


.volume {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.range{
    opacity: 1;
}


.song-list {
    overflow-y: scroll;
    margin: 0 0 44px 0;
    padding-bottom: 15px;
    height: 70vh;

}

.song-list ul {
    padding: 0 17px 0 0
}

.song-list ul li {
    width: 100%;
    list-style-type: decimal;
    display: flex;
    /* justify-content: space-between; */
    gap: 10px;
    cursor: pointer;
    padding: 12px 5px;
    border: 2px solid #584e4e;
    border-radius: 7px;
    margin: 7px 0;
}

.song-list .info {
    width: 344px;
}

.playnow {
    display: flex;
    align-items: center;
}

.playnow span {
    width: 56px;
    font-size: 12px;
}


.seekbar {
    width: 98.5%;
    height: 4px;
    background-color: black;
    position: absolute;
    bottom: 2px;
    border-radius: 20px;
    margin: 4px;
    left: 0;
    cursor: pointer;
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 13px;
    background-color: black;
    position: relative;
    bottom: 4px;
    left: 0%;
    transition: left 1s;

}

.song-btn img {
    cursor: pointer;
}

@media (max-width: 1350px) {
    .left {
        position: absolute;
        left: -150%;
        z-index: 13;
        transition: all 0.3s;
        width: 355px;

    }

    .hamburger {
        display: block;
    }

    .cross {
        display: block;
    }

    .spotify-playlist h2 {
        padding: 15px;
        margin-top: 2px;
    }

    .right {
        width: 99vw;
        height: 100vh;
        margin: 0;
    }

    .song-btn {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .container{
        margin:0;
    }

    .playbar {

        width: 96vw;
        padding: 13px;
        font-size: small;
        left: 7px;
        bottom: 3px;
        height: 40px;
        margin: 0;
    }

    .range {
        position: absolute;
        transform: rotateZ(-90deg);
        left: 40px;
        bottom: 120px;
        opacity: 0;
    }

    .song-info {
        position: absolute;
        left: -7px;
        top: 0;
        width: 143px;
    }

    .plau-pause-btn {
        transform: translateX(11px) scale(1.19);

    }

    .time-upper-div {
        position: absolute;
        right: 21px;
        top: 0;
        width: 70px;
        gap: 12px;
    }

    .song-time {
        padding: 0;
    }

    .seekbar {
        width: 98%;
    }

    .card-container {
        justify-content: center;
        gap: 20px;
        height: 80vh;
        width: 93vw

    }

    .card {
        width: 26vw;
        height: 46vh;
    }
}
@media (min-width: 910px) and (max-width: 1050px) {
.card {
        width: 26vw;
        height: 37vh;
    }
    .playbar {
        width: 95vw;
    }
    .card-container {
        height: 80vh;
        width: 93vw

    }

}
@media (min-width: 750px) and (max-width: 910px){
     .card-container {
        height: 70vh;
        width: 93vw

    }

    .card {
       width: 32vw;
        height: 40vh;  }
    
     .playbar {
        width: 95vw;
    }
}
@media (min-width: 600px) and (max-width: 750px){
     .card-container {
        height: 80vh;

    }

    .card {
        width: 33vw;
        height: 36vh
    }
    
     .playbar {
        width: 94vw;
    }
}
@media (max-width: 600px){
     .card-container {
        height: 75vh;

    }
    

    .card {
        width: auto;
        max-height: 43vh;
    }
    
     .playbar {
        width: 94vw;
        margin-bottom: 40px;
    }
}
