:root {
  --background-color: #2D2A22;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Azeret Mono,monospace;
  font-size: 8vw;
  display: block;
  color: #fafafa;
}

html {  
  flex-direction: column;
}

body {
  width: 100vw;
  height: 100vh;
  flex-direction: row;
  overflow: hidden;
  touch-action: none;
  position: relative;
  background: var(--background-color);
  background-blend-mode: screen;
}

main {
  position: relative;
  width: min(100vh,100vw);
  height: 100%;
  margin: auto;
}

canvas {
  z-index: 100;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

p {
  padding: 0.5rem;
  text-align: center;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.loader {
  border: 16px solid #fafafa;
  border-top: 16px solid var(--background-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

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