html,
body {
  margin: 0;
  min-height: 100%;
  min-width: 100%;
}

body {
  align-items: center;
  background: #000;
  color: #b4b4b4;
  display: flex;
  font-family: "Courier New", monospace;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

#app-shell {
  align-items: center;
  display: flex;
  height: 100vh;
  justify-content: center;
  min-width: 100vw;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100vw;
  z-index: 1;
}

#app-backdrop {
  height: 100vh;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#app {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  width: 100%;
  z-index: 1;
}

#app > canvas {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-height: 100vh;
  max-width: 100vw;
  position: relative;
  width: auto;
  z-index: 1;
}

body.menu-active #app > canvas,
#app > canvas.menu-active {
  image-rendering: auto !important;
}

body.loading-active #app > canvas,
#app > canvas.loading-active {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
}

body.run-backdrop-blackout,
body.run-backdrop-blackout #app-shell,
body.run-backdrop-blackout #app {
  background: #000;
}

body.run-backdrop-blackout #app-backdrop,
#app-shell.run-backdrop-blackout #app-backdrop,
#app-backdrop.run-backdrop-blackout {
  opacity: 0;
}
