* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'axis-typeface';
  src: url('Axis\ Extrabold.otf') format('opentype');
}

html,
body {
  height: 100%;
  font-family: 'axis-typeface', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol';
  color: #fff;
}

canvas {
  display: block;
}

.webgl-background {
  position: absolute;
  top: 0;
  left: 0;
}

.dark-background {
  background-color: #000;
  z-index: 55;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#unity-container {
  width: 100%;
  height: 100%;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  background: #231f20;
}

#loading-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

#unity-loading-bar {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 40vh;
}

#unity-logo {
  text-align: center;
  max-width: 80%;
}

#unity-logo img {
  max-width: 40rem;
  width: 80vw;
}

#subtext {
  font-size: 0.8rem;
  letter-spacing: 4px;
  min-height: 50px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s linear;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 1s, opacity 1s linear;
}

#unity-progress-text-empty {
  width: 100%;
  margin-top: 1.5rem;
}

#unity-progress-text-full {
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 4px;
  text-align: center;
}

.light #unity-progress-text-empty {
  border-color: black;
}

.light #unity-progress-text-full {
  background: black;
}

#unity-fullscreen-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center;
  background-size: contain;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}

.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}

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

@media (min-width: 412px) {
  #subtext {
    font-size: 1rem;
  }
}
@media (min-width: 768px) {
  #subtext {
    font-size: 1.2rem;
  }

  #unity-progress-bar-full {
    font-size: 1.8rem;
  }
}
