@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    font-weight: normal;
}

.logo {
    display: flex;
    align-items: center;
}

.logo p {
    font-size: 25px;
    color: white;
    margin-left: 10px;
}

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

.close {
    display: none;
}

.right {
    width: 75vw;
    position: relative;
    margin: 16px 0;
}

.home ul li {
    width: 14px;
    list-style: none;
    display: flex;
    gap: 15px;
    padding-top: 14px;
    font-weight: bold;
}

.hamburger {
    display: none;
}

.heading {
    display: flex;
    gap: 15px;
    width: 100%;
    padding: 14px 23px 14px;
    font-weight: bold;
    align-items: center;
    font-size: 13px;
}

.library {
    min-height: 75vh;
    overflow-y: scroll;
    position: relative;
    flex-wrap: wrap;
    overflow-x: hidden;
    max-height: 50vh;
}

.heading img {
    width: 20px;
}

.footer {
    display: flex;
    gap: 16px;
    font-size: 10px;
    bottom: 0;
    padding: 8px 0;
    position: absolute;
}

.footer a {
    color: grey;
    text-decoration: none;
    bottom: 0;
}

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

.header>* {
    padding: 20px;
}

.spotifyPlaylist {
    padding: 16px;
    height: 80vh;
}

.cardContainer {
    margin: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 65vh;
}
.cardContainer p,h2{
    display: absolute;
    bottom: 0;
}

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

.card:hover {
    box-shadow: 0 0 10px 0 white;
    transition: all 0.9s ease-out;
    cursor: pointer;
}

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

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

.play {
    position: absolute;
    top: 160px;
    right: 17px;
    opacity: 0;
}

.card:hover .play {
    opacity: 1;
    transition: all 0.8s ease-out;
}

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

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

.signUpBtn:hover {
    font-size: 17px;
    color: white;
}

.loginBtn {
    background-color: white;
    color: black;
    border-radius: 21px;
    padding: 10px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
}

.loginBtn:hover {
    font-weight: bold;
    font-size: 17px;
}

.playbar {
    min-height: 60px;
    position: absolute;
    bottom: 3px;
    width: 93%;
    border-radius: 10px;
    background-color: rgb(57, 53, 53);
    z-index: 1000;
}

.songList {
    height: 60vh;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-y: scroll;
}

.songList ul {
    height: 84vh;
    padding: 0 12px;
    width: 90%;
}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    gap: 14px;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 5px;
    margin: 12px 0;
    padding: 0 13px;
    align-items: center;
}

.library .info div {
    font-weight: normal;
    font-size: 12px;
}

.playNow {
    display: flex;
    padding: 0 10px;
    margin-left: auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.songList ul li .info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.playNow span {
    width: 25px;
    font-weight: normal;
    font-size: 12px;
}

.playNow img {
    width: 30px;
}

.seekBar {
    height: 2px;
    width: 98%;
    background-color: white;
    border: 2px solid rgb(198, 188, 188);
    position: absolute;
    bottom: 0;
    border-radius: 10px;
    left: 1%;
    cursor: pointer;
}

.circle {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: white;
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: transform 0.8s;
}

#volume {
    cursor: pointer;
}

.volume {
    position: relative;
    display: flex;
    align-items: center;
}

.volumeBar {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
}

.volume:hover .volumeBar,
.volumeBar:hover {
    display: block;
}

#volRange {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    height: 5px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#volRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

#volRange::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.songInfo {
    flex: 1;
    width: 30%;
    margin-right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songButton {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.songButton img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    filter: invert(1);
}

.songTime {
    flex: 1;
    color: white;
    font-size: 12px;
    text-align: right;
}

.aboveBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    position: relative;
    margin-top: 14px;
}

.vol-time {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

    .right {
        width: 100vw;
    }

    .close {
        display: block;
        position: absolute;
        right: 30px;
        top: 30px;
        cursor: pointer;
    }

    .aboveBar {
        margin-bottom: 6px;
    }

    .songButton {
        left: 3%;
    }

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

    .playbar {
        width: 100vw;
        position: fixed;
        bottom: 3px;
        left: 0;
        margin-bottom: 0;
    }

    .seekBar {
        width: 98%;
    }

    .hamburger {
        display: block;
        width: 40px;
    }

    .close img {
        width: 40px;
    }

    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card {
        width: 42vw;
    }

    .songInfo {
        margin-right: 35px;
        width: 150px;
    }
}

@media(max-width: 400px) {
    .card {
        width: 80vw;
    }
}