@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

body,
html {
  overscroll-behavior: none;
}

:root {
  --font-color: #cad3f5;
  --background: #181926;
  --background2: #24273a;
  --background3: #363a4f;
  --placeholder: #6e738d;
  --theme: #a6d189;
  --font-family: 'Roboto Mono';
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--font-color);
  font-family: var(--font-family);
}

h1 {
  margin-bottom: 20px;
  font-size: 34px;
  color: var(--font-color);
}

h2 {
  font-weight: 300;
  font-size: 18px;
}

h4 {
  line-height: 1.2;
}

p {
  font-size: 14px;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--font-color);
}

.sidebar {
  width: 20%;
  height: calc(100vh - 84px);
}

.sidenavbar {
  margin: 15px 0px 15px 15px;
  background: var(--background2);
  border-radius: 15px;
  padding: 20px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 10px;
}

.sidebar li {
  display: flex;
  gap: 10px;
}

.sidebar li a,
.sidebar li .fa-solid {
  transition: all 300ms !important;
}

.nav-link {
  color: var(--font-color);
  background: var(--background3);
  padding: 10px;
  border-radius: 10px;
  transition-duration: 300ms;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.nav-link:hover {
  opacity: 0.6;
  color: var(--font-color);
}

.sidebar li a:hover {
  color: var(--font-color);
}

.library {
  margin: 15px 0px 15px 15px;
  background: var(--background2);
  border-radius: 15px;
  padding: 10px;
}

.library-playlists {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.library-playlist {
  display: flex;
  gap: 5px;
  padding: 10px;
  align-items: center;
  transition: 300ms;
  border-radius: 10px;
}

.library-playlist:hover {
  background: var(--background3);
}

.library-playlist-img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

.music-container {
  background: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: fixed;
  width: 100%;
  bottom: 0px;
  gap: 20px;
  height: 84px !important;
  z-index: 999999;
}

.middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 40%;
}

.img-container {
  width: 40px;
}

.img-container img {
  height: 40px;
  border-radius: 5px;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  width: 40vw;
}

.action-btn {
  background: transparent;
  border: 0;
  color: var(--font-color);
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  margin: 0 10px;
  transition: 50ms;
}

.navigation .action-btn:hover {
  transform: scale(1.05);
}

.action-btn:hover {
  color: #dfdbdf;
}

.action-btn:focus {
  outline: 0;
}

.action-btn-big {
  color: var(--background);
  background: var(--font-color);
  border-radius: 17.5px;
  font-size: 20px;
  width: 35px !important;
  height: 35px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.action-btn-big:hover {
  transform: scale(1.1);
  color: var(--background);
}

.action-btn-big:active {
  transform: scale(1);
}

.music-info {
  display: flex;
  width: 40vw;
  align-items: center !important;
  gap: 30px;
}

.music-info h4 {
  margin: 0;
}

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

.progress-container {
  background: var(--background3);
  border-radius: 5px;
  cursor: pointer;
  height: 6px;
  width: 100%;
}

.progress {
  background: var(--theme);
  border-radius: 5px;
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
}

.progress:hover {
  background: var(--theme);
}

@media screen and (max-width: 600px) {
  .progress-container {
    display: none;
  }
}

.playlist-container {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0px;
  gap: 20px;
}

.playlist-card {
  max-width: calc(20% - 16px);
  background-color: transparent;
  padding: 15px;
  border-radius: 15px;
  display: inline-block;
  cursor: pointer;
  transition: 300ms;
  text-align: center;
  width: 170px;
}

.playlist-card:hover {
  background-color: var(--background3);
}

.playlist-card h3 {
  color: white;
  margin: 5px 0px;
  line-height: 1.5;
}

.song-image {
  width: 100%;
  height: inherit;
  border-radius: 10px;
}

#cover {
  border-radius: 10px;
  width: 55px;
  height: 55px;
  overflow: hidden;
  background-image: cover;
  object-fit: cover;
}

.main-content {
  margin: 15px;
  background: var(--background2);
  border-radius: 15px;
  padding: 20px;
  width: 55%;
  height: calc(100vh - 114px);
  overflow: auto;
}

.right {
  padding: 15px;
  padding-left: 0px;
  width: 25%;
  height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#queue-container {
  background: var(--background2);
  border-radius: 15px;
  padding: 20px;
  height: calc(100vh - 84px);
  list-style-type: none;
  text-overflow: ellipsis;
  overflow: auto;
  display: none;
}

.now-playing {
  background: var(--background2);
  border-radius: 15px;
  padding: 20px;
  height: calc(100vh - 84px);
  list-style-type: none;
  text-overflow: ellipsis;
  overflow: auto;
}

.now-playing h1 {
  font-size: 24px;
  margin: 0;
}

#now-playing-cover {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.now-playing-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.show-queue {
  display: block;
}

.main-container {
  display: flex;
  height: calc(100vh - 84px);
  margin-bottom: 84px !important;
}

#queue-container li {
  display: flex;
  align-items: center;
  margin: 10px 0px;
  padding: 7px;
  border-radius: 10px;
  text-overflow: ellipsis;
  justify-content: space-between;
}

.queue-song-desc {
  display: flex;
  align-items: center;
  gap: 10px;
}

#queue-container img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.current-song {
  border: 1px solid #575657;
  color: var(--theme);
}

#playlist-indicator {
  font-size: 14px;
}

.queue-title {
  display: flex;
  justify-content: space-between;
}

.queue-title {
  display: flex;
  justify-content: space-between;
}

.input-div {
  text-align: center;
  margin: 10px 0px;
}

.input-div input {
  width: 80%;
}

input {
  background: var(--background3);
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  width: 250px;
  color: var(--font-color);
  text-align: center;
  margin: 10px;
  border-radius: 24px;
  -webkit-border-radius: 24px;
  text-decoration-style: solid;
  text-decoration-color: var(--font-color);
  transition: 500ms;
  outline: none;
}

::placeholder {
  color: var(--placeholder);
  font-size: 16px;
  font-family: var(--font-family);
}

.playlist-info-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.playlist-info-container .action-btn-big {
  height: 50px !important;
  width: 50px !important;
  border-radius: 50%;
  background: var(--theme);
  font-size: 24px;
}

.playlist-info {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

#playlist-logo {
  width: 10vw;
  border-radius: 15px;
  box-shadow: 0px 0px 20px 0px var(--background);
  transition: 100ms;
  cursor: pointer;
}

#playlist-logo:hover {
  transform: scale(1.03);
}

hr {
  color: var(--font-color);
  border: var(--font-color);
}

.songs-container li {
  display: flex;
  align-items: center;
  margin: 10px 0px;
  padding: 7px;
  border-radius: 12px;
  text-overflow: ellipsis;
  justify-content: space-between;
  transition: 300ms;
  cursor: pointer;
}

.songs-container p {
  color: #a7a7a7;
}

.songs-container li:hover {
  background: var(--background3);
}

.songs-container img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.banner-top {
  display: flex;
  justify-content: space-between;
}

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-menu {
  margin-bottom: 15px;
}

.playlist-menu li {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 20px;
  list-style-type: none;
  background: var(--background3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms;
  cursor: pointer;
}

.playlist-menu li:hover {
  transform: scale(0.95);
}

.visualizer {
  position: relative;
  width: 15px;
  height: 15px;
  overflow: hidden;
  margin-right: 10px;
}

.bar {
  position: absolute;
  width: 3px;
  background-color: var(--theme);
  border-radius: 2px;
}

.bar:nth-child(1) {
  left: 0;
  bottom: 0;
  animation: soundwave1 0.5s infinite alternate;
}

.bar:nth-child(2) {
  left: 4px;
  bottom: 0;
  animation: soundwave2 0.6s infinite alternate;
}

.bar:nth-child(3) {
  left: 8px;
  bottom: 0;
  animation: soundwave3 0.4s infinite alternate;
}

.bar:nth-child(4) {
  left: 12px;
  bottom: 0;
  animation: soundwave4 0.7s infinite alternate;
}

@keyframes soundwave1 {
  0% {
    height: 10%;
  }

  100% {
    height: 90%;
  }
}

@keyframes soundwave2 {
  0% {
    height: 20%;
  }

  100% {
    height: 80%;
  }
}

@keyframes soundwave3 {
  0% {
    height: 30%;
  }

  100% {
    height: 70%;
  }
}

@keyframes soundwave4 {
  0% {
    height: 40%;
  }

  100% {
    height: 60%;
  }
}

/* resposnive */

@media screen and (max-width: 1664px) {
  .playlist-card {
    max-width: calc(25% - 15px);
  }

  .playlist-card img {
    width: 100%;
    height: inherit;
  }
}

@media screen and (max-width: 700px) {
  .right {
    display: none;
  }

  .playlist-card {
    max-width: calc(50% - 10px) !important;
  }

  .playlist-card img {
    width: 100%;
    height: inherit;
  }

  .main-content {
    width: calc(100% - 30px);
  }

  .music-container {
    padding: 20px 15px;
    justify-content: space-between;
    gap: 10px;
  }

  .navigation {
    display: none;
  }

  .music-info {
    max-width: 40vw;
    text-overflow: ellipsis;
    gap: 20px;
    align-items: center !important;
  }

  .action-btn {
    margin: 0px 5px;
  }

  .sidebar {
    display: none;
  }

  #playlist-logo {
    width: 30vw !important;
  }

  .playlist-info h1 {
    font-size: 24px;
  }

  #toggle-button {
    display: none;
  }
}