@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: 30vw;
    padding: 10px;
}

.right {
    width: 70vw;
    margin: 16px 0;
    margin-right: 15px;
    position: relative;
}


.home ul li {
    width: 14px;
    list-style: none;
    display: flex;
    gap: 15px;
    padding-top: 14px;
    font-weight: bold;
}

.heading {
    display: flex;
    gap: 15px;
    width: 100%;
    padding-top: 14px;
    padding: 23px 14px;
    font-weight: bold;
    font-size: 13px;
    align-items: center;
}

.heading img {
    width: 30px;
}

.library {
    min-height: 75vh;
    position: relative;
}

.footer {
    display: flex;
    font-size: 10px;
    color: grey;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
}

.footer a {
    color: grey;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(34, 34, 34);
    height: 76.8px;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.header>* {
    padding: 20px;
}

.nav {
    display: flex;
    align-items: center;
}

.spotifyPlaylists {
    padding: 16px;
}

.spotifyPlaylists h1 {
    padding: 13px;
}

.cardContainer {
    margin: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow: auto;
    max-height: 55vh;
}

.card {
    width: 200px;
    padding: 10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
}

.card:hover {
    background-color: rgb(61, 60, 60);
    cursor: pointer;
    transition: all 0.9s;
    --a: 1;
}

.card>* {
    padding-top: 10px;
}

.card img {
    width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.play {
    position: absolute;
    bottom: 130px;
    right: 17px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.buttons>* {
    margin: 0 12px;
}

.signupbtn {
    background-color: rgb(34, 34, 34);
    color: #978d8d;
    font-weight: bold;
    border: none;
    outline: none;
    font-size: 14px;
}

.signupbtn:hover {
    font-size: 15px;
    color: white;
}

.loginbtn {
    background-color: white;
    border-radius: 21px;
    color: black;
    width: 79px;
    padding: 10px;
    cursor: pointer;
    outline: none;
    border: none;
    font-size: 14px;
}

.loginbtn:hover {
    font-weight: bold;
    width: 80px;
    font-size: 15px;
    background-image: linear-gradient(to right, lightblue, darkblue);
}

.playbar {
    position: fixed;
    bottom: 35px;
    background-color: rgb(43, 55, 52);
    width: 64.2%;
    padding: 17px;
    min-height: 40px;
    border-radius: 12px;
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.songbuttons>* {
    cursor: pointer;
}

.songList {
    max-height: 50vh;
    overflow: scroll;
    overflow: auto;
}

.songList ul {
    padding: 0 10px;
}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    border: 1px solid white;
    margin: 11px 0;
    padding: 12px;
    border-radius: 3px;
}

.songList .info {
    font-size: 15px;
    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: 5px;
    width: 99.8%;
    background-color: #fff;
    border-radius: 8px;
    position: absolute;
    left: 0px;
    bottom: 0;
    margin-bottom: 5px;
    cursor: pointer;
}

.circle {
    height: 13px;
    width: 13px;
    border-radius: 13px;
    background-color: white;
    position: relative;
    bottom: 5px;
    left: 0%;
    transition: left 0.5s;
}

.abovebar {
    display: flex;
    justify-content: space-between;
}

#play:hover {
    filter: invert(1);
}

.hamburger {
    display: none;
}

.left .close {
    display: none;
}

.timevol {
    display: flex;
    gap: 15px;
}

.songinfo {
    width: 131px;
}

.volume {
    position: relative;
    bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    filter: invert(1);
    cursor: pointer;
}

.range input {
    cursor: pointer;
}

.volume .range {
    position: relative;
    top: 2px;
}

@media only screen and (max-width: 1450px) {
    .left {
        background-color: black;
        position: absolute;
        left: -120%;
        transition: all .5s;
        z-index: 3;
        width: 370px;
        padding: 0;
    }

    .left .close {
        display: block;
        position: absolute;
        right: 32px;
        top: 44px;
    }

    .right {
        width: 100vw;
        position: relative;
        margin: 0;
    }

    .playbar {
        width: 95vw;
    }

    .hamburger {
        display: block;
    }

    .card {
        width: 40vw;
    }

    .cardContainer {
        margin: 0;
        justify-content: center;
    }

    .abovebar {
        display: flex;
        flex-direction: column;
        gap: 23px;
        align-items: center;
        margin: 10px 0;
    }

    .songinfo {
        text-align: center;
    }

    .timevol {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 25px;
    }

    .volume {
        position: relative;
        right: 14px;
    }

    .play {
        position: absolute;
        bottom: 125px;
        right: 25px;
    }

    .footer a {
        font-size: 9px;
    }

    .footer {
        gap: 7px;
    }

    .spotifyPlaylists h1 {
        font-size: 25px;
    }

    .songList ul li {
        gap: 10px;
        cursor: pointer;
        border: 1px solid white;
        margin: 11px 0;
        padding: 12px 5px;
        border-radius: 3px;
    }
}


/* For setting the width of playbar according to width of device */

@media only screen and (max-width: 1152px) {
    .playbar {
        width: 94vw;
    }
}

@media only screen and (max-width: 950px) {
    .playbar {
        width: 92vw;
    }
}

@media only screen and (max-width: 712px) {
    .playbar {
        width: 90vw;
    }
}

@media only screen and (max-width: 570px) {
    .playbar {
        width: 88vw;
    }
}

@media only screen and (max-width: 484px) {
    .playbar {
        width: 85vw;
    }

    .left {
        width: 340px;
    }

    .card {
        width: 80vw;
    }
}

@media only screen and (max-width: 393px) {
    .playbar {
        width: 82vw;
    }
}


/* for setting the position of playbar according to the device height*/

@media only screen and (min-height: 743px) {
    .playbar {
        bottom: 55px;
    }
}

@media only screen and (min-height: 830px) {
    .playbar {
        bottom: 73px;
    }
}

@media only screen and (min-height: 902px) {
    .playbar {
        bottom: 83px;
    }
}

@media only screen and (min-height: 945px) {
    .playbar {
        bottom: 93px;
    }
}

@media only screen and (min-height: 982px) {
    .playbar {
        bottom: 30px;
    }
}




/* height of card */
@media only screen and (max-width: 545px) {
    .cardContainer {
        max-height: 32vh;
    }
}

@media only screen and (max-width: 330px) {
    .buttons>* {
        margin: 0 2px;
    }
    .loginbtn , .signupbtn{
        font-size: 10px;
    }
}