
* {
    padding: 0;
    margin: 0;
}


.container {
    width: 100vw;
    height: 100vh;
}

.left {
    width: 20vw;
    height: 100vh;
    box-sizing: border-box;
}

.right {
    width: 80vw;
    height: 100vh;
    position: relative;
    box-sizing: border-box;
    margin-right: 7px;
    margin-bottom: 7px;
}

.home ul li {
    list-style: none;
    display: flex;
    width: 18px;
    padding-top: 15px;
    gap: 10px;
    position: relative;
    font-family: "sans-serif";
}

.logo {
    width: 205px;
}

.library {
    position: relative;
    box-sizing: border-box;
    height: calc(100vh - 179.06px);
}

.library .heading {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-family:Poppins;
}

.library .heading img {
    width: 18px;
}

.library .heading .more {
    padding: 5px;
    border-radius: 15px;
    position: absolute;
    right: 0;
}

.footer {
    position: absolute;
    bottom: 0;
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    font-family: sans-serif;
}

.footer a {
    text-decoration: none;
    color: #b3b3b3;
    font-size: 12px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 7px 0px;
}

.nav img {
    width: 18px;
}

.btn {
    border: none;
    padding: 8px 20px;
    font-family: sans-serif;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}


.playlist {
    height: calc(100vh - 186px);
    box-sizing: border-box;
}

.playlist h2 {
    margin-left: 7px;
    font-family: sans-serif;
}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow-y: scroll;
    max-height: 90%;
    justify-content: center;
}

.cardContainer .card {
    width: 200px;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: all .3s;
    height: 250px;
    font-family: sans-serif;
    font-size: 13px;
}

.card:hover {
    background-color: #282828;
}

.card:hover .playbtn {
    opacity: 1;
    transform: translateY(-10%) translateX(0);
    
}


.card img {
    width: 100%;
    border-radius: 10px;
    height: 80%;
}

.card p {
    color: #b3b3b3;
    font-family: Poppins;
    font-size: 12px;
}

.card .playbtn {
    width: 65px;
    position: absolute;
    bottom: -30px;
    right: 0;
    cursor: pointer;
    opacity: 0;
    transition: all .5s;
}

.playbar {
    position: absolute;
    bottom: 0px;
    width: 100%;
    box-sizing: border-box;
    font-family: Poppins;
}

.songbtns {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.songbtns>* {
    width: 50px;
    cursor: pointer;
}

.songlist {
    height: 90%;
}

.songlist ul {
    display: flex;
    flex-direction: column;
    margin: 12px 0px;
    gap: 7px;
    height: 90%;
    overflow-y: auto;
}


.songlist ul li {
    list-style-type: decimal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding-left: 4px;
    cursor: pointer;
    font-family: "sans-serif";

}

.songlist ul li:hover{
    background-color: #282828;
}
.songTitle {
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
}

.songlist p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.songlist img[alt="playbutton"] {
    width: 30px;
}

.seekbar {
    display: flex;
    border: 0.5px solid white;
    height: 2px;
    margin: 16px 0px;
    transition: background-color, 0.5s;
    cursor: pointer;
}

.bar {
    background-color: white;
    height: 2px;
    width: 0%;
    transition: width, 0.5s;
    cursor: pointer;
    position: relative;
   
}

.seekbar .circle {
    background-color: white;
    height: 15px;
    width: 15px;
    border-radius: 10px;
    position: relative;
    top: -6px;
    
}

.aboveSeekbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.songInfo {
    display: flex;
    align-items: center;
    width: 25%;
}

.songInfo img {
    width: 34px;
}

.songDuration {
    display: flex;
    position: relative;
    justify-content: end;
}

.menu {
    display: none;
}

.close {
    display: none;
}

.volume {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.volume img {
    cursor: pointer;
}
.volume input {
    height: 5px;
    cursor: pointer;
    width: 100%;
}

.voltime {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .left {
        width: 350px;
        position: absolute;
        left: -100%;
        z-index: 1;
        background-color: #181818;
        transition: left 1s ease-in-out;
        border-radius: 10px;
    }

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

    .menu {
        display: block;
        cursor: pointer;
    }

    .nav {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .close {
        display: block;
        width: 20px;
        position: absolute;
        right: 20px;
    }
}

@media (max-width : 1005px) {
    .voltime{
        flex-direction: column-reverse;
    }

}

@media (max-width : 500px) {
    .aboveSeekbar{
        flex-direction: column;
        align-items: center;
        justify-content: center;
       
    }
    .volume input{
        display: block;
    }
    .aboveSeekbar > *{
        width: 100%;
    }
    .songInfo{
        justify-content: center;
    }
    .voltime{
        justify-content: space-between;
    }
    
}