@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #000;

}

/* Container wraps all */
.container {
  background-color: #000000;
  width: 100%;
  overflow: hidden;

}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
  margin: .0rem 0 0 1.75rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

/* Logo */
.logo {
  height: 2rem;
  filter: invert(1);
  cursor: pointer;
}

/* Home Button */
.home-button {
  background-color: #1f1f1f;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  cursor: pointer;
  margin-left: .75rem;
}

.icon {
  filter: invert(1);
  height: 1.47rem;
  width: 1.47rem;
}

/* Search Box */
.search-bar {

  position: relative;
  flex: 1;
  max-width: 29.67rem;
}

.search {
  width: 100%;
  height: 3rem;
  border-radius: 50px;
  background-color: #1f1f1f;
  border: none;
  padding-left: 2.5rem;
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin-left: -.5rem;
}


.search::placeholder {
  color: #aba9a9;
  text-indent: 0.6rem;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.search-click {
  width: 1.5rem;
  margin: 1.35rem 0 1rem -0.65rem;
}

/* Middle Menu */
.list {
  display: flex;
  gap: 1rem;
  margin-left: 58.2rem;
}

.list ul {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 1px;
  font-weight: 600;
  white-space: nowrap;

}

.list ul li {
  cursor: pointer;
}

.foot {
  color: #aba9a9;
  text-decoration: none;
  font-size: 13px;
}


.log a {
  text-decoration: none;
  color: #aba9a9;
  font-size: 13.4px;
  font-weight: 600;
}
.log{
display: flex;
align-items: center;
gap: 1.4rem;
margin-left: auto;
padding: 20px;
}
.login{
  background-color: white;
  color: black !important;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-size: 14px !important;
}
.volume{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: 62%;
  gap: 10px;
}

/* Boxes below navbar */
.boxes {

  box-sizing: border-box;
  display: flex;
  gap: 0.5rem;

  margin: 0 .5rem 0 .5rem;
  max-height: 100%;
}

/* Left Box */
.firstbox {
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 27.4vw;
  height: 89.8vh;
  background-color: #121212;
  border-radius: 0.5rem;
  flex-wrap: wrap;
  left: 0%;
}

.lib {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin: 1rem 0 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Right Content Box */
.secbox {

  width: 75vw;
  position: relative;
  flex: 1;
  height: 89.1vh;
  overflow-y: auto !important;
  background-color: #121212;
  border-radius: 0.5rem;
  flex-wrap: wrap;
}

.links {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 0 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.song {
  margin: .6rem 0 0 .6rem;
  height: 3vh;
  filter: invert();
}

.songtext {
  color: white;
  margin-top: 0.5rem;
}

.songs {
  max-width: 100%;
  display: flex;
  gap: .5rem;
  white-space: nowrap;
}


.spotify-playlist {
  color: white;
  font-size: 10px;
  margin: 1.5rem 0 0 1.5rem;

}

.card {
  position: relative;
  color: white;
  background-color: #1f1f1f;
  border-radius: 5px;
  width: 12.7rem;
  padding: 1rem;
  margin: 0rem 0 0 0.6rem;
  cursor: pointer;
}


.card h2 {
  font-size: 18px;
}

.card p {
  font-size: 12px;
}

.card img {
  width: 100%;
  object-fit: contain;
}

.cardcontainer {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  row-gap: .6rem;
  padding-bottom: 90px;
}

.greenplay {
  position: absolute;
  width: 3rem;
  right: 1.5rem;
  top: 7.4rem;
  cursor: pointer;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s;
}
.card:hover{
  transition: all 1s;
  background-color: #2f2f2f;
}
.card:hover .greenplay {
  transform: translateY(0);
  opacity: 1;
}

.greenplay:hover {
  transform: scale(1.07) !important;
}

::-webkit-scrollbar {
  padding: 12px;

}

::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background-color: #222;
}

.playbar {
  position: fixed;
  bottom: 11px;
  background-color: rgb(213, 208, 208);
  padding: 12px;
  filter: invert(1);
  width: 69.4vw;
  border-radius: 10px;
  margin-left: 8.5px;
  z-index: 1;
}

.songbutton img {
  cursor: pointer;
}

.songbutton img:nth-child(2) {
  width: 50px;
}

.songbutton {
  display: flex;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translate(-50%);

  align-items: center;
}

.invert {
  width: 20px;
  filter: invert(1);
}

.songlist ul {
  padding: 5px 12px;

}

.songlist ul li {
  background-color: #1f1f1f;
  color: white;
  list-style-type: decimal;
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  margin: 12px 0;
  border-radius: 5px;
  border: 1px solid white;

}

.playnow {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  left: 280px;
}

.playnow span {
  font-size: 14px;
  width: 64px;
  padding: 0;
}

.playnow img {
  filter: invert(1);
}

.songlist .info {
  font-size: 13px;
}

.seekbar {
  background-color: black;
  height: 5px;
  width: 98%;
  border: 2px solid rgb(0, 0, 0);
  position: absolute;
  bottom: 10px;
  border-radius: 10px;
  cursor: pointer;

}

.circle {
  width: 14px;
  height: 14px;
  background-color: black;
  border-radius: 13px;
  position: relative;
  bottom: 6.8px;
  left: -3px;
  transition: left 0.5s;
  cursor: pointer;
}

.abovebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 8vh;
  padding: 0 20px;
  overflow: hidden;
}

.songinfo {
  position: absolute;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: wrap;
}

.songtime {
  position: absolute;
  left: 88%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hamburger {
  display: none;
}

.cancel {
  filter: invert();
  display: none;
}

header {
  display: flex;
  justify-content: space-between;
}

@media (max-width:1200px) {
  .firstbox {
    position: absolute;
    left: -100%;
    width: 390px !important;
    z-index: 1;
    
  }
  .volume{
    left: 1%;
  }


  ::-webkit-scrollbar{
    width: 7px;

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

  .playbar {
    width: 95vw;
    margin-left: 0;
    left: 2.5vw;
    margin-bottom: 13.5px;

  }

  .secbox {
    width: 100vw;
    transition: width 0.5s ease;

  }

  .hamburger {
    display: block;
    filter: invert();
    position: absolute;
    cursor: pointer;
  }

  .list {
    display: none;
  }

  .logo {
    display: none;
  }

  .seekbar {
    width: 94%;
  }


  .cardcontainer {
    justify-content: center;
    padding-bottom: 180px;
  }

  .greenplay {
    display: none;
  }

  .card {
    width: 26rem;
  }

  .card h2 {
    font-size: 23px;
  }

  .card p {
    font-size: 18px;
  }

  .songtime {
    position: static;
    margin-bottom: 10px;
  }

  .abovebar {
    height: auto;
    gap: 5px;
    flex-direction: column;
  }

  .songinfo {
    position: static;
  }

  .songbutton {
    position: static;
    transform: translate(0%);
  }
}
input[type="range"] {
  accent-color: black;
}
@media (max-width:1200px){
.spotify-playlist{
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotify-playlist h1{
  font-size: 25px;
}


}