: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: #000;
  
}

#defaultCanvas0 {
  z-index: 10;
}

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 > canvas {
  display: block !important;
  position: absolute !important;
  top: 0px;
  left: 0px;
}