@import url('https://fonts.googleapis.com/css2?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;
    margin: 16px 0;
    position: relative;
}

.header {
    display: flex;
    height: 60px;
    justify-content: space-between;
}

.header button {
    position: relative;
    margin-top: 10px;
    margin-right: 4px;
    padding: 10px;

}

.header ul {
    display: flex;
    gap: 100px;
    width: 14px;
}

.header ul li {
    gap: 100px;
    width: 14px;
    list-style: none;
    padding-top: 17px;
    padding-left: 20px;
    font-weight: bold;
}

.heading {
    gap: 15px;
    width: 140px;
    padding-top: 14px;
    font-weight: bold;
    font-size: 13px;
}

.library {
    min-height: 80vh;
    position: relative;
}

.footer {
    display: flex;
    font-size: 10px;
    gap: 10px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
}

.footer a {
    color: grey;

}

.spotifyPlaylists {
    padding: 16px;
}

.spotifyPlaylists h1 {
    padding: 16px;
}

.cardContainer {
    margin: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 60vh;
}

.card {
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
    transition: all 1s;
}

.card:hover {
    background-color: rgb(96, 96, 96);
    cursor: pointer;
    --a: 1;
}

.card>* {
    padding-top: 10px;
}

.card img {
    width: 100%;
    object-fit: contain;
}

.play {
    width: 35px;
    height: 35px;
    background-color: #1fdf64;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 90px;
    right: 17px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.buttons>* {
    margin: 0 12px;
}

.signupbtn {
    background-color: black;
    color: rgb(82 82 82);
    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: 30px;
    color: black;
    font-weight: bold;
    padding: 10px;
    width: 100px;
    height: 50px;
    cursor: pointer;
}

.loginbtn:hover {
    width: 105px;
}

.playbar {
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background: #dad5d5;
    border-radius: 10px;
    min-height: 35px;
    width: 69vw;
    padding: 10px;
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.songlist {
    height: 520px;
    overflow: auto;
    margin-bottom: 44px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.songlist ul {
    padding: 0 10px;
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    border: 1px solid white;
    margin: 12px 0;
    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: 3px;
    width: 97%;
    background: black;
    border-radius: 10px;
    position: absolute;
    bottom: 5px;
    margin: 6px;
    cursor: pointer;
}

.circle {
    height: 13px;
    width: 13px;
    border-radius: 13px;
    background-color: black;
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: left 0.5s;
}

.songbuttons img {
    cursor: pointer;
}

.timevol {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.volume {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.range input {
    cursor: pointer;
}

.songinfo {
    width: 300px;
    color: black;
    padding: 0 12px;
}

.songtime {
    width: 125px;
    color: black;
    padding: 0 12px;
}

.abovebar {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.close {
    display: none;
}

/* Highlight the currently playing song */
.songlist ul li.playing {
    background-color: #1db954;
    color: white;
    border: 2px solid white;
    box-shadow: 0 0 10px #1db954;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}


@media (max-width: 1200px) {
    .left {
        position: absolute;
        left: -120%;
        transition: all .3s;
        z-index: 1;
        width: 370px;
        background-color: black;
        padding: 0;
        height: 100vh;
        position: fixed;
        top: 0;
    }

    .songinfo {
        width: auto;
    }

    .library .close {
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;
    }

    .timevol {
        flex-direction: column;
        gap: 13px;
    }

    .right {
        width: 100vw;
        margin: 0;
    }

    .playbar {
        width: calc(100vw - 75px);
    }

    .seekbar {
        width: calc(100vw - 120px);
    }

    .hamburger {
        display: block;
    }

    .card {
        width: 90vw;
    }

    .cardContainer {
        margin: 0;
        justify-content: center;
    }

    .close {
        display: block;
    }

    .abovebar {
        flex-direction: column;
        gap: 23px;
        align-items: center;
    }

}

@media (max-width: 450px) {
    body {
        font-size: 14px;
    }

    .left {
        width: 100vw;
    }

    .header ul {
        gap: 20px;
    }

    .card {
        width: 90vw;
    }

    .card img {
        height: auto;
        max-height: 180px;
        object-fit: cover;
    }

    .playbar {
        flex-direction: column;
        align-items: center;
        width: 95vw;
        padding: 12px;
        bottom: 20px;
    }

    .album-art {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .songinfo {
        text-align: center;
        width: auto;
        font-size: 14px;
        margin-bottom: 8px;
    }

    .songtime {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .seekbar {
        width: 90%;
    }

    .songbuttons img {
        width: 28px;
        height: 28px;
    }

    .volume {
        flex-direction: row;
        gap: 8px;
    }

    .buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cardContainer {
        padding: 0 10px;
        justify-content: center;
    }

    .songlist ul li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .songlist .info {
        width: auto;
    }
}