@import url("https://fonts.googleapis.com/css2?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;
  /* font-weight: 500; */
  box-sizing: border-box;
}

body {
  color: white;
}

.left {
  width: 25vw;
  height: 100vh;
  padding: 10px 0;
}

.right {
  width: 75vw;
  height: 100vh;
  padding: 10px 0;
  position: relative;
}

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

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

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

.heading img {
  width: 30px;
}

.footer {
  display: flex;
  font-size: 10px;
  flex-wrap: wrap;
  gap: 13px;
  /* position: absolute;
  bottom: 0; */
  padding: 10px 0;
}

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

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(34, 34, 34);
}

.header > * {
  padding: 20px;
}

.spotifyPlaylists {
  padding: 16px;
}
.spotifyPlaylists h1 {
  padding: 16px 0;
}

.cardContainer {
  margin: 30px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-height: 60vh;
  overflow-y: auto;
}
.spotifyPlaylists .card {
  width: 215px;
  padding: 10px;
  border-radius: 5px;
  background-color: transparent;
  transition: 0.2s ease-in-out;
  position: relative;
  cursor: pointer;
  transition: all 0.4s;
}

.card:hover {
  background-color: rgba(255, 255, 255, 0.075);
  --a: 1;
}

.card > * {
  padding-top: 10px;
}
.card > img {
  width: 100%;
  object-fit: contain;
}

.play_button {
  position: absolute;
  right: 17px;
  bottom: 98px;
  opacity: var(--a);
  transition: all 0.7s ease-out;
}

.login_btn {
  background-color: aliceblue;
  color: black;
  padding: 10px 30px;
  border-radius: 100px;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.login_btn:hover {
  font-weight: bolder;
  font-size: 17px;
}

.signup_btn {
  background-color: transparent;
  border: none;
  color: rgb(167, 167, 167);
  font-size: 16px;
  font-weight: bold;
  border: none;
  outline: none;
  margin-right: 15px;
  cursor: pointer;
  transition: 0.1s ease;
}

.signup_btn:hover {
  font-size: 17px;
  color: rgb(212, 205, 205);
}

.playbar {
  background-color: black;
  width: 75%;
  position: fixed;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.songlist {
  overflow: auto;
  height: 55vh;
  margin-bottom: 44px;
}

.songlist ul {
  padding: 0 12px;
}

.songlist ul li {
  list-style-type: number;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 12px 0;
  border: 1px solid white;
  margin: 13px 0;
  padding: 13px;
  border-radius: 5px;
}

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

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

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

.songInfo {
  width: 250px;
  padding: 0 12px;
}

.songTime {
  padding: 0 12px;
}

.vol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.playnow {
  display: flex;
  align-items: center;
}

.playnow span {
  font-size: 13px;
  width: 64px;
}

.seekbar {
  height: 4px;
  width: 98%;
  border: 2px solid white;
  border-radius: 10px;
  position: absolute;
  top: 0;
  cursor: pointer;
}

.circle {
  width: 13px;
  height: 13px;
  background-color: white;
  border-radius: 13px;
  position: relative;
  bottom: 6px;
  left: 0;

  transition: left 0.5s;
}

.songbtn img {
  cursor: pointer;
}

.bottombar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  /* padding: 0 20px; */
}

.hamburger {
  display: none;
}

.close {
  display: none;
}

@media (max-width: 1200px) {
  .logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header {
    position: sticky;
    top: 4px;
  }
  .left {
    position: absolute;
    left: -140%;
    transition: all 0.3s;
    z-index: 1;
    width: 375px;
  }
  .right {
    width: 100vw;
  }
  .playbar {
    width: 100vw;
    background-color: rgb(34, 34, 34);
  }
  .hamburger {
    display: inline-block;
    margin-right: 20px;
  }
  .close {
    display: inline-block;
  }
  .m-1 {
    margin: 0px !important;
  }

  .bottombar {
    gap: 23px;
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 44vw !important;
  }
  .cardContainer {
    margin: 0;
    justify-content: center;
    height: 50vh;
    gap: 0;
  }

  .songInfo,
  .songTime {
    width: auto;
  }

  .timevol {
    flex-direction: column;
    gap: 13px;
  }
}

@media (max-width: 400px) {
  .cardContainer {
    max-height: auto;
  }
  .card {
    width: 90vw !important;
  }
}
