@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

:root {
  --a: 0;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", serif;
}

.left {
  width: 25vw;
  padding: 10px;
}

.right {
  width: 75vw;
}

.home ul li {
  display: flex;
  gap: 15px;
  width: 15px;
  list-style: none;
  padding-top: 15px;
  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: 25px;
}

.nav {
  margin: 10px;
}

.library {
  min-height: 79vh;
  position: relative;
}

.footer {
  display: flex;
  font-size: 10px;
  color: grey;
  gap: 13px;
  position: absolute;
  bottom: 0;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 20px;
}

.footer a {
  color: grey;
}

.right {
  margin: 16px 0;
}

.hamburger {
  display: none;
}

.hamburgerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.close {
  position: absolute;
  right: 30px;
  top: 25px;
  width: 30px;
}

.header {
  display: flex;
  justify-content: space-between;
  background-color: rgb(29, 27, 27);
  height: 85px;
}

.header > * {
  padding: 20px;
}

.spotifyPlaylists {
  padding: 16px;
}

.spotifyPlaylists h1 {
  padding-left: 10px;
}

.cardContainer {
  margin: 3 0px;
  padding: 15px 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-y: auto;
  max-height: 70vh;
}

.card {
  width: 220px;
  padding: 10px;
  border-radius: 5px;
  position: relative;
  transition: all 0.5s;
  
}

.card img {
  width: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.card:hover {
  background-color: #252525;
  cursor: pointer;
}

.play {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #1ed760;
  border-radius: 50%;
  position: absolute;
  bottom: 118px;
  right: 25px;
  padding: 0;
  border: none;
  opacity: var(--a);
  transition: all 0.5s ease-out;
}

.card:hover .play {
  opacity: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.22);
  transform: scale(1.03);
}

.buttons > * {
  margin: 0 12px;
}

.signupbtn {
  background-color: rgb(29, 27, 27);
  color: rgb(185, 179, 179);
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
}

.signupbtn:hover {
  font-size: 17px;
  color: white;
}

.loginbtn {
  background-color: white;
  border-radius: 20px;
  color: black;
  font-weight: bold;
  width: 90px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
}

.loginbtn:hover {
  transform: scale(1.1);
}

.right {
  position: relative;
}

.playbar {
  position: fixed;
  bottom: 30px;
  width: 70vw;
  height: 6vh;
  padding: 12px;
  border-radius: 10px;
  filter: invert(1);
  background: rgba(213, 214, 216, 0.95);
}

.songbuttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.songList {
  height: 640px;
  overflow: auto;
}

.songList ul {
  padding: 0 12px;
}

.songList ul li {
  justify-content: space-between;
  list-style-type: decimal;
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 12px 0px;
  border: 1px solid white;
  margin: 12px 0;
  padding: 13px;
  border-radius: 5px;
}

.logo > img {
  height: 45px;
}

.songList .info {
  font-size: 16px;
  width: 344px;
}

.info div {
  word-break: break-all;
}

.playnow {
  display: flex;
  align-items: center;
}

.playnow span {
  font-size: 14px;
  width: 70px;
  justify-content: center;
}

.seekbar {
  height: 3px;
  width: 98%;
  background: rgb(0, 0, 0);
  border-radius: 10px;
  position: absolute;
  bottom: 12px;
  margin-top: 4px;
  cursor: pointer;
}

.circle {
  width: 15px;
  height: 15px;
  border-radius: 13px;
  background-color: black;
  position: relative;
  bottom: 7px;
  left: 0%;
  transition: left 0.5s;
}

.songbuttons img {
  cursor: pointer;
}

.timevol {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* Volume bar */
.volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 200px;
  border-radius: 10px;
}

.volume img {
  cursor: pointer;
}

.range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #4CAF50;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #4CAF50;
  border-radius: 50%;
  cursor: pointer;
}

.range input[type="range"]:hover::-webkit-slider-thumb {
  background: #66BB6A;
}

.range input[type="range"]:hover {
  background: #4CAF50;
}

/* Volume bar design closed */

.songinfo {
  display: block;
  visibility: visible;
  width: 250px;
  text-align: center;
}

.songtime {
  width: 125px;
}

.songinfo,
.songtime {
  color: black;
  padding: 0 12px;
}

.abovebar {
  display: flex;
  justify-content: space-between;
  margin: 0px 0px;
}

.close {
  display: none;
}

@media (max-width: 1250px) {
  .left {
    position: absolute;
    left: -120%;
    transition: all 1s;
    z-index: 1;
    background-color: black;
    width: 360px;
    padding: 0;
    height: 100vh;
  }

  .card {
    min-width: 80vw;
    border-radius: 12px;
  }

  .cardContainer {
    justify-content: center;
    margin: 0;
  }

  .right {
    width: 100vw;
    margin: 0;
  }

  .container {
    height: 100vh;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .playbar {
    width: calc(100vw - 55px);
    height: 17vh;
    padding: 15px 12px;
    margin: 0;
    bottom: 15px;
    display: flex;
    flex-direction: column;
  }

  .seekbar {
    width: calc(100vw - 70px);
    position: relative;
    bottom: 0;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  .timevol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-top: 10px;
  }

  .volume {
    width: 100%;
    max-width: 150px;
    margin-top: 5px;
  }

  .songbuttons {
    margin-bottom: -5px;
  }

  .abovebar {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }

  .songinfo {
    margin-bottom: 10px;
  }

  .close {
    display: block;
  }

  /* Adjusting circle position for mobile */
  .circle {
    bottom: 6px;
  }
}


@media (max-width: 500px) {
  .card {
    width: auto;
  }

  .header > * {
    padding-top: 18px;
  }

  .nav {
    padding-top: 10px;
    padding-left: 18px;
  }

  .buttons {
    padding-right: 18px;
  }

  .cardContainer {
    max-height: unset;
    overflow-y: unset;
    margin-bottom: 20vh;
  }

  .spotifyPlaylists h1 {
    padding: 4px;
  }

  .header {
    padding: 7px;
  }

  .library {
    height: 82vh;
  }

  .left {
    position: fixed;
    top: 0;
  }
}

