body {
  background: #000;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

button {
  outline: none;
}

#flex-container {
  flex: 1 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}
#flex-container-vertical {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
#timeline {
  position: relative;
  flex: 1 30%;
  cursor: crosshair;
}
#viewport {
  position: relative;
  flex: 1 70%;
}

#footer {
  position: relative;
  flex: 1 300px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
#footer.hidden {
  display: none;
}
@media screen and (max-height: 500px) {
  #footer {
    flex: 1 50%;
  }
}

#tour {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: space-around;
  color: #fff;
  font-size: 15px;
  user-select: none;
  max-height: 100%;
  max-width: 1000px;
}
#tour a {
  color: #ff0;
  font-weight: bold;
}
#tour h1 {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 0;
}
#tour .scroll {
  flex: 1 100%;
  align-self: stretch;
  overflow: hidden;
  padding: 20px 0;
  text-align: left;
}
@media screen and (max-height: 500px) {
  #tour .scroll {
    overflow: scroll;
  }
}
#tour button {
  flex: 1 0 auto;
  width: 50px;
  height: 50px;
  max-width: 50px;
  margin: 20px;
  font-size: 20px;
  font-weight: bold;
  background: #ff0;
  color: rgba(0, 0, 0, 0.9);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: -0.05em;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              opacity 0.25s ease-out;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
#tour button:active {
  transition: transform 0.1s ease-out;
  transform: scale(1.4);
  z-index: 1;
}
#tour button:disabled {
  opacity: 0.0;
  cursor: default;
  transform: scale(0.7);
  transition: transform 0.25s ease-in, opacity 0.2s ease-in;
}

#frequencies {
  position: absolute;
  right: 10px;
  top: 25%;
  bottom: 25%;
  width: 70px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
}
#frequencies > div {
  flex: 1 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#frequencies > div > div {
  font-size: 13px;
  font-weight: normal;
  text-align: center;
  user-select: none;
  flex: 1 auto;
  color: rgba(255, 255, 255, 0.25);
}
#frequencies > .selected > div {
  color: rgba(255, 255, 255, 1.0);
}
#frequencies > .selected.top > div {
  color: rgba(255, 255, 0, 1.0);
}

#time {
  position: absolute;
  z-index: 100;
  padding: 5px 10px;
  background: rgba(32, 0, 0, 0.7);
  color: #f00;
  border: 2px solid #f00;
  border-radius: 999px;
  user-select: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  cursor: default;
  font-weight: bold;
  pointer-events: none;
}

#va-logo {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 50;
  height: 8%;
  user-select: none;
  pointer-events: none;
}

#fullscreen {
  cursor: pointer;
  background: url('img/fullscreen.svg');
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1000;
  width: 32px;
  height: 32px;
}
body:-webkit-full-screen #fullscreen {
  background: url('img/fullscreen-exit.svg');
}
body:-moz-full-screen #fullscreen {
  background: url('img/fullscreen-exit.svg');
}

#reset {
  position: absolute;
  border: 0;
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  font-size: 13px;
  font-weight: normal;
  text-align: center;
  padding: 14px 0;
  width: 70px;
  color: rgba(255, 255, 255, 1.0);
  cursor: pointer;
}

canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}
