@import url('https://fonts.googleapis.com/css2?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 {
    --a:0;
}

*{
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif; 
}

body {
    color: white;
    background-color: black;
}

.container{
    height: 100%;
}
 
.left {
    width: 25vw;
    padding: 10px;
}

.right {
    width: 75vw;
    margin: 16px 0;
    margin-right: 15px;
    position: relative;
    border-radius: 15px;
} 

.home ul li {
    display: flex;
    gap: 15px;
    width: 24px;
    list-style: none;
    padding-top: 14px;
    padding: 15px;
    font-weight: bold;
}

.logo {
    padding: 15px;
}

.heading {
    display: flex;
    gap: 15px;
    width: 100%;
    padding-top: 14px;
    padding: 23px 14px;
    font-weight: bold;
    align-items: center;
    font-size: 13px;
}

.heading img {
    width: 30px;
}

.library {
    height: 80vh;
    position: relative;
}

.footer {
    display: flex;
    font-size: 15px;
    color: gray;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 12px;
}

.header {
    display: flex;
    justify-content: space-between;
    background-color: #1d1d1d;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    align-items: center;
    height: 80px;
}

.header > *{
    padding: 20px ;
}

.spotifyPlaylists {
    padding: 16px;
    
}

.cardContainer {
    display: flex;
    margin: 30px 10px;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 80vh;
}

.card {
    width: 200px;
    padding: 10px;
    border-radius: 15px;
    background-color: #1d1d1d;
    position: relative;
    transition: all .5s;
}

.card:hover {
    background-color: #3f3f3f;
    cursor: pointer;
    --a: 1;
}

.card > *{
    padding-top: 10px;
}

.card img {
    width: 100%;
    object-fit: contain;
}

.play {
    position: absolute;
    top: 170px;
    right: 17px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.button > * {
    margin: 0 12px;
}

.signupbtn {
    background-color: #0000009a;
    color: rgb(180, 180, 180);
    padding: 10px;
    width: 90px;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signupbtn:hover {
    font-size: 17px;
    color: white;
    background-color: black;
}

.loginbtn {
    background-color: rgba(255, 255, 255, 0.795);
    border-radius: 30px;
    color: black;
    padding: 10px;
    width: 90px;
    cursor: pointer;
    outline: none;
    border: none;
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.loginbtn:hover {
    font-size: 17px;
    background-color: white;
}

/* Style the scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* Track (the area where the thumb doesn't exist) */
::-webkit-scrollbar-track {
    background: #333; 
}

/* Handle (the draggable scrolling element) */
::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #777; 
}

.hamburger {
    display: none;
}

.close {
    display: none;
}

.hamburger-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.playbar {
    position: absolute;
    bottom: 30px;
    width: 100%;
    background-color: #3b3b3ba9;
    border-radius: 15px;
    padding: 12px;
    width: 68vw;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    right: 25px;
}

.songbuttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.songlist {
    height: 350px ;
    overflow: auto;
    margin-bottom: 44px;
}

.songlist ul {
    padding: 0 12px;
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border: 2px solid white;
    margin: 12px 0;
    border-radius: 10px;
}

.songlist .info {
    font-size: 13px;
    width: 344px;
}

.playnow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.playnow span {
    font-size: 15px;
    width: 65px;
    padding:12px;
}

.seekbar {
    height: 4px;
    width: 95%;
    background: rgb(153, 153, 153);
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    margin: 8px;
    cursor: pointer;
    padding: 2px;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 15px;
    background-color: #12e635;
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: left 0.5s;
}

.songbuttons img {
    cursor: pointer;
    padding-bottom: 10px;
}

.timevol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 5px;
}

.songinfo{
    width: 200px;
}

.songinfo, .songtime {
    padding: 0 12px;
}

.volume {
    width: 100px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px 5px;
}

.range input {
    cursor: pointer;
    accent-color: #0f9e16;
}

.mainbar {
    display: flex;
    justify-content: space-between;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 1200px) {

    body {
        background-color: hsl(0deg 0% 7.06%);
    }

    .left{
        left: -130%;
        transition: all .3s;
        z-index: 1;
        width: 400px;
        background-color: #000000;
        padding: 0;
        height: 100vh;
        position: fixed;
        top: 0;
    }

    .left .close {
        position: absolute;
        right: 40px;
        top: 30px;
        width: 20px;
    }
    
    .right{
        width: 100vw; 
        height: 130vh;
        margin: 0;
        border-radius: 0;
    }

    .library{
        height: 80vh;
    }

    .playbar {
        width: calc(100vw - 100px);
        right: 40px;
    }

    .seekbar {
        width: calc(100vw - 120px);
    }

    .hamburger {
        display: block;
    }

    .close {
        display: block;
    }

    .header {
        border-radius: 0;
    }

    .songlist {
        height: 544px;
    }

}

@media (max-width: 500px) {

    .left {
        width: 100vw;
    }

    .library {
        height: 75vh;
    }

    .right{
        height: auto;
        padding-bottom: 0;
    }
    
    .card {
        width: 80vw;
    }
    
    .cardContainer {
        margin: 0;
        justify-content: center;
        overflow-y: unset;
        max-height: unset;
    }

    .spotifyPlaylists {
        height: auto;
    }

    .mainbar {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
        align-items: center;
    }

    .playbar {
        border-radius: 10px;
        position: fixed;
        right: auto;
        backdrop-filter: blur(4px);
        background-color: rgba(8, 4, 17, 0.24);
    }

    .playbar {
        width: calc(110vw - 100px);
    }

    .seekbar {
        width: calc(110vw - 120px);
    }

    .songinfo, .songtime{
        width: auto;
    }

    .info div {
        word-break: break-all;
    }

    .spotifyPlaylists h1 {
        padding-bottom: 30px;
    }

    .nav {
        padding: 10px;
    }

    .loginbtn {
        width: 80px;
    }

    .signupbtn {
        width: 80px;
    }

    .button {
        display: flex;
    }

    .play {
        position: absolute;
        top: 260px;
        right: 17px;
        opacity: var(--a);
        transition: all 1s ease-out;
    }

    .play svg {
        height: 50px;
        width: 50px;
    }

    .seekbar {
        top: 85px;
    }

    .timevol {
        padding-bottom: 0;
        gap: 40px;
    }

}

