@import url("https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Roboto:...");

:root {
  --a: 0;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.right {
  width: 75vw;
  margin: 16px 0px;
  position: relative;
}
.Home {
  box-sizing: border-box;
}

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

.logo {
  width: 10px;
}
.bg-black {
  background-color: black;
  color: white;
}
.bg-gray {
  background-color: #121212;
}
.rounded {
  border-radius: 7px;
}
.m-1 {
  /* margin: 10px; */
}

.heading {
  display: flex;
  gap: 15px;
  width: 100%;
  padding-top: 14px;
  padding: 23px 14px;
  font-weight: bold;
  align-items: center;
  font-size: 13px;
}
.button > * {
  margin: 0 12px;
}
.signupbutton {
  background-color: rgb(34 34 34);
  color: rgb(156, 148, 148);
  font-weight: bold;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
}
.signupbutton :hover {
  font-size: 17px;
  color: white;
}
.loginbutton {
  background-color: white;
  border-radius: 21px;
  color: black;
  padding: 10px;
  width: 79px;
  cursor: pointer;
  font-size: 16px;
}
.loginbutton:hover {
  font-weight: bold;
  font-size: 17px;
}

.library {
  min-height: 80vh;
  position: relative;
}
.heading IMG {
  width: 30px;
}

.footer {
  display: flex;
  font-size: 10px;
  color: grey;
  gap: 13px;
  position: absolute;
  bottom: 0;
  padding: 10px 0;
}
.footer a {
  color: gray;
}
.header {
  display: flex;
  justify-content: space-between;
  background-color: rgb(34, 34, 34);
}
.header > * {
  padding: 25px;
}
.Songbuttons {
  width: 100%;
  /* height: 100px; */
  display: flex;
  gap: 15px;
  justify-content: center;
  /* align-items: center; */
}

.Songbuttons img {
  height: 30px;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
}
.spotifyplaylist {
  padding: 2px;
  /* width: 100vhcardc */
}
.spotifyplaylist h1 {
  padding: 10px;
}
.cardContainer {
  margin: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-y: auto;
  max-height: 60vh;
  scroll-behavior: smooth;
}
.card {
  width: 200px;
  padding: 10px;
  border-radius: 5px;
  background-color: #252525;
  position: relative;
  transition: all 0.9s;
  margin: 0px 5px;
}
.card:hover {
  background-color: rgb(105, 103, 103);
  cursor: pointer;
  --a: 1;
}
.card > * {
  padding-top: 10px;
}
.card img {
  border-radius: 7px;
  width: 100%;
  object-fit: contain;
}

.track-info {
  margin-top: 8px;
  font-size: 12px;
  color: #b3b3b3;
}

.track-count {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.sample-songs {
  line-height: 1.3;
  opacity: 0.8;
}
.play_button {
  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;
}
.card .play_button:hover {
  opacity: 1;
}

.right {
  position: relative;
  height: 790px;
}

.PLaybar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 30px;
  filter: invert(1);
  background: #e2d9d9;
  border-radius: 10px;
  width: 90%;
  padding: 12px;
  width: 70vw;
  min-height: 40px;
}

.seekbar {
  height: 4px;
  width: 98%;
  background: black;
  position: absolute;
  bottom: 5px;
  border-radius: 10px;
  bottom: 0;
  margin-top: 5px;
  margin-bottom: 5px;
  cursor: pointer;
}

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

.songlist {
  height: 544px;
  overflow: auto;
  margin-bottom: 44px;
  scroll-behavior: smooth;
}

.songlist ul {
  /* list-style: none; */
  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: 5px;
  transition: all 0.3s ease;
}

.songlist ul li.active {
  background-color: rgba(30, 215, 96, 0.1);
  border-color: #1ed760;
  transform: translateX(5px);
}

.songlist ul li img {
  color: white;
}
.playnow {
  display: flex;
}
.songlist info {
  widows: 344px;
  font-size: 13px;
}
.info div {
  /* width: 140px;
  font-size: 14px; */
  word-break: break-all;
}
.playnow {
  display: flex;
  justify-content: center;
  align-items: center;
}
.playnow span {
  font-size: 15px;
  width: 64px;
  padding: 12px;
}
.Songbuttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.Songbuttons img {
  cursor: pointer;
}

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

.Songinfo,
.Songtime {
  display: flex;
  justify-content: start;
  color: black;
  width: 200px;
  padding: 1 12px;
  font-size: 20px;
  /* font-weight: bold; */
}
.Songinfo {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.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%;
}
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburgerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.lsbutton {
  display: flex;
  gap: 30px;
}
@media (max-width: 1200px) {
  .left {
    position: absolute;
    left: -130%;
    transition: all 0.3s;
    z-index: 1;
    width: 373px;
    background-color: black;
    padding: 0;
    height: 100vh;
    position: fixed;
    top: 0;
  }
  .Songinfo,
  .Songtime {
    width: auto;
  }
  .songlist {
    height: 480px;
  }
  .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;
  }
  .lsbutton {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .right {
    width: 100vw;
    margin: 0;
  }
  .spotifyplaylist h1 {
    padding: 20px;
  }

  .hamburger {
    display: block;
    margin-left: -60px;
  }
  .card {
    width: 55vw;
  }
  .cardContainer {
    margin: 0;
    justify-content: center;
    max-height: unset;
    overflow-y: unset;
    margin-bottom: 35vh;
  }
  .close {
    display: block;
  }
  .PLaybar {
    right: 25px;
    width: calc(100vw - 75px);
    bottom: 0;
    height: 140px;
  }
  .seekbar {
    width: calc(100vw - 120px);
  }
  .abovebar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 500px) {
  .card {
    width: 90%;
  }
  .header > * {
    width: 100%;
  }
  .button > * {
    margin: 0 6px;
  }
  .header {
    padding: 7px;
    height: 60px;
  }
  .lsbutton {
    position: relative;
    margin-top: -20px;
    display: flex;
    gap: 20px;
  }
  .loginbutton{
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .spotifyplaylist h1 {
    padding: 15px;
  }
  .library {
    height: 85vh;
  }
  .left {
    width: 100vw;
  }

  .PLaybar {
    width: 93vw;
    right: 2px;
  }

  .volume {
    position: relative;
    top: -10px;
  }

  .Songbuttons img {
    width: auto;
    height: 27px;
  }

  .range input {
    height: 5px;
    margin-bottom: 10px;
  }

  .seekbar {
    width: 75vw;
    margin-bottom: 11px;
  }
}

/* For Webkit browsers (e.g., Chrome, Safari) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}

::-webkit-scrollbar-track {
  background-color: #222;
  border-radius: 4px;
}

/* For Firefox */
scrollbar-color: #555 #222;
scrollbar-width: thin;

/* Smooth transitions for all interactive elements */
.card,
.songlist ul li,
.play_button,
.Songbuttons img,
.volume img {
  transition: all 0.3s ease;
}

/* Hover effects for better interactivity */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.songlist ul li:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.Songbuttons img:hover {
  transform: scale(1.1);
}

.volume img:hover {
  transform: scale(1.1);
}
