:root {
  --primary-color: #f0f0f0;
  --primary-background-color: #0f0f0f;
  --secondary-color: #00337c;
  --secondary-background-color: #121212;
  --highlight-color: #03b2c9;
  --secondary-highlight-color: #1c82ad;
  --accent-color: #7c7e86;
  --glow-color: #33ff33;
  --border-radius: 1rem;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#ui-overlay {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

canvas#visualizer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: black;
}

.playlist {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 1rem;
  overflow-y: auto;
  border-radius: 0 0 1rem 0;
}

.playlist-container {
  position: absolute;
  width: 280px;
}
.playlist-header h2 {
  margin-top: 0;
  font-size: 1.2rem;
  font-family: "Electrolize";
  color: rgb(0, 199, 0);
  margin-left: 1rem;
}

.playlist ul {
  list-style: none;
  padding: 0;
}

.playlist li {
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 0.3rem;
  font-family: "Jura";
}

.playlist li:hover,
.playlist li.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
}

.playlist-title {
  width: 80%;
}

.playlist-hide {
  width: 20%;
  height: 4vh;
}

.playlist-hide i.active {
  color: var(--glow-color);
  text-shadow: rgba(51, 255, 51, 0.9) 0px 0px 20px;
}

.playlist-hide i.inactive {
  color: var(--accent-color);
}

.player-container {
  position: absolute;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    rgba(75, 75, 75, 0.5) 0%,
    rgba(112, 112, 112, 0.5) 51%
  );
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  width: 25%;
  height: 20vh;
}

.inner-container {
  padding: 10px;
  height: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(122, 122, 122, 0.5);
  background: linear-gradient(
    rgba(124, 124, 124, 0.5) 0%,
    rgba(138, 138, 138, 0.5) 50%
  );
}

.track-title-time {
  display: flex;
  background-color: rgba(0, 0, 0, 0.75);
  height: 4rem;
  justify-content: space-between;
  align-items: center;
  font-family: "Doto";
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

#current-title {
  text-align: start;
  margin-left: 1rem;
  width: 70%;
  /* color: var(--glow-color); */
  /* text-shadow: rgba(51, 255, 51, 0.9) 0px 0px 20px; */
  font-weight: bold;
}

#current-time {
  width: 30%;
  margin-right: 1rem;
}

#progress {
  width: 100%;
}

#waveform {
  background-color: #222;
  height: 100px;
  margin-bottom: 1rem;
}

.center-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px; /* or whatever size your button is */
  height: 50px;
}

.center-icon i {
  margin-top: 1em;
  font-size: 1.25rem;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.color-controls {
  position: absolute;
  right: 0rem;
  width: 12rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 0rem 0rem 0rem 1rem;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#color-control-params {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.color-controls h5 {
  font-family: "Electrolize";
  color: rgb(0, 199, 0);
  text-shadow: rgba(51, 255, 51, 0.9) 0px 0px 20px;
  font-size: 1rem;
}

.color-controls label {
  margin-top: 0.5rem;
  font-family: "Jura";
  color: white;
}

.color-controls-head {
  width: 100%;
}

.color-controls-hide {
  float: inline-end;
  display: flex;
  width: 30%;
  height: 4vh;
  justify-content: center;
}

.color-controls-hide i {
  transition: color 0.2s ease-in-out;
}

.color-controls-hide i.active {
  color: var(--glow-color);
  text-shadow: rgba(51, 255, 51, 0.9) 0px 0px 20px;
}
.color-controls-hide i.inactive {
  color: var(--accent-color);
}

.color-controls-title {
  width: 50%;
  float: inline-start;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.volume-control input[type="range"] {
  width: 80px;
}

.volume-control button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .player-container {
    width: 40%;
  }
}

@media (max-width: 992px) {
  .controls {
    gap: 0.5rem;
  }
}
@media (max-width: 768px) {
}

@media (max-width: 576px) {
  .playlist-container {
    width: 225px;
    height: 40vh;
  }

  .playlist li {
    font-size: 0.9rem;
  }
  .player-container {
    width: 80%;
    height: 25vh;
  }

  .playlist-header {
    width: 100%;
  }

  #progress {
    margin-top: 0;
    width: 100%;
  }
  .track-title-time {
    font-size: 0.75rem;
  }
  .color-controls {
    width: 8rem;
  }
}

@media (max-width: 480px) {
  .controls {
    gap: 0.45rem;
  }

  .player-container {
    width: 90%;
  }

  .playlist-container {
    width: 200px;
  }
}

@media (max-height: 42rem) {
  .track-title-time {
    height: 3rem;
  }

  #progress {
    margin-top: 0;
  }

  .controls {
    gap: 0.45rem;
  }

  @media (max-height: 38rem) {
    .player-container {
      height: 30vh;
    }
  }
}
