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

:root {
    --opacity: 0;
}

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

aside {
    width: 20vw;
    height: calc(100vh - 12px);
    flex-direction: column;
    gap: 6px;
    margin: 6px 6px;
    margin-right: 0px;
}

main {
    width: 80vw;
    height: calc(100vh - 12px);
    flex-direction: column;
    margin: 6px 6px;
}

/* ASIDE HOME */

#close {
    display: none;
}

#home {
    height: 156px;
}

#home #logo {
    margin: 0px 24px;
    margin-top: 20px;
}

#home ul {
    margin: 0px 24px;
}


#home ul li {
    display: flex;
    gap: 20px;
    margin: 16px 0;
    list-style: none;
    align-items: center;
    font-weight: 500;
}

#home ul li img {
    width: 24px;
}

#home #search {
    margin-top: 24px;
}

/* ASIDE LIBRARY */

#library {
    height: calc(100% - 156px);
    position: relative;
}

#library>* {
    margin: 16px 24px;
}

#library #heading {
    gap: 13px;
    align-items: center;
}

#library #heading img {
    width: 24px;
}

#library .song-list{
    height: 75%;
    overflow-y: auto;
}

#library .song-list ol{
    gap: 5px;
    flex-direction: column;
}

#library .song-list ol li {
    display: flex;
    gap: 20px;
    padding: 10px;
    border: 1px solid white;
    border-radius: 5px;
}

#library .song-list ol li p {
    font-size: small;
}

#library .song-list ol li .play-now {
    gap: 4px;
    cursor: pointer;
}

#library .footer {
    display: flex;
    font-size: 9px;
    gap: 10px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
    margin: 10px;
}

#library .footer a {
    color: grey;
}

/* Main NAVBAR */


#navbar {
    justify-content: space-between;
    margin: 10px 30px;
    height: 46px;
}

#navbar nav {
    gap: 14px;
}

#hamburger {
    display: none;
    cursor: pointer;
}

#navbar nav>img {
    align-self: center;
    width: 28px;
    border-radius: 20px;
    background-color: black;
    cursor: pointer;
}

#navbar .buttons #log-in {
    background-color: white;
    color: black;
}

#navbar .buttons button {
    font-size: 15px;
    font-weight: 500;
    color: #a7a7a7;
    background-color: transparent;
    border: none;
    padding: 13px 30px;
    border-radius: 30px;
    cursor: pointer;
}

#navbar .buttons button:hover {
    scale: 1.05;
}

#navbar .buttons #sign-up:hover {
    color: white;
}

/* Spotify Playlist */

.spotify-playlist {
    margin: 10px;
    height: calc(100vh - 70px - 46px);
}

.card-container {
    margin: 20px 10px;
    gap: 15px;
    flex-wrap: wrap;
    height: calc(100% - 110px);
    overflow-y: scroll;
    width: 90%;
}

.card {
    width: 200px;
    position: relative;
    padding: 15px;
    background-color: black;
    border-radius: 8px;
    flex-direction: column;
    gap: 10px;
    height: 280px;
    transition: all 0.3s;
}

.card:hover {
    background-color: #252525;
    cursor: pointer;
    --opacity: 1;
}

.card img:first-child {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.card .play {
    width: 25px;
    height: 25px;
    background-color: #1fdf64;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 164px;
    right: 22px;
    opacity: var(--opacity);
    transition: all 1s ease-out;
}

/* playbar */

.playbar {
    flex-direction: column;
    height: 70px;
    background-color: #5b5b5b;
    border-radius: 30px;
    gap: 10px;
    color: black;
}

.abovebar {
    width: 95%;
    align-items: center;
    flex-direction: row;
}

.abovebar .song-info {
    flex: 1;
    text-align: left;
}


.songbuttons {
    gap: 10px;
    flex: 1;
}

.time-vol {
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.volume {
    gap: 10px;
}

.seekbar {
    height: 2px;
    width: 95%;
    border-radius: 10px;
    align-self: center;
    border: 2px solid black;
    position: relative;
    cursor: pointer;
}

.seekbar .circle {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    top: -6px;
    left: 0;
    transition: left 1s;
    cursor: pointer;
}

@media (max-width: 1400px) {
    #left {
        position: absolute;
        left: -100%;
        transition: all .3s;
        z-index: 1;
        width: 300px;
        background-color: black;
    }

    #right {
        width: 100vw;
    }

    #hamburger {
        display: block;
    }

    #close {
        display: block;
        right: 13px;
        top: 20px;
        position: absolute;
        cursor: pointer;
    }

    .card-container {
        margin: auto;
    }

}

@media (max-width: 800px) {

    #navbar .buttons button {
        font-size: 11px;
        padding: 13px 20px;
    }

    .abovebar {
        flex-direction: column;
        font-size: small;
    }

    .abovebar img {
        width: 15px;
    }

    .range input {
        height: 4px;
        width: 80px;
    }

    .seekbar {
        width: 85%;
    }
}