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

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: small;
}

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

.left {
    width: 25vw;
    padding: 10px;
    position: relative;

}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 18px;
    color: white;
}



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

.heading {
    display: flex;
    gap: 15px;
    width: 200px;
    padding-top: 14px;
    font-weight: bold;
    align-items: center;
    font-size: 10px;
}

.library {
    min-height: 80vh;
    position: relative;
}

.heading img {
    width: 15px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    color: grey;
    gap: 13px;
    position: absolute;
    bottom: 0;
}

.footer a {
    color: grey;
}

.right {
    margin: 16px 0;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: grey;
    border-radius: 5px;

}

.header>* {
    padding: 20px;
}

.spotifyPlaylists {
    padding: 16px;
}

.spotifyPlaylists .card {
    width: 75px;
    padding: 10px;
    border-radius: 10px;
    background-color: #252525;


}

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

.card {
    position: relative;
}

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

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


.play {
    position: absolute;
    top: 125px;
    right: 14px;
    opacity: 0;
    transition: all 1s ease-out;
}

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

.signupBtn {
    background-color: grey;
    color: white;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signupBtn:hover {
    font-size: 16px;
    color: white;
    background-color: green;
    border-radius: 17px;
    padding: 5px;
    width: 79px;

}

.loginBtn {
    background-color: white;
    border-radius: 17px;
    color: black;
    padding: 5px;
    width: 79px;
    cursor: pointer;
}

.loginBtn:hover {
    font-weight: bold;
    width: 80px;
}

.playbar {
    position: fixed;
    bottom: 0;
    background-color: green;
    width: 70%;
    padding: 12px;
    border-radius: 200px;
    justify-self: center;
    bottom: 30px;
    height: 30px;
}

.songbuttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}


.hamburger {
    display: none;
}

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

}

.close {
    /* display: flex; */
    display: none;
} 


.songlist {
    height: 320px;
    overflow: scroll;
    margin-bottom: 44px;
    margin-top: 20px;

}

.songlist ul li {
    display: flex;
    /* makes the icon and text sit in a row */
    align-items: center;
    /* vertically centers the icon with the text */
    /* optional spacing between icon and text */
    gap: 10px;
    cursor: pointer;
    padding: 12px 0;
    border: 1px solid white;
    margin: 7px 0;
    border-radius: 5px;
    padding: 10px;
    justify-content: space-between;

}

.songlist ul li .info {
    display: flex;
    flex-direction: column;
    font-size: 10px;
    /* keeps song name and artist stacked vertically */

}

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

.playnow span {
    font-size: 10px;
    width: 60px;
}

.seekbar {
    height: 2px;
    width: 90%;
    background-color: black;
    position: absolute;
    bottom: 9px;
    margin: 5px;
    cursor: pointer;

}

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

.songbuttons img {
    cursor: pointer;
    width: 20px;
}

.abovebar {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.songinfo, .songtime {
    width: 250px;
    color: black;
    /* font-size: smaller; */
    /* font-weight: bold; */
    padding: 0 12px;
}

/* responsiveness  */
@media (max-width: 1200px) {

    .left {
        position: absolute;
        left: -120%;
        transition: left 0.3s ease;
        z-index: 1;
        width: 400px;
        background-color: black;

    }

    .left .close {
        display: block;
        position: absolute;
        right: 40px;
        top: 40px;

    }

    .right {
        width: 100vw;
    }

    .playbar {
        width: 90vw;
    }

    .hamburger {
        display: block;
    }

}

@media (max-width: 768px) {
    .songinfo{
        font-size: x-small;
    }
}

/* iPhone 14 Pro Max and similar (logical width ~430px) */
@media (max-width: 430px) {
    .right {
        width: 100vw;
        margin: 8px 0;
    }

    .header>* {
        padding: 12px;
    }

    .spotifyPlaylists {
        padding: 10px;
    }

    .spotifyPlaylists .card {
        width: 45vw;
        padding: 10px;
    }

    .cardContainer {
        gap: 8px;
        margin: 12px;
        max-height: 72vh;
    }

    .play {
        top: 90px;
        right: 10px;
    }

    .playbar {
        width: 94vw;
        height: 42px;
        padding: 10px;
        bottom: 20px;
    }

    .abovebar {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .songbuttons {
        gap: 10px;
    }

    .songtime {
        font-size: 10px;
    }

    .songinfo {
        font-size: 10px;
    }

    .seekbar {
        width: 88%;
        bottom: 6px;
    }

    .circle {
        bottom: 4px;
        width: 12px;
        height: 12px;
    }

    .songlist {
        height: 280px;
        margin-bottom: 52px;
    }

    .left {
        width: 80vw;
    }

    .left .close {
        right: 20px;
        top: 20px;
    }

    .footer {
        position: static;
        gap: 10px;
        font-size: 9px;
    }

    .loginBtn, .signupBtn {
        font-size: 14px;
    }

    .heading {
        width: auto;
    }

    .playnow span {
        font-size: 9px;
        width: 52px;
    }
}

/* Samsung S20 Ultra and similar (logical width ~412px) */
@media (max-width: 412px) {
    .right {
        width: 100vw;
        margin: 6px 0;
    }

    .header>* {
        padding: 10px;
    }

    .spotifyPlaylists {
        padding: 10px;
    }

    .spotifyPlaylists .card {
        width: 46vw;
        padding: 10px;
    }

    .cardContainer {
        gap: 8px;
        margin: 10px;
        max-height: 70vh;
    }

    .play {
        top: 84px;
        right: 10px;
    }

    .playbar {
        width: 96vw;
        height: 42px;
        padding: 10px;
        bottom: 18px;
    }

    .abovebar {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }

    .songbuttons {
        gap: 10px;
    }

    .songtime,
    .songinfo {
        font-size: 10px;
    }

    .seekbar {
        width: 86%;
        bottom: 6px;
    }

    .circle {
        bottom: 4px;
        width: 12px;
        height: 12px;
    }

    .songlist {
        height: 270px;
        margin-bottom: 54px;
    }

    .left {
        width: 82vw;
    }

    .left .close {
        right: 18px;
        top: 18px;
    }

    .footer {
        position: static;
        gap: 10px;
        font-size: 9px;
    }

    .loginBtn, .signupBtn {
        font-size: 14px;
    }

    .heading {
        width: auto;
    }

    .playnow span {
        font-size: 9px;
        width: 50px;
    }
}
