@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.stage {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.scroll {
  margin: auto;
}

.canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  margin: 20px;

  canvas {
    z-index: var(--z-index-canvas);
  }
}

.loading {
  width: 100px;
  height: 100px;
  margin: -50px 0 0 -50px;
  border: 3px solid var(--primary100);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-index-canvas);
  animation: rotate 0.3s linear infinite;
}

.renderInfo {
  position: relative;
  overflow: hidden;
  z-index: var(--z-index-canvas);
}

.overlay {
  content: '\0020';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  z-index: var(--z-index-overlay);
}
