:root {
  --ratio: 1.4
}

body {

  background: #000;

  display: flex;
  align-items: center;
  justify-content: center;


  /* leave it to hide the scrollbars */
  overflow: hidden;
  margin: 0px;
  padding: 0px;
  height: 100vh;
}

#container {
  position: relative;
  background: #fff;
  
}

#progress {
  position: absolute;
  font-size: 1.5vh;
  font-family: monospace;
  color: rgba(0, 0, 0, .5);
  bottom: 1vmin;
  right: 1vmin;
  z-index: 1000;
  text-shadow: 0 0 2px rgba(255, 255, 255, .5);
  
}

#title {
  position: absolute;
  height: 6vmin;
  width: 80%;
  text-align: center;
  left: 10%;
  top: calc(50% - 3vmin);
  font-family: monospace;
  color: #888;
  
  font-size: 4vmin;
  transition: opacity 1s ease-in-out;
  text-shadow: 0 0 4px rgba(255, 255, 255, .75);
  z-index: 9999999;
}

#title.hidden {
  opacity: 0;
  pointer-events: none;
}

#threejs {
  z-index: 1;
  opacity: 0;
}

#defaultCanvas0 {
  z-index: 10;
}

body > canvas {
  z-index: 100;
}

body #container.wide, body #container.wide > canvas {
  height: calc(100vh) !important;
  width: calc(100vh / var(--ratio)) !important;
}

body #container.narrow, body #container.narrow > canvas {
  width: 100vw !important;
  height: calc(100vw * var(--ratio)) !important;
}

body > main {
  z-index: 5;
  position: absolute; 
}

#container > #noise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  rows: repeat(3, 1fr);
}

#container > canvas {
  display: block !important;
  position: absolute !important;
  top: 0px;
  left: 0px;
}