html {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #000;
}

#unity-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
}

canvas {
  width: 100%;
  height: 100%;
}

canvas+* {
  z-index: 2;
}

.logo {
  display: block;
  max-width: 100vw;
  max-height: 70vh;
}

.progress {
  margin: 1.5em;
  border: 1px solid white;
  width: 25vw;
  display: none;
}

.progress .full {
  margin: 2px;
  background: #fff;
  height: 1em;
  transform-origin: top left;
}

#loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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;
}

#unity-fullscreen-button {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 30px;
  height: 30px;
  opacity: 0.4;
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 8px;
  display: block;
  transition: opacity 0.4s;
  background: none;
  padding: 0;
  border: 0;
  cursor: pointer;
  user-select: none;
}

#unity-fullscreen-button:hover {
  opacity: 1;
}

#unity-fullscreen-button img {
  width: 100%;
  height: 100%;
  margin: 0;
}

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

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