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

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

}


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


.close{
    display: none;
}


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

.right {
    width: 75vw;
}

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

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

.heading img {
    width: 17px;
}

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

}

.footer {
    display: flex;
    font-size: 10px;
    gap: 12px;
    position: absolute;
    bottom: 1px;
    padding: 10px 0;

}
.footer a {
    color: gray;
}

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

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

.header>* {
    padding: 20px;
}

.MusicPlaylists {
    padding: 16px;
}

.MusicPlaylists h1{
    padding: 16px;
}

.hamburger {
    display: none;
    filter: invert(1);
    cursor: pointer;
}

.cardcontainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    
    margin: 30px;
    max-height: 60vh;
    overflow-y: auto;

}

.hamburgercontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px
    
    
}

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

.logo img{
    width: 145px;
    height: 50px;
    object-fit: contain;
}

.play {
    position: absolute;
    right: 17px;
    top: 239px;
    opacity: 0;
    transition: all 0.3s ease;
}


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

.card:hover{
    background-color: rgb(105, 103, 103) ;
    cursor: pointer;
}

.songlist ul li:hover{
    background-color: rgb(105, 103, 103) ;
    cursor: pointer;
}

/* for this circle waala playbutton harry ne variable banaya hain --a karke and card pe hove karne pe uss variable ki value ko 1 kar diya hain, initially usko 0 se start kiya hain.. */
.card:hover .play {
    top: 150px;
    opacity: 1;
}

.buttons>* {
    margin: 0 12px
}

/* ye maine lagaya hain flex box buttons pe */
.buttons{
    display: flex;
}



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

}

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

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

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

.playbar {
    position: fixed;
    bottom: 10px;
    filter: invert(1);
    background: #dad5d5;
    border-radius: 10px;
    padding: 12px;  
    width: 70vw;
    min-height: 40px;
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
}

.songlist {
    height: 544px;
    overflow: auto;
    margin-bottom: 44px;
}

.songlist ul {
    padding: 0 12px;
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;

    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    border: 0.5px solid white;
    margin: 12px 0;
    border-radius: 5px;
    padding: 8px;
    justify-content: space-between;

}

.songlist .info {
    font-size: 13px;
    width: 344px;
}

.info div{
    word-break: break-all;
}

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

.playnow span {
    font-size: 15px;
    width: 64px;
    padding: 12px;
}

.seekbar {
    height: 4px;
    width: 98%;
    background-color: black;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    margin: 6px;
    cursor: pointer;
}

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

.songinfo {
    color: black;
    padding: 0 12px;
    width: 250px;
}

.songtime{
    width: 84px;
    color: black;
    padding: 0 12px;
}


.volume{
    /* shuruwaati 2 cheeze maine likhii hain just to make sure ki volume and time match ho raho indentation mein vertically */
    position: relative;
    bottom: -2px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    cursor: pointer; 
}

.range input{
    cursor: pointer;
}


.abovebar {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    width: 100%;
}

.timeandvolume{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}


@media (max-width: 1200px) {
    
    .left {
        background-color: black;
        position: absolute;
        left: -500%;
        transition: all .3s;
        z-index: 1;
        width: 373px;
        padding: 0;
    }

    .left .close{
        display: block;
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;
    }

    .timeandvolume{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 13px;
    }

    .right {
        width: 100vw;   
    }

    .playbar {
        width: calc(100vw - 75px);
        
    }

    .seekbar{
        width: calc(100vw - 70px);
    }

    .hamburger {
        display: block;
    }

    .songinfo, .songtime{
        width: auto;
    }

    .right{margin: 0;}

    .card{
        width: 55vw;
    }

   .cardcontainer{
    margin: 0px;
    justify-content: center;
    max-height: 50vh;
   }

   .songbuttons img {
        width: 20px;
    }

    .close{
        display: block;
    }

    .abovebar{
        flex-direction: column;
        gap: 23px;
        align-items: center;
    }
}
@media (max-width:500px){
    .card{
        width: auto;
    }
}




