
:root{
    --a:0;
}

body {
    background-color: black;
    color: white;
}

.left {
    width: 25vw;
}

.right {
    width: 75vw;
}

.cross {
    display: none;
}

.library {
    min-height: 88vh;
    position: relative;
}

.heading {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
    font-weight: bold;
    align-items: center;
    font-size: 15px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    color: grey;
    gap: 20px;
    position: absolute;
    bottom: 60px;
    align-items: center;
    padding-left: 20px;
}

.footer a {
    color: grey;
}

.up {
    display: flex;
    justify-content: space-between;
    height: 40px;
}

.hamburger {
    display: none;
}

.search {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 30px;
    padding: 5px 15px;
    width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-icon {
    font-size: 20px;
    margin-right: 10px;
    color: #666;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    background-color: transparent;
}

.search-input::placeholder {
    color: #aaa;
}

.signup {
    background-color: black;
    color: #373837;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
}

.signup:hover {
    font-size: 17px;
    color: white;
}

.login {
    background-color: white;
    border-radius: 21px;
    color: black;
    padding: 8px;
    width: 80px;
    cursor: pointer;
    font-size: 16px;
}

.login:hover {
    font-weight: bod;
    font-size: 17px;
}

.playlist {
    min-height: 88vh;
    position: relative;
}

.playlist h2 {
    padding-left: 20px;
}

.cardContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
    overflow: auto;
    max-height: 70vh;
}

.playlist .card {
    width: 140px;
    height: 210px;
    padding: 10px;
    border-radius: 5px;
    background-color: #373837;
    position: relative;
}

.card img {
    width: 100%;
    object-fit: contain;
}

.card:hover{
    background-color: #505050;
    cursor: pointer;
    --a:1;
}

.play {
    position: absolute;
    top: 110px;
    right: 20px;
    opacity: var(--a);
    transition: all 0.5s;
}

.playbar {
    position: fixed;
    bottom: 0;
    background-color: #cdc7c7;
    width: 68vw;
    min-height: 5vh;
    padding: 12px;
    border-radius: 20px;
    bottom: 30px;
}

.headbar {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    align-items: center;
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.songinfo {
    color: black;
    width: 250px;
}

.timeandvol {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.songtime {
    color: black;
}

.vol {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.range input{
    cursor: pointer;
}

.songlist {
    overflow: auto;
    height: 420px;
    margin-bottom: 40px;
    margin-top: 27px;
}

.songlist ul {
    padding: 0 12px;
}

.songlist .info {
    font-size: 13px;
}

.songlist ul li {
    list-style-type: decimal;
    display: flex;
    gap: 12px;
    cursor: pointer;
    border: 1px solid white;
    margin: 12px;
    padding: 13px;
    border-radius: 5px;
    justify-content: space-between;
}

.playnow {
    display: flex;
    justify-content: center;
    align-items: center;
}

.playnow span {
    font-size: 15px;
    padding: 12px;
    width: 70px;
}

.seekbar {
    height: 4px;
    width: 68vw;
    background-color: black;
    border-radius: 10px;
    bottom: 8px;
    position: absolute;
    cursor: pointer;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 8px;
    background-color: black;
    position: relative;
    bottom: 7px;
    left: 0%;
    transition: left 1s;
}

/*  responsive */
@media (max-width:1400px) {

    .left {
        background-color: black;
        position: absolute;
        left: -120%;
        transition: all 1s;
        z-index: 1;
        width: 360px;
    }

    .search , .home{
        display: none;
    }

    .right {
        width: 100vw;
    }

    .headbar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .songinfo,
    .songtime {
        width: auto;
    }

    .playbar {
        width: calc(100vw - 95px);
    }

    .seekbar {
        width: calc(100vw - 95px);
    }

    .hamburger {
        display: block;
    }

    .cross {
        display: block;
    }

    .card {
        width: 90vw;
    }

    .timeandvol {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-direction: column;
    }
    
}
