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

::selection {
  background: #000;
  color: #fff;
}

::-moz-selection {
  background: #000;
  color: #fff;
}

html {
  /*cursor: none;*/
}

body {
  background-color: #5b5b5b;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: monospace;
}

body.preloading {
  background-color: #282828;
}

h1 {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 1px 5px;
}

.title {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  text-align: center;
}

body.preloading .title {
  display: none;
}


/* Canvas setup */
.noise {
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url(../img/noise.gif);
  /* noise intensity */
  opacity: .1;
}

/* Parallax settings */

.para-wrapper {
  position: absolute;
  bottom: 0;
}

.para-wrapper.front-fog {
  left: -100px;
}

.para-layer {
  position: absolute !important;
  bottom: 0;
  max-width: 100vw;
  /*left: 50% !important;*/
  top: auto !important;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.anim {
  width: 100vw;
  height: 62.5vw;
}

#jerks,
#shoes {
  transition: filter .3s 3s ease-out;
}

#shoes {
  filter: blur(3px);
}

body.preloading #shoes {
  filter: blur(0);
}

#frontFog {
  max-width: calc(100vw + 200px);
}

#frontFog:before {
  content: '';
  background: linear-gradient(to bottom, rgba(91, 91, 91, 1) 0%, rgba(91, 91, 91, 0.5) 100%);
  position: absolute;
  z-index: 98;
  width: 100%;
  height: 100px;
  top: -50px;
}


#silhouette {
  filter: blur(10px);
  display: none;
  position: absolute;
  bottom: 0;
}

body.preloading #silhouette {
  display: block;
}

#jerks {
  filter: blur(0);
}

body.preloading #jerks {
  opacity: 0;
  filter: blur(10px);
}

#scene {
  opacity: 1;
  height: 100%;
}

body.preloading #scene {
  opacity: 0;
}


/* START */
#start {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.start-title,
.start-buttons button {
  font-size: 48px;
  line-height: 1.2;
  color: #fff;
}

.start-title {
  font-weight: 900;
  text-align: center;
}

.start-buttons {
  margin-top: 48px;
  display: flex;
  gap: 100px;
}

.start-buttons button {
  font-weight: 400;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

#start.hidden {
  opacity: 0;
  pointer-events: none;
}

/* FU Message */
.fu {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0000FF;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fu.hidden {
  opacity: 0;
  pointer-events: none;
}

.fu-inner {
  display: flex;
  align-items: start;
  gap: 100px;
}

.fu-title {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 48px;
}

.fu-inner p {
  font-size: 24px;
  line-height: 1.4;
}

.fu-inner p+p {
  margin-top: 24px;
}

.fu-inner button {
  margin-top: 48px;
  padding: 0;
  text-decoration: underline;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}

.fu-content {
  width: 540px;
}

.fu-icon {
  width: 200px;
  height: 240px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% auto;
  background-image: url(../img/fu.png);
}


/* Player controls */
#controls {
  position: absolute;
  color: #fff;
  font-size: 10px;
  opacity: 1;
  transition: opacity .3s ease-out;
}

.mm #controls {
  opacity: 0;
}

.volume:before {
  content: attr(data-volume);
}

.mute:before {
  content: 'Click to mute.';
}

.muted .mute:before {
  content: 'Click to unmute.';
}

.muted .volume {
  opacity: 0;
}

body.preloading #controls {
  display: none;
}


/*MEDIA*/
@media only screen and (max-device-width: 767px) {
  .fu-inner {
    flex-direction: column;
    gap: 48px;
    padding: 32px;
  }

  .fu-content {
    width: 100%;
  }

  .fu-icon {
    width: 100px;
    height: 120px;
  }

  .fu-title {
    font-size: 48px;
  }

  .fu-inner p {
    font-size: 18px;
  }

  .title {
    width: 60vw;
  }

  #controls .volume {
    display: none;
  }

  .muted .mute:before {
    content: 'Tap to Unmute';
  }

  .mute:before {
    content: 'Tap to mute.';
  }

  #scene {
    position: absolute;
    bottom: 0;
  }
}