@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;
}

.left .close {
    display: none;
}

.right {

    width: 75vw;
}



.home ul li {
    gap: 15px;
    width: 14px;
    list-style: none;
    padding-top: 14px;
    font-weight: bold;
}

.bg-gray {
    background-color: #121212;
}

.heading {
    display: flex;

    gap: 15px;
    width: 100%;
    list-style: none;
    padding-top: 14px;
    font-weight: bold;
    align-items: center;
    padding: 23px 14px;
    font-size: 13px;
}



.library {
    min-height: 80vh;
    position: relative;
}

.heading img {
    width: 30px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    color: gray;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
}

.footer a {
    color: gray;


}

.right {
    margin: 16px 0;
    position: relative;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: #2a2929;
    height: 72px;
}

.header>* {
    padding: 20px;
}

.header .nav {
    gap: 14px;
    display: flex;
}

.spotifyPlaylists {
    padding: 16px;
    border-radius: 5px;

}

.spotifyPlaylists h1 {
    padding: 16px;
}

.cardcontainer {
    display: flex;

    gap: 10px;
    flex-wrap: wrap;
    margin: 30px;
    overflow-y: auto;
    max-height: 60vh;

}

.card {
    width: 200px;
    padding: 10px;
    background-color: #252525;
    position: relative;
    transition: all .9s;

}

.card:hover {
    background-color: rgb(63, 62, 62);
    cursor: pointer;
    --a: 1;
}

.card>* {
    padding-top: 10px;
}

.card .playlistimg {
    width: 100%;
    object-fit: contain;
}

.play {
    height: 40px;
    width: 40px;
    position: absolute;
    top: 164px;
    right: 16px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.signup-btn {
    background-color: black;
    font-weight: bold;
    color: rgb(107, 107, 107);
    border: none;
    outline: none;
    background-color: #2a2929;
    cursor: pointer;
    font-size: 16px;
}

.buttons>* {
    margin: 0 12px;
}

.signup-btn:hover {
    font-size: 17px;
    color: white;
}

.login-btn {
    background-color: white;
    border-radius: 21px;
    color: black;

    padding: 10px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
}

.login-btn:hover {

    font-weight: bold;
    font-size: 17px;


}


.playbar {
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background-color: #dad5d5;
    border-radius: 10px;
    width: 90%;
    padding: 12px;
    width: 70vw;
    min-height: 40px;

    /* display: flex;
    justify-content: center; */
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.songlist {
    height: 544px;
    overflow: auto;
    margin: 0 0 44px 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.songlist ul {

    padding: 0 12px;
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    border: 1px solid rgb(255, 255, 255);
    margin: 12px 0;
    padding: 13px;
    border-radius: 5px;
}

.songlist .info {
    font-size: 14px;
    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: 98%;
    background: rgb(0, 0, 0);
    position: absolute;
    bottom: 5px;
    cursor: pointer;
    border-radius: 10px;
    margin: 6px;
}

.circle {
    width: 13px;
    height: 13px;
    border-radius: 100%;
    background-color: black;
    position: relative;
    left: 0;
    bottom: 6px;
    transition: left 0.5s;
}

.songbuttons img {
    cursor: pointer;
}

.abovebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.timevol {
    display: flex;
    justify-content: center;
    align-items: center;
}

.songinfo {
    color: black;
    padding: 0px 12px;
    width: 250px;
}

.songtime {
    width: 100px;
    color: black;
    padding: 0px 12px;
}

.volume {
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
}

.range input {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .left {
        background: black;
        position: absolute;
        left: -120%;
        transition: all 0.3s;
        z-index: 1;
        width: 370px;
        padding: 0;

    }

    .left .close {
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;
        display: block;

    }

    .timevol {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        gap: 13px;
    }

    .right {
        width: 100vw;
        margin: 0;
    }

    .playbar {
        width: calc(100vw - 60px);
    }

    .seekbar {
        width: calc(100vw - 70px);
    }

    .hamburger {
        display: block;
    }

    .cardcontainer {

        margin: 0;
        max-height: 56vh;

    }

    .card {
        width: 40vw;
    }

    .abovebar {
        flex-direction: column;
        align-items: center;
        gap: 23px;
    }

    .songinfo,
    .timevol {
        width: auto;
        text-align: center;
    }

    .header>* {
        padding: 17px 12px;
        align-items: center;
    }
}

@media (max-width: 400px) {
    .card {
        width: 60vw;
    }

    .cardcontainer {
        justify-content: center;
        margin: 0;
       max-height: 40vh;

    }

    .play {
        height: 40px;
        width: 40px;
        position: absolute;
        top: 260px;
        right: 20px;
        opacity: var(--a);
        transition: all 1s ease-out;
    }
}