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

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

.leftborder {
    padding: 10px;
    width: 23vw;

    z-index: 10;
}

.right {
    width: 75vw;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;

}

.home ul li {
    width: 15px;
    list-style: none;
    display: flex;
    gap: 20px;
    padding-top: 10px;
    font-weight: 500;
}

.home {
    align-content: center;
    height: 90px;
    min-height: 90px;
}

.heading-name {
    width: 300px;
    gap: 10px;
    align-content: center;
}

.library {
    height: 76vh;
    position: relative;
    overflow-y: auto;
}

.footer {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    bottom: 7px;
    justify-content: center;
    padding: 0px 0px;
    position: fixed;
    width: 19.5vw;
    border-radius: 10px;
    background-color: #121212;
    height: 25px;
}


.footer a {
    color: grey;
    text-decoration: none;
    background-color: #121212;
}

.footer a span {
    font-size: 10.5px;
}

.playlist {
    width: 21px;
}

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

.header {
    margin: 13px 13px 1px 13px;
    justify-content: space-between;
    height: 50px;
}

.buttons {
    gap: 10px;
}

.btn-header {
    padding: 13px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hamburg {
    display: none;
    /* hidden by default */
}

.crosss {
    height: 20px;
    display: none;
}

.logo {
    display: flex;
    justify-content: space-between;

}

.nav {
    gap: 15px;
    display: flex;
    position: relative;
}

.btn-signup {
    background-color: black;
    color: grey;
}

.btn-signup:hover {
    background-color: grey;
    color: white;
}

.btn-header:hover {
    font-size: large;
}

.main {
    bottom: 0px;
}

.cardcontainer {
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    /* Enables horizontal scrolling */
    scrollbar-color: #333 #1a1a1a;
    width: 100%;
    padding-bottom: 10px;
    padding-top: 10px;
}

.spotifyplaylists {
    border-bottom: 100px;
}
.cards {
    min-width: 168px;
    background: #1f1f1f;
    border-radius: 10px;
    padding: 15px 8px 8px 8px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cards:hover {
    background-color: #353535; /* gray on hover */
}

/* Card image styling */
.card-img {
    border-radius: 6px;
    display: block;
    width: 100%;
}

/* Image wrapper allows absolute positioning */
.card-img-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* SVG overlay button (hidden by default) */
.svg-overlay {
    position: absolute;
    bottom: -50px; /* start off-screen */
    right: 10px;
    background-color: rgb(42, 191, 42);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

/* Center the SVG icon */
.svg-overlay svg {
    width: 50%;
    height: 50%;
    fill: white;
}

/* Trigger animation when hovering the whole card */
.cards:hover .svg-overlay {
    bottom: 10px;
    opacity: 1;
}


.playbar {
    position: fixed;
    bottom: 6px;
    background-color: #181818;
    width: 71.3vw;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.songbuttons {
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding-bottom: 12px;
    flex-grow: 1;
}

.songList ul {
    padding: 0 12px;

}

.songList ul li {
    display: flex;
    gap: 15px;
    cursor: pointer;
    align-items: center;
    width: 90%;
    border: 1px solid rgb(106, 106, 106);
    margin-top: 12px;
    padding: 10px;
    border-radius: 5px;
    min-height: 5vh;
    justify-content: space-between;
    font-size: 14px;

}

.songList {

    max-height: calc(83vh - 120px);
    /* Adjust height dynamically */
    overflow-y: auto;
    /* Enables vertical scrolling */
    margin: 10px 0;
    /* Space for scrollbar */
}

.controls-music {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
    height: 35px;
}

.controls-playbar {
    height: 28px;
    filter: invert(0%) sepia(0%) saturate(0%) brightness(70%) contrast(350%);
    padding: 2px;


}

.songList .info {
    width: 344px;
}

.songTime {
    gap: 5px;
}

.seekbar {
    height: 5px;
    width: 95%;
    background-color: rgb(255, 255, 255);
    position: absolute;
    bottom: 10px;
    left: 30px;
    border-radius: 3px;
    cursor: pointer;
}

.circle {
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background-color: rgb(97, 96, 96);
    position: relative;
    bottom: 2px;
    transition: left 0.3s;
    left: 0%;
}

.songbuttons img {
    cursor: pointer;
}

.infoBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
    width: 100%;
}

.songInfo {
    flex: 1;
    text-align: left;
    padding-left: 20px;
}

.songTime {
    flex: 1;
    text-align: right;
    padding-right: 20px;

}

.songInfo {
    padding-bottom: 5 px;
}

.hamburger {
    display: none;
}

.volume-popup {
  position: absolute;
  bottom: 26px;
  left: 48.5vw;
  background-color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.volume-slider {
  width: 100px;
  appearance: none;
  height: 8px;
  background: #ccc;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: black;
  border-radius: 50%;
  cursor: pointer;
}





@media (max-width: 1100px) {
    .leftborder {
        position: absolute;
        left: -110%;
        transition: 0.2s;
        width: 280px;
    }

    .footer {
        width: 250px;
    }

    .right {
        width: 100vw;
    }

    .playbar {
        width: 95%;
    }

    .hamburg {
        display: block;
        width: 37px;
        order: -1;
        gap: 10px;
        cursor: pointer;
    }

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

    .library {
        overflow: hidden;
    }
    .seekbar{
        width: 94%;
    }
    .volume-popup{
        left: 65vw;
    }

}

@media (max-width: 800px){
    .playbar {
        width: 92.5%;
    }
    .seekbar{
        width: 92%;
    }
    .volume-popup{
        bottom: 78px;
        left: 63vw ;
        position: fixed;
    }

}

@media (max-width: 610px) {
    .songbuttons {
        gap: 10px;
    }

    .cards {
        min-width: 140px;
    }

    h3 {
        font-size: 16px;
    }
    .playbar {
        width: 90%;
    }
    .seekbar{
        width: 89%;
    }
    .volume-popup{
        left: 40.5vw;
    }

    p {
        font-size: 13px;
    }
}

@media(max-width: 400px){
    .playbar {
        width: 85%;
    }
    .songbuttons {
        gap: 5px;
    }
    .seekbar{
        width: 84%;
    }
    .songInfo{
        font-size: 13px;
    }
    .songTime{
        font-size: 13px;
    }
    .volume-popup{
        left: 37vw;
    }

}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}