* {
  box-sizing: border-box;
  outline: 0px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inconsolata', monospace;
  background-color: black;
}

@-webkit-keyframes fade_canvas {
  0%   { opacity: 0 }
  50%  { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes fade_canvas {
  0%   { opacity: 0 }
  50%  { opacity: 0 }
  100% { opacity: 1 }
}

@-webkit-keyframes fade_inout_canvas {
  0%   { opacity: 1 }
  50%  { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes fade_inout_canvas {
  0%   { opacity: 1 }
  50%  { opacity: 0 }
  100% { opacity: 1 }
}

@-webkit-keyframes fade_logo {
  0%   { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes fade_logo {
  0%   { opacity: 0 }
  100% { opacity: 1 }
}


@-webkit-keyframes fade_interface {
  0%   { opacity: 0 }
  20%   { opacity: 0 }
  100% { opacity: 1 }
}


@keyframes fade_interface {
  0%   { opacity: 0 }
  20%   { opacity: 0 }
  100% { opacity: 1 }
}

.fade_inout {
  -webkit-animation-name: fade_inout_canvas !important;
          animation-name: fade_inout_canvas !important;
  -webkit-animation-duration: 3s !important;
          animation-duration: 3s !important;
}

.fade_in h1 {
  -webkit-animation-name: fade_logo !important;
          animation-name: fade_logo !important;
  -webkit-animation-duration: 2s !important;
          animation-duration: 2s !important;
  opacity: 1 !important;
}

.fade_in canvas {
  -webkit-animation-name: fade_canvas;
          animation-name: fade_canvas;
  -webkit-animation-duration: 5s;
          animation-duration: 5s;
  opacity: 1;
}

.active canvas,
.active #interface > * {
  opacity: 1;
}

#interface > * {
  opacity: 0;
}

.fade_in #interface > * {
  -webkit-animation-name: fade_interface;
          animation-name: fade_interface;
  -webkit-animation-duration: 5s;
          animation-duration: 5s;
  opacity: 1;
}

.fade_in #interface > #about,
.active #interface > #about {
  -webkit-animation-name: none;
          animation-name: none;
  opacity: 0 !important;
}

canvas {
  background-color: rgb(0,0,0);
  display: block;
  opacity: 0;
}

#track {
  position: absolute;
  bottom: 50px;
  left: 25px;
  width: calc(100vw - 50px);
  height: 10px;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
  cursor: pointer;
  -webkit-transition: opacity 250ms ease-out;
  transition: opacity 250ms ease-out;
}

#track.hidden {
  opacity: 0 !important;
}

#line {
  position: absolute;
  top: 5px;
  left: 0px;
  width: 100%;
  border-bottom: 1px solid white;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
}

#cursor {
  position: absolute;
  top: 0px;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: white;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

#places {
  position: relative;
  width: calc(100% - 10px);
}

.place {
  position: absolute;
  top: 10px;
  left: 0px;
  width: 8.41%;
  text-align: center;
  height: 5px;
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

.place .text {
  position: absolute;
  left: 50%;
  top: 10px;
  white-space: nowrap;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  color: white;
}

.city {
  position: absolute;
  top: -10px;
}

.city:before {
  content: '';
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 5px;
  height: 5px;
  background-color: white;
  border-radius: 100%;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
}

.city .text {
  position: absolute;
  top: -15px;
  left: 3px;
  white-space: nowrap;
  -webkit-transform: rotate(-90deg) translateY(-50%);
          transform: rotate(-90deg) translateY(-50%);
  -webkit-transform-origin: top left;
          transform-origin: top left;
  color: white;
}

.city .text:before {
  content: '';
  display: block;
  position: absolute;
  top: calc(50% - 1px);
  left: -15px;
  width: 10px;
  border-bottom: 1px solid white;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
}

#filters_button,
#sound_button,
#about_button {
  position: absolute;
  top: 17px;
  left: 535px;
  -webkit-transition: opacity 250ms ease-out;
  transition: opacity 250ms ease-out;
  z-index: 1000;
}

#sound_button {
  left: 505px;
}

#filters_button {
  left: 475px;
}
#filters_button:hover,
#sound_button:hover,
#about_button:hover {
  opacity: .5;
}

