@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');


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

.close {
    display: none;
}

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

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

.right {
    width: 75vw;
}



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

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

.heading img {
    width: 30px;
}

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

.footer {
    display: flex;
    font-size: 10px;
    color: grey;
    gap: 13px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;

}

.footer a {
    color: grey;
}

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

.header {
    display: flex;
    justify-content: space-between;
    /* background-color: rgb(80, 12, 72); */
    background: linear-gradient(to right, #1c7dc7, #d40f0f);
    border-radius: 68px;
}

.header>* {
    padding: 10px;
}

.spotifyPlaylists {
    padding: 10px;
}

.spotifyPlaylists h1 {
    padding: 10px;
}

.cardContainer {
    margin: 0px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 70vh; 
    justify-content: center;
   
}

.card {
    width: 100px;
    padding: 10px;
    border-radius: 10px;
    /* background: linear-gradient(to left, blue, green); */
    background-color: #000000;
    position: relative;
    transition: background 1.1s ease, transform 0.8s ease;
    width: 15vw;
    box-shadow: 0 0 40px rgb(6, 187, 211);
}

.card:hover {
    /* background: linear-gradient(to right, red, yellow); */
    background-color: rgba(26, 149, 194, 0.632);
    cursor: pointer;
    transform: scale(1.01); /* Slightly increases the size of the card on hover */
}

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

.card img {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
}

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

.buttons>* {
    margin: 0 12px;
}

.signupbtn {
     background-color: rgba(81, 46, 46, 0); 
    /* background:linear-gradient(to left red, blue); */
    color: rgb(255, 247, 247);
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    border-radius:40px;
    transition: 0.6s all ease-in-out;
    /* width: 79px; */
}

.signupbtn:hover {
    font-size: 17px;
    color: white;
    box-shadow: 0 0 60px rgb(6, 187, 211);
  
}

.loginbtn {
    background-color: white;
    border-radius: 21px;
    color: black;
    padding: 10px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.7s all ease-in-out;
}

.loginbtn:hover {
    font-weight: bold;
    font-size: 17px;
    box-shadow: 0px 0px 60px rgb(7, 224, 181);
}


.playbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 30px;
    filter: invert(1);
    background: radial-gradient(circle, rgba(228, 255, 0, 1) 0%, rgba(103, 255, 232, 1) 100%);

    border-radius: 99px;
    width: 55%;
    padding: 12px;
    width: 70vw;
    min-height: 20px;
    transition: all .9s;
    box-shadow: 0 0 14px rgb(6, 187, 211);
    
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburgerContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
}

.songList ul {
    padding: 0 12px;
}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 12px 0;
    /* border: 1px solid rgba(146, 143, 143, 0.491); */
    margin: 12px 0;
    padding: 13px;
    border-radius: 36px;
    box-shadow: 0 0 14px rgb(6, 187, 211);
}

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

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

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

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

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

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

.songbuttons img {
    cursor: pointer;
}

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


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

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


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

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

.footer{
    bottom: 3px;
    padding:15px;
}

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

    .songinfo,
    .songtime {
        width: auto;
    }

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

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

    .right {
        width: 100vw;
    }

    .playbar {
        width: calc(100vw - 75px); 
        /* background-color: rgb(255, 255, 255); */
        box-shadow: 0 0 14px rgb(6, 187, 211);
    }

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

    .hamburger {
        display: block;
    }

    .right {
        margin: 0;
    }
    .close {
        display: block;
    }

    .abovebar {
        flex-direction: column;
        /* gap: 23px; */
        align-items: center;
    }

    .cardContainer {
        max-height: unset;
        overflow-y: unset;
        margin-bottom: 25vh;
    }

    .playbar{
        right: 25px;
    }
}

@media (max-width: 500px) {
    .card {
        width: 35%;
     }
   

    .header>* {
        padding: 2px;
    }

    .buttons>* {
        margin: 0 6px;
    }

    .header{
        padding: 7px;
    }

    .spotifyPlaylists h1 {
        padding: 4px;
    }

    .library{
        height: 85vh;
    }

    .left{ 
        width: 100vw;
    }
    
}


/* Modal styles with Spotify theme */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
  }
  
  .modal-content {
    background-color: #1DB954; /* Spotify green */
    color: #191414; /* Spotify dark */
    margin: 10% auto;
    padding: 40px;
    width: 320px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .close {
    color: #191414;
    float: right;
    font-size: 24px;
    cursor: pointer;
  }
  
  .close:hover {
    color: #fff;
  }
  
  .modal-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
  }
  
  .modal-content label {
    color: #fff;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .modal-content input[type="text"],
  .modal-content input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0 20px;
    border: none;
    border-radius: 50px; /* Fully rounded input fields */
    font-size: 14px;
    background-color: #fff;
    color: #191414;
    outline: none;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .modal-content input[type="text"]:focus,
  .modal-content input[type="password"]:focus {
    box-shadow: 0px 0px 5px 2px rgba(29, 185, 84, 0.4);
  }
  
  .modal-content button[type="submit"] {
    background-color: #191414;
    color: #1DB954;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px; /* Fully rounded button */
    transition: all 0.3s ease;
  }
  
  .modal-content button[type="submit"]:hover {
    background-color: #fff;
    color: #191414;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  }
  

 /* Sign-Up Modal Styles */
.modal-content .signup-btn {
    background-color: #1db954;
    color: #fff;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
  }
  
  .modal-content .signup-btn:hover {
    background-color: #1aa34a;
  }
  

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: #282828;
    padding: 20px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    color: #fff;
  }
  
  .modal-content input[type="text"],
  .modal-content input[type="password"],
  .modal-content input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 20px;
    border: none;
    background-color: #333;
    color: #fff;
  }
  
  .modal-content button {
    background-color: #1db954;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
  }
  
  .modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
  }
  

