@import url('https://fonts.googleapis.com/css2?family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --a: 0;
}

* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

body {
    background-color: black;
    color: white;
}

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

.right {
    width: 75vw;
    position: relative;
}



.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: grey;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 20px 0;
    margin-left: 15px;

}

.footer a {
    color: grey;
}

.right {
    margin: 16px 0;
}

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

.header>* {
    padding: 20px;
}

.spotify-playlists {
    padding: 16px;

}

.spotify-playlists h1 {
    padding: 16px;

}

.cardContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px;
    overflow-y: auto;
    max-height: 60vh;
}

.card {
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}

.card:hover {
    background-color: #252525;
    cursor: pointer;
    transition: all 0.9s;
    --a: 1;

}

.card>* {
    padding-top: 10px;

}

.card *:hover {
    --a: 1;
}

.card img {
    width: 100%;
    object-fit: contain;
}

.play {
    position: absolute;
    top: 150px;
    right: 20px;
    opacity: var(--a);
    transition: all 0.3s ease-out;
    transform: translateY(20px);
}

.card:hover .play {
    transform: translateY(0);

}

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

.signup-btn {
    background-color: rgb(34, 34, 34);
    color: rgb(151, 151, 151);
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signup-btn:hover {
    font-size: 17px;
    color: rgb(255, 255, 255);
}

.login-btn {
    background-color: white;
    border-radius: 22px;
    color: black;
    padding: 10px;
    cursor: pointer;
    width: 80px;
    font-weight: bold;
}

.login-btn:hover {
    scale: 1.04;
}

.hamburger {
    display: none;
}



.songs-list ul {
    padding: 0 12px;
}

.songs-list ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    border: 1px solid rgba(146, 143, 143, 0.491);
    margin: 12px 0;
    padding: 13px;
    border-radius: 5px;
}

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

.playnow span {
    font-size: 15px;
    width: 64px;
    padding: 12px;
}

.info div {
    word-break: break-all;
}

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

.songs-list {
    height: 444px;
    overflow: auto;
    margin-bottom: 44px;
}

.playbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background: #e2d9d9;
    border-radius: 10px;
    width: 90%;
    padding: 12px;
    width: 70vw;
    min-height: 50px;
}

/* Fix the song-bar layout */
.song-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    gap: 20px;
}

/* Each section takes equal width */
.song-info {
    flex: 1;
    text-align: left;
}

.song-buttons {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 8px;
}

.song-time {
    flex: 1;
    text-align: right;
}

.seekbar {
    height: 4px;
    width: 98%;
    background: black;
    border-radius: 10px;
    position: absolute;
    bottom: 8px;
    cursor: pointer;
}

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

.volume-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

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

input {
    cursor: pointer;
}

.song-buttons img {
    cursor: pointer;
}

.song-info,
.song-time {
    color: black;
    padding: 0;
}

.close {
    display: none;
}

.volume {
    cursor: pointer;
}

@media (max-width:1200px) {
    .left {
        position: absolute;
        left: -120%;
        transition: all .3s;
        z-index: 1;
        width: 370px;
        background-color: black;
        padding: 0;
    }

    .right {
        width: 100vw;
        margin: 0;
    }

    .playbar {
        width: calc(100vw - 75px);
    }

    .seekbar {
        width: calc(100vw - 120px);
    }

    .hamburger {
        display: inline-block;
        cursor: pointer;
    }

    .left .close {
        display: block;
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;
        cursor: pointer;
    }

    .card {
        width: 60vw;
    }

        .cardContainer {
        margin: 0;
        justify-content: center; 
         max-height: unset;
        overflow-y: unset;
        margin-bottom: 35vh;
    }
    

    .song-bar {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .song-info,
    .song-time {
        width: auto;
    }
}

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

    .header>* {
        padding: 2px;
    }

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

    .header {
        padding: 7px;
    }

    .spotifyPlaylists h1 {
        padding: 4px;
    }

    .library {
        height: 85vh;
    }

    .left {
        width: 100vw;
    }
}