h1 {
  margin: 0px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 45px;
  line-height: 20px;
  z-index: 1000;
  text-transform: uppercase;
  color: white;
  text-shadow: 0px 0px 10px rgba(255, 255, 255, .3);
  opacity: 0;
}
@media screen and (max-width: 640px) {
h1 {
  line-height:40px;
}
}

h1 small {
  font-family: 'Inconsolata', monospace;
  text-transform: none;
  font-size: 20px;
}

.place.bottom .text {
  top: 25px;
}

.place.bottom:before {
  content: '';
  display: block;
  position: absolute;
  top: 5px;
  left: 50%;
  width: 1px;
  background-color: white;
  height: 15px;
}

@media screen and (min-width: 1024px) and (max-width: 1199px) {
  .hidden-md {
    display: none;
  }
}


@media screen and (max-width: 1023px) {
  h1 {
    font-size: 45px;
    text-align: center;
  }

  h1 small {
    font-size: 21px;
  }

  #track {
    bottom: 15px;
  }

  .place,
  .hidden-md {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    left: 0px;
    width: 100%;
  }

  #about_button {
    z-index: 3000;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 100px;
  }

  #filters_button,
  .hidden-xs,
  #about_button img {
    display: none;
  }

  /* Sound toggle stays reachable on mobile, above the about tap zone */
  #sound_button {
    display: block;
    top: 17px;
    left: auto;
    right: 20px;
    z-index: 3500;
  }
}

#about {
  position: absolute;
  left: 25px;
  bottom: 25px;
  z-index: 0;
  color: white;
  width: calc(100% - 50px);
  max-width: 450px;
  font-size: 14px;
  line-height: 16px;
  opacity: 0;
  text-shadow: 0px 0px 3px rgba(0, 0, 0, .5);
  -webkit-transition: opacity 250ms ease-out;
  transition: opacity 250ms ease-out;
  pointer-events: none;
}

.active #interface > #about.active {
  opacity: 1 !important;
  z-index: 1000;
  pointer-events: all;
}

#about p {
  margin: 0 0 16px 0;
}

#about p:last-child {
  margin-bottom: 0px;
}

#about a {
  color: white;
}

#about strong {
  text-transform: uppercase;
}

/*
 * SpinKit
 */
.sk-fading-circle {
  width: 40px;
  height: 40px;
  position: relative;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.sk-fading-circle.hidden {
  display: none;
}

.sk-fading-circle .sk-circle {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.sk-fading-circle .sk-circle:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #fff;
  border-radius: 100%;
  -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
          animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}

.sk-fading-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
          transform: rotate(30deg);
}
.sk-fading-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
          transform: rotate(60deg);
}
.sk-fading-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
.sk-fading-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
          transform: rotate(120deg);
}
.sk-fading-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
          transform: rotate(150deg);
}
.sk-fading-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.sk-fading-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
          transform: rotate(210deg);
}
.sk-fading-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
          transform: rotate(240deg);
}
.sk-fading-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
          transform: rotate(270deg);
}
.sk-fading-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
          transform: rotate(300deg);
}
.sk-fading-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
          transform: rotate(330deg);
}
.sk-fading-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
          animation-delay: -1.1s;
}
.sk-fading-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
          animation-delay: -1s;
}
.sk-fading-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
          animation-delay: -0.9s;
}
.sk-fading-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
          animation-delay: -0.8s;
}
.sk-fading-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
          animation-delay: -0.7s;
}
.sk-fading-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
          animation-delay: -0.6s;
}
.sk-fading-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s;
}
.sk-fading-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
          animation-delay: -0.4s;
}
.sk-fading-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
          animation-delay: -0.3s;
}
.sk-fading-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
          animation-delay: -0.2s;
}
.sk-fading-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
          animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
  0%, 39%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

@keyframes sk-circleFadeDelay {
  0%, 39%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

#old_browser {
  position: absolute;
  top: calc(50% + 35px);
  left: 0px;
  width: 100%;
  text-align: center;
  color: white;
}

#play_experiment {
  position: absolute;
  top: calc(50% - 75px);
  left: 0px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 12px;
}

#play_experiment img {
  width: 50px;
  margin-bottom: 20px;
}
