body {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* hide the scrollbars */
  margin: 0;
  background-color: #000;
  height: 100vh;
}

canvas {
  margin: auto;
  display: block;
  max-width: fit-content;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translate(-70px, -72px);
}
.spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid #fff;
  border-radius: 50%;
  animation: spinner 0.8s cubic-bezier(0,0,1,1) infinite;
  border-color: #000 #0000 #0000 #0000;
}
.spinner div:nth-child(2) {
  animation-delay: 0.1s;
}

#screenshot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: white;
}
#screenshot-loading-title {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: black;
}
#screenshot-loading-text {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 100;
  font-size: 1rem;
  color: black;
}

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