@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --a: 0;
}

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

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

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 43px;
    margin: 8px;
    gap: 20px;
    position: sticky;
    top: 0;
    overflow-x: hidden;
}

.navleft,
.navright {
    display: flex;
    align-items: center;
    min-width: 0;
}


.navleft {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    min-width: 0;
}

.logo {
    padding-left: 12px;
    padding-top: 5px;
}

.home {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}


.home>img:nth-child(1) {
    background-color: #e0e0e0;
    width: 24px;
    border: 2px solid;
    border-radius: 50% 50%;
    padding: 10px;
}

.search {
    flex: 1;
    min-width: 0;
    max-width: 420px;
    padding: 12px 16px;
    border: 2px solid black;
    border-radius: 45px;
    gap: 10px;
}

.search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
}

.search img {
    width: 24px;
}


.navright {
    gap: 40px;
}

.support {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 20px;
}

.login {
    gap: 20px;
}

.buttons,
.Login {
    white-space: nowrap;
    flex-shrink: 0;
}


.buttons {
    border: none;
    outline: none;
    background-color: black;
    color: rgb(179, 179, 179);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.buttons:hover {
    font-size: 17px;
    font-weight: bold;
    color: white;
}

.Login {
    border: none;
    outline: none;
    color: black;
    padding: 10px 30px;
    border-radius: 22px;
    font-weight: bold;
    font-size: 16px;

}

.Login:hover {
    font-size: 17px;
    font-weight: 700;
}

.container {
    gap: 10px;
}

.left {
    transition: left 0.3s ease;
    background-color: #1f1f1f;
    width: 25vw;
    font-size: 13px;
    min-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;

}



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

.close {
    display: none;
}

.close img {
    width: 30px;
}

.footer {
    position: absolute;
    bottom: 50px;
    display: flex;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 13px;
}

.footer a {
    color: grey;
}

.right {
    min-height: 80vh;
    width: 75vw;
    position: relative;

}

.hamburger {
    display: none;
}

.cardContainer {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px;
    max-height: 68vh;
    overflow-y: auto;
}

.card {
    width: 200px;
    padding: 2px 10px;
    border-radius: 6px;
    background-color: #121212;
    position: relative;
}

.card>* {
    padding-top: 10px;
}

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

.card h2 {
    font-size: 18px;
    color: rgb(255, 255, 255);
}

.card p {
    font-size: 14px;
    text-decoration: none;
    color: rgb(179, 179, 179);
}

.card:hover {
    background-color: rgb(32, 31, 31);
    transition: all .3s;
    cursor: pointer;
    --a: 1;
}

.play {
    width: 40px;
    height: 40px;
    padding: 4px;
    background: #1fdf64;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 18px;
    bottom: 77px;
    opacity: var(--a);
    transition: all 1s ease-out;
}

.playbar {
    position: fixed;
    bottom: 30px;
    background-color: #89a594;
    border-radius: 10px;
    width: 68vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.songlist {
    height: 420px;
    overflow: auto;
    margin: 20px 0;
}

.songlist ul {
    padding: 0 15px;
}

.songlist ul li {
    padding: 10px 0;
    list-style: none;
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
}

.songlist .info {
    font-size: 13px;
    min-width: 0;

}

.songlist .info>div:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

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

.playnow span {
    width: 60px;
}

.seekbar {
    background: black;
    border-radius: 5px;
    width: 68vw;
    background-color: rgb(232, 238, 215);
    position: absolute;
    bottom: 0;
    height: 4px;
    margin: 3px;
    cursor: pointer;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 13px;
    background-color: white;
    position: relative;
    bottom: 4px;
    left: 0;
    transition: left 0.5s;
}

.songbuttons img {
    cursor: pointer;
}

.songinfo {
    color: white;
    padding: 0 10px;
    width: 240px;
}

.timevol {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.volume {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.range input {
    cursor: pointer;
}

.songtime {
    color: white;
    padding: 0 10px;
    width: 85px;
}

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

@media (max-width: 1380px) {
    .left {
        background-color: black;
        position: absolute;
        left: -160%;
        transition: all .3s;
        z-index: 1;
        width: 333px;
        padding: 8px;
    }

    .close {
        display: block;
    }

    .right {
        width: 100vw;
        flex: 1;
    }


    .cardContainer {
        justify-content: space-evenly;
        max-height: 82vh;
    }

    .hamburgercontainer {
        display: flex;
        gap: 13px;
        align-items: center;
    }

    .hamburger {
        display: block;
        padding-bottom: 5px;
        height: 40px;
        width: 40px;
    }

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

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

}

@media (max-width: 700px) {

    .home>img:nth-child(1) {
        padding: 6px;
    }


    .support {
        display: none;
        gap: 0;
    }

    .buttons {
        font-size: 12px;
    }

    .Login {
        font-size: 12px;
    }

    .cardContainer {
        margin: 0;
        max-height: 68vh;
    }

    .songinfo,
    .songtime {
        width: auto;
    }

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

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

    .timevol {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 10px;
        justify-content: space-around;
    }

    .abovebar {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (max-width: 500px) {

    body{
        overflow-y: auto;
    }

    .search {
        display: none;
        gap: 0;
    }

    .cardContainer {
        justify-content: center;
        max-height:unset;
                margin-bottom: 25vh;

    }

    .card {
        width: 330px;
    }
    .playbar{
        right: 15px;
    }
}

@media (max-width: 390px){
    .playbar{
        right: 34px;
    }
}

