@keyframes pulse {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale3d(1, 1, 1);
  }
  80%,
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%) scale3d(5, 1.5, 1);
  }
}

@keyframes particle-down {
  from {
    opacity: 0;
    top: 0%;
  }
  20% {
    opacity: 0.8;
  }
  80%,
  to {
    opacity: 0;
    top: 100%;
  }
}

@keyframes particle-up {
  from {
    opacity: 0;
    top: 100%;
  }
  20% {
    opacity: 0.8;
  }
  80%,
  to {
    opacity: 0;
    top: 0%;
  }
}

@keyframes loading {
  from,
  to {
    height: 4px;
  }
  50% {
    height: 12px;
  }
}

@keyframes bounce-in-right {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}

html,
body,
#root {
  font-family: 'Barlow Condensed', sans-serif;
  height: 100%;
  margin: 0px;
  overflow: hidden;
  padding: 0px;
  width: 100%;
}

#music-app {
  background-image: url("../earth-space.jpg");
  background-position: center;
  background-size: cover;
  height: 100%;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

#music-app:hover #control-bar {
  opacity: 1;
  transform: translateY(0%);
}

#music-app #loading {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  backface-visibility: hidden;
  height: 12px;
  position: absolute;
  text-align: center;
  transition: all 0.4s;
  width: 100%;
  z-index: 100;
}

#music-app #loading.visible .bar {
  animation: loading 1s ease-in-out infinite;
}

#music-app #loading.done #bars {
  width: 100%;
}

#music-app #loading.done #bars .bar:nth-child(1),
#music-app #loading.done #bars .bar:nth-child(3) {
  opacity: 0;
  transition: all 0s;
}

#music-app #loading.done #bars .bar:nth-child(2) {
  width: 100%;
}

#music-app #loading.hide {
  opacity: 0;
}

#music-app #loading #bars {
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  transition: all 0.4s;
  width: 26px;
}

#music-app #loading #bars .bar {
  background-color: white;
  box-shadow: 0px 0px 1px 1px white, 0px 0px 6px 2px rgba(255, 255, 255, 0.8);
  display: inline-block;
  height: 4px;
  position: absolute;
  top: 50%;
  transition: all 1s;
  transition-timing-function: ease-in-out;
  transform: translateY(-50%);
  width: 4px;
}

#music-app #loading #bars .bar:nth-child(1) {
  left: 0px;
}

#music-app #loading #bars .bar:nth-child(2) {
  animation-delay: 0.3s;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

#music-app #loading #bars .bar:nth-child(3) {
  animation-delay: 0.6s;
  left: 22px;
}

#music-app #top-bar {
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100%;
  z-index: 100;
}

#music-app #top-bar #time,
#music-app #top-bar #title {
  display: inline-block;
  margin: 10px 20px;
  position: absolute;
  top: 0px;
}

#music-app #top-bar #time h1,
#music-app #top-bar #title h1 {
  color: white;
  font-size: 2em;
  font-weight: 400;
  margin: 0px;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
}

#music-app #top-bar #time {
  left: 0px;
}

#music-app #top-bar #time h1 {
  letter-spacing: 1px;
}

#music-app #top-bar #title {
  animation: bounce-in-right 1s ease-in;
  right: 0px;
}

#music-app #top-bar #title #main-title,
#music-app #top-bar #title #sub-title {
  text-align: right;
  text-transform: uppercase;
}

#music-app #top-bar #title #sub-title {
  font-size: 1.5em;
}

#music-app #control-bar {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  bottom: 0px;
  height: 50px;
  left: 0px;
  opacity: 0;
  position: absolute;
  transform: translateY(100%);
  transition: all 0.4s;
  width: 100%;
  z-index: 100;
}

#music-app #control-bar:hover #progress-bar #filled #dragger,
#music-app #control-bar.dragging #progress-bar #filled #dragger {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

#music-app #control-bar.dragging #progress-bar #filled #dragger {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

#music-app #control-bar.dragging #progress-bar #filled #dragger:before {
  height: 30px;
  width: 30px;
}

#music-app #control-bar.dragging #progress-bar #filled #dragger:after {
  height: 80px;
  width: 80px;
  z-index: -1;
}

#music-app #control-bar #progress-bar {
  background-color: rgba(255, 255, 255, 0.2);
  height: 4px;
  left: 0px;
  position: absolute;
  top: 0px;
  width: 100%;
  z-index: 3;
}

#music-app #control-bar #progress-bar #filled {
  background-color: #c62828;
  display: inline-block;
  height: 4px;
  left: 0px;
  position: absolute;
  top: 0px;
  z-index: 3;
}

#music-app #control-bar #progress-bar #filled #dragger {
  cursor: pointer;
  height: 20px;
  opacity: 0;
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%) scale(0.25);
  transition: all 0.4s;
  width: 20px;
  z-index: 3;
}

#music-app #control-bar #progress-bar #filled #dragger:before,
#music-app #control-bar #progress-bar #filled #dragger:after {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  background-color: #c62828;
  border-radius: 100px;
  content: '';
  height: 20px;
  transition: all 0.25s;
  width: 20px;
}

