:root{
    --a : 0;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-color: black;
    color: white;
    font-family: 'poppins', Arial, Helvetica, sans-serif;
    overflow-y: hidden;
}

.left{
    width: 30vw;
    height: 100vh;
}

.close{
    position: absolute;
    padding-left: 0.7rem;
    border-radius: 10px;
    right: -2rem;
    top: 10px;
    font-size: 2rem;
    cursor: pointer;
    background-color: black;
    display: none;
}

.logo{
    align-items: center;
    gap: 0.3rem;
}

.home ul li{
    width: 1.5rem;
    gap: 0.3rem;
    list-style: none;
    margin-top: 1rem;
}

.library{
    position: relative;
    height: 75vh;
}


.name{
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.library-icon{
    color: #b3b3b3;
    font-weight: 500;
    gap: 0.3rem;
    /* width: 1.5rem; */
}

.library-icon img{
    width: 1.5rem;
    fill: #b3b3b3;
}

.footer{
    flex-wrap: wrap;
}

.footer a{
    font-size: 0.7rem;
    color: #b3b3b3;
    text-decoration: none;
    margin-right: 1rem;
}

.cookies-link{
    font-size: 0.75rem;
    color: white;
    text-decoration: none;
    display: block;
}

.foot-lang-button{
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    background-color: #121212;
    color: white;
    border: 1px solid #b3b3b3;
}

.foot-lang-button img{
    width: 1rem;
}

.footer-container{
    position: absolute;
    bottom: 1rem;
}

/* Right */

.right{
    width: 70vw;
    height: 100vh;
    /* background-color: #121212; */
}

nav{
    display: flex;
    justify-content: space-between;
}

.hamburger{
    margin-top: -1px;
    width: 20px;
    position: absolute;
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-arrows i{
    margin: 0.5rem;
}

.signup{
    border: none;
    background-color: black;
    color: #b3b3b3;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 1rem;
    cursor: pointer;
}

.login{
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* main */

main{
    width: 100%;
}

.playlist-container{
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    height: 65vh;
    overflow-y: scroll;
}

.hoverPlaybutton{
    height: 40px;
    width: 40px;
    position: absolute;
    top: 53%;
    right: 10%;
    transition: all ease-in-out 0.3s;
    /* transform: translate(10px); */
    opacity: var(--a);
}

.playlist{
    height: 270px;
    width: 200px;
    /* border: 1px solid white; */
    background-color: #151515;  
    padding: 10px;
    border-radius: 5px;
    position: relative;
    transition: all ease-in-out 0.3s;
}

.playlist:hover{
    --a: 1;
    background-color: #242424;
}

.playlist-logo{
    width: 180px;
    object-fit: contain;
    border-radius: 15px;
}

.playlist h4{
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.playlist p{
    font-size: 0.7rem;
    color: #b3b3b3;
}

/* Song cards */

.songs-container{
    /* border: 2px solid red; */
    margin-top: 20px;
    max-height: 60%;
    width: 100%;
    overflow-y: auto;
}

.song-card{
    height: 60px;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 0px 10px;
    font-size: 0.7rem;
    contain: content;
    
    align-items: center;
    justify-content: space-between;
}

.song-info{
    width: 40%;
}

.song-card i{
    font-size: 1.5rem;
    cursor: pointer;
}

/* player */

.player{
    width: 100%;
    margin: auto;
    max-height: 8vh;
    margin-top: 1rem;
    background-color: #242424;
    font-size: 1.7rem;
    border-radius: 30px;
    padding: 0.5rem;
    position: relative;
    padding-bottom: 20px;
}

.player i{    
    cursor: pointer;
}

.player-buttons{
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.player-right-cont{
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 30%;
    right: 2rem;
    font-size: 1rem;
}

.song-name{
    position: absolute;
    font-size: 1rem;
    top: 30%;
    left: 2rem;
}

/* .song-duration{
    position: absolute;
    font-size: 1rem;
    top: 30%;
    right: 2rem;
} */

.seekbar{
    width: 95%;
    height: 3px;
    background-color: #b3b3b3;
    position: absolute;
    bottom: 5px;
    left: 2%;
    cursor: pointer;
}

.seekbar-pointer{
    width: 1rem;
    height: 1rem;
    background-color: #b3b3b3;
    border-radius: 50%;
    position: relative;
    bottom: 7px;
    left: 0%;
    /* left: 96%; */
    transition: all ease-in-out 0.1s;
}


/* Media Queries to make responsive */

@media screen and (max-width: 1200px) {
    .left{
        position: absolute;
        left: -100%;
        transition: all ease-in-out 0.3s;
    }

    .right{
        width: 100vw;
    }

    .hamburger{
        display: unset;
    }

    .nav-arrows{
        margin-left: 1.5rem;
    }

    .playlist-container{
        justify-content: space-evenly;
    }
}

@media screen and (max-width: 900px){
    .player-right-cont{
        /* font-size: 0.8rem; */
        position:unset;
    }

    .song-name{
        /* font-size: 0.8rem; */
        position: unset;
        /* width: 20vw; */
        /* text-overflow: ellipsis; */
        /* overflow: hidden; */
        /* text-wrap: nowrap; */
        /* height: 3vh; */
    }

    .player{
        display: flex;
        flex-direction: column;
        max-height: 18vh;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 4px;
        padding-top: 10px;
        padding-bottom: 15px;
    }
    .player-buttons{
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 450px) {    
    .playlist-container{
        justify-content: center;
        max-height: 60vh;
        /* padding: 10px; */
    }

    .playlist{
        width: 85vw;
        height: 400px;
        margin: 0;
        /* overflow-y: hidden; */
    }

    .playlist-logo{
        width: 100%;
        height: 75%;
        object-fit: contain;        
    }

    .playlist h4{
        font-size: 1.5rem;        
        padding-left: 15px;
    }

    .playlist p{
        font-size: 0.8rem;
        padding-left: 15px;
    }
}