@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Inter&display=swap');

body,
html {
  height: 100%;
  background: black;
  color: white;
  font-family: 'Inter',
  sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hidden {
  visibility: hidden;
  display: none;
}

.github-link {
  position: absolute;
  top: 15px;
  right: 10px;
}

.github-link > a > svg {
  transition: all 0.2s ease-out;
  color: #003d3d;
}

.github-link > a > svg:hover {
  color: #009b9b;
}

/* Music Controls */
.music-control-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 15px;
  left: 10px;
  border-radius: 17px;
  padding: 5px 20px 20px 20px;
  background-color: #0f0f0f;
  max-height: 600px;
  max-width: 600px;
}

.music-control-hidden {
  padding: 10px 10px 8px 10px;
}

.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  width: 100%;
}

.button-toggle-hide-controls {
  cursor: pointer;
}

.vis-toggle-container {
  display: flex;
  border-radius: 5px;
  width: 100%;
  background-color: #003d3d;
  color: #dbdbdb;
}

.vis-toggle-container > div {
  padding: 15px 10px;
  width: 50%;
  text-align: center;
  cursor: pointer;
}

.vis-selected {
  transition: background-color 0.2s ease-in;
  background-color: rgb(0, 155, 155);
  border-radius: 5px;
  color: white;
}

.now-playing-container {
  background-color: #003d3d;
  margin-top: 15px;
  border-radius: 5px;
  padding: 10px 0;
}

.audio-progress {
  border-radius: 35px;
  background-color: #009b9b;
  max-width: 80%;
  height: 5px;
  margin: 10px auto 20px auto;
  position: relative;
}

.audio-progress-bar {
  content: "";
  width: 0px;
  height: 4.5px;
  background-color: #E2E2E2;
  position: absolute;
  border-radius: 35px;
  left: 0;
}

.now-playing > p {
  margin: 0;
}

.now-playing {
  color: #fff;
  text-align: center;
}

.music-controls {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.music-controls > div {
  cursor: pointer;
}

.playlist-container {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  min-height:200px;
  max-height: 100px;
}

.playlist-song {
  transition: opacity 0.2s ease-out;
  background-color: #424242;
  color: #dbdbdb;
  padding: 10px;
  text-align: center;
  margin: 5px 0;
  border-radius: 5px;
  opacity: 100;
  cursor: pointer
}

.playlist-song:hover {
  opacity: 0.5;
}

#upload {
  width: 100%;
  margin-bottom: 10px;
}

#upload::before {
  font-size: 16px;
  margin: 5px 0;
  content: attr(data-before);
  text-align: center;
  background-color: #424242;
  color: #dbdbdb;
  display: inline-block;
  padding: 10px 0;
  min-width: 100%;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Inter', "sans-serif" ;
}

#upload::-webkit-file-upload-button {
  visibility: hidden;
}

.volume-container {
  display: flex;
  align-items: center;
}

.volume-container > div {
  margin-top: 2px;
  margin-right: 5px;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 90%;
  height: 10px;
  background: #646464;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
  border-radius: 15px;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: rgb(0, 155, 155);
  cursor: pointer;
  border-radius: 15px;
}

#volumeSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: rgb(0, 155, 155);
  cursor: pointer;
  border-radius: 15px;
}