#music-app #control-bar #progress-bar #filled #dragger:after {
  background-color: rgba(198, 40, 40, 0.2);
  pointer-events: none;
}

#music-app #control-bar #progress-bar #filled #dragger:hover:before {
  height: 30px;
  width: 30px;
}

#music-app #control-bar #progress-bar #filled #dragger:hover:after {
  height: 80px;
  width: 80px;
  z-index: -1;
}

#music-app #control-bar .button {
  cursor: pointer;
  display: inline-block;
  height: 50px;
  vertical-align: top;
  width: 50px;
}

#music-app #control-bar .button i {
  color: white;
  font-size: 1.25em;
  height: 50px;
  line-height: 50px;
  margin: 0px;
  text-align: center;
  width: 50px;
}

#music-app #control-bar #play-toggle.toggled #play,
#music-app #control-bar #play-toggle.toggled #volume-on,
#music-app #control-bar #volume-toggle.toggled #play,
#music-app #control-bar #volume-toggle.toggled #volume-on {
  opacity: 0;
  transform: scale(0.25);
}

#music-app #control-bar #play-toggle.toggled #pause,
#music-app #control-bar #play-toggle.toggled #volume-off,
#music-app #control-bar #volume-toggle.toggled #pause,
#music-app #control-bar #volume-toggle.toggled #volume-off {
  opacity: 1;
  transform: scale(1);
}

#music-app #control-bar #play-toggle #play,
#music-app #control-bar #play-toggle #pause,
#music-app #control-bar #play-toggle #volume-on,
#music-app #control-bar #play-toggle #volume-off,
#music-app #control-bar #volume-toggle #play,
#music-app #control-bar #volume-toggle #pause,
#music-app #control-bar #volume-toggle #volume-on,
#music-app #control-bar #volume-toggle #volume-off {
  height: 50px;
  position: absolute;
  transition: all 0.4s;
  width: 50px;
}

#music-app #control-bar #play-toggle #play,
#music-app #control-bar #play-toggle #volume-on,
#music-app #control-bar #volume-toggle #play,
#music-app #control-bar #volume-toggle #volume-on {
  opacity: 1;
}

#music-app #control-bar #play-toggle #pause,
#music-app #control-bar #play-toggle #volume-off,
#music-app #control-bar #volume-toggle #pause,
#music-app #control-bar #volume-toggle #volume-off {
  opacity: 0;
  transform: scale(0.25);
}

#music-app #control-bar #control-bar-time {
  display: inline-block;
  height: 50px;
  vertical-align: top;
}

#music-app #control-bar #control-bar-time h1 {
  color: white;
  font-size: 1.25em;
  font-weight: 400;
  height: 50px;
  line-height: 50px;
  margin: 0px;
}

#music-app #control-bar #control-bar-time h1 #current-time,
#music-app #control-bar #control-bar-time h1 #end-time {
  display: inline-block;
  text-align: center;
  width: 30px;
}

#music-app #sound-waves {
  background-color: rgba(0, 0, 0, 0.6);
  height: 100%;
  opacity: 0;
  position: relative;
  transition: all 2s;
  transition-delay: 1.4s;
  transition-timing-function: ease-in-out;
  width: 100%;
  z-index: 1;
}

#music-app #sound-waves.visible {
  opacity: 1;
}

#music-app #sound-waves .sound-wave {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  height: 4px;
  justify-content: space-around;
  text-align: center;
  width: 100%;
  z-index: 10;
}

#music-app #sound-waves .sound-wave#wave-1 {
  z-index: 2;
}

#music-app #sound-waves .sound-wave#wave-1 .sound-line {
  background-color: white;
  box-shadow: 0px 0px 1px 1px white, 0px 0px 6px 2px rgba(255, 255, 255, 0.8);
  transition: all 150ms ease-in-out;
}

#music-app #sound-waves .sound-wave#wave-2 {
  z-index: 3;
}

#music-app #sound-waves .sound-wave#wave-2 .sound-line {
  background-color: white;
  box-shadow: 0px 0px 1px 1px white, 0px 0px 6px 2px rgba(255, 255, 255, 0.8);
  transition: all 150ms ease-in-out;
}

#music-app #sound-waves .sound-wave#wave-3 {
  z-index: 1;
}

#music-app #sound-waves .sound-wave#wave-3 .sound-line {
  background-color: white;
  box-shadow: 0px 0px 1px 1px white, 0px 0px 6px 2px rgba(255, 255, 255, 0.8);
  transition: all 100ms ease-in-out;
}

#music-app #sound-waves .sound-wave .sound-line {
  backface-visibility: hidden;
  display: inline-block;
  position: relative;
  transform: translateY(-50%);
  top: 50%;
  width: 4px;
}

#music-app #particles {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  height: 2px;
  opacity: 0;
  transition: all 2s;
  transition-delay: 1.4s;
  transition-timing-function: ease-in-out;
  width: 100%;
  z-index: 10;
}

#music-app #particles.visible {
  opacity: 1;
}

#music-app #particles .particle-path {
  position: absolute;
  transition: opacity 0.4s;
  width: 2px;
}

#music-app #particles .particle-path .particle {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background-color: white;
  border-radius: 10px;
  height: 2px;
  position: absolute;
  width: 2px;
}