:root {
  --color-one: #050f19;
  --body-color: #0b132b;
  --slider-bg: #4a1999;
  --thumb-color: #f1a61a;
}

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

a {
  all: unset;
}

input[type="range"] {
  appearance: none;
  border-radius: 10px;
  background: var(--slider-bg);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 15px;
  width: 15px;
  background: var(--thumb-color);
  border-radius: 10px;
}
input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  height: 15px;
  width: 15px;
  background: var(--thumb-color);
  border-radius: 10px;
}

img {
  max-width: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--body-color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
footer {
  position: relative;
  margin-top: auto;
  background: var(--color-one);
  height: 200px;
}

.timeline {
  position: absolute;
  bottom: 0;
}

.audio-control {
  fill: #f0ffff;
}

.container {
  height: inherit;
  perspective: 300px;
  bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.album {
  position: absolute;
  z-index: 10;
  bottom: 10px;
  height: 150px;
  width: 150px;
  transform-style: preserve-3d;
}

.album-art {
  position: absolute;
  box-shadow: 0px 0px 24px 0px #1f0933;
}

.slick-wrap {
  position: fixed;
  bottom: 0;
  padding: 1em 0;
  width: 300px;
  right: calc(50vw - 150px);
  z-index: 1;
}

.center-slick {
  height: 160px;
  margin: 0 auto;
  width: 300px;
}

.slick-slide {
  margin: 0 5px;
  max-width: 150px;
}

.center-slick img {
  width: 100%;
}

.controls {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: inherit;
  z-index: 100;
  width: 30%;
  margin: 0 auto;
}

.control {
  height: 50px;
  width: 50px;
  fill: #fff;
  transition: fill 0.25s ease-in-out;
}

.prev {
  order: 0;
  display: none !important;
  margin-right: 5em;
}

.next {
  order: 2;
  display: none !important;
  margin-left: 5em;
}

.play {
  order: 1;
}

.volume {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  bottom: 299px;
  right: 10px;
  background: var(--color-one);
  height: 5em;
  width: 5em;
  overflow: hidden;
  border-radius: 3em;
  transition: height 0.35s ease;
  z-index: 5;
}

#volBtn {
  /* position: absolute; */
  background-position: center;
  background-repeat: no-repeat;
  height: 50px;
  width: 50px;
  /* margin-bottom: 15px; */
  background-size: cover;
  /* background-image: url('../img/icons/volume-down-fill.svg'); */
}
#volSlider {
  width: 200px;
  transform: rotate(270deg) translate(175px, 0px);
}

.visualizer-wrap {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

#vizzy {
  height: 100%;
  width: 100%;
  z-index: -1;
}

#trackTimeline {
  width: 100vw;
  position: relative;
  z-index: 100;
}

#trackClock {
  width: 300px;
  text-align: center;
  color: #fff;
  position: absolute;
  bottom: 2em;
  left: calc(50% - 150px);
  z-index: 5;
}

#trackInfo {
  color: white;
  position: absolute;
  top: 0;
  margin: 0 auto;
  text-align: center;
  width: 100vw;
  background: var(--color-one);
  border-radius: 1em;
}

/* HELPERS */

.invisible {
  opacity: 0;
}

.show {
  height: 300px;
}

.muted {
  background-image: url("../img/icons/volume-mute-fill.svg");
}

.max-vol {
  background-image: url("../img/icons/volume-up-fill.svg");
}

.mid-max-vol {
  background-image: url("../img/icons/vol-mid-max.svg");
}
.mid-vol {
  background-image: url("../img/icons/volume-down-fill.svg");
}

.animate-cover {
  animation: flip-out 0.75s ease-in-out forwards;
}

.animate-cover-desktop {
  animation: flip-out-desktop 0.75s ease-in-out forwards;
}

/* ANIMATIONS */

@keyframes flip-out {
  0% {
    transform: rotateX(0deg) scale(1);
    bottom: 1em;
  }
  100% {
    transform: rotateX(-360deg) scale(2);
    bottom: 50vh;
  }
}

@keyframes flip-out-desktop {
  0% {
    transform: rotateY(0deg) scale(1);
    bottom: 1em;
    right: 0;
  }
  100% {
    transform: rotateY(-360deg) scale(2);
    bottom: 50vh;
    right: 50vw;
  }
}

/* ==========================================*/

/*  QUERIES  */

/* ==========================================*/

@media screen and (min-width: 555px) {
  .prev {
    order: 0;
    display: block !important;
    margin-right: 5em;
  }

  .next {
    order: 2;
    display: block !important;
    margin-left: 5em;
  }

  .controls {
    width: 100%;
  }
}

@media screen and (min-width: 1024px) {
  .track-meta {
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    /* justify-content: space-around; */
    bottom: 2em;
    width: 45%;
    margin-left: 4em;
  }
  #trackClock {
    left: 0;
    position: relative;
    bottom: 0;
    text-align: left;
    width: 150px;
  }
  #trackInfo {
    position: relative;
    color: white;
    left: 5vw;
    width: 35vw;
    z-index: 5;
    text-align: left;
  }
  .slick-wrap {
    right: 3em;
    z-index: 1;
  }
  .container {
    perspective: 600px;
  }
  .controls {
    width: 35%;
    margin: 0 0;
  }

  .control:hover {
    fill: var(--thumb-color);
  }

  .prev {
    order: 1;
    margin-right: 0;
  }

  .next {
    order: 2;
    margin-left: 0;
  }

  .play {
    order: 0;
  }
  #trackClock {
    left: 0;
    width: 100px;
  }
}
