:root {
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #ADCAEB;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

canvas {
  position: absolute;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#tooltipCanvas {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 120;
}

.particle-canvas {
  pointer-events: none;
}

#vfxWebGLUnderOverlayCanvas {
  z-index: 110;
}

#vfxWebGLAboveOverlayCanvas {
  z-index: 112;
}

#overlayCanvas {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 111;
}
#overlayCanvas.show {
  animation: bounceIn 0.3s ease forwards;
}
#overlayBackground {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 109;
  background: rgba(0, 0, 0, 0.8);
}
#navigationCanvas{
  z-index: 9;
}
#piecesCanvas{
  z-index: 3;
}
#gameTopCanvas{
  z-index: 6;
}
#vfxWebGLAboveCanvas{
  z-index: 5;
}
#params {
  position: absolute;
  left: 50px;
  top: 150px;
  z-index: 109;
}
#dialogCanvas {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 120;
}
#dialogCanvas.show {
  animation: bounceIn 0.3s ease forwards;
}
#dialogOverlay {
  position: absolute;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 119;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 180ms ease;
}