html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
    background: white;
}

#unity-container {
    width: 100vh;
    height: 100%;
    margin-left: calc( (100vw - 100vh) / 2 );
}

#unity-container.poster {
    width: calc(0.7142857143 * 100vh);
    height: 100%;
    margin-left: calc( (100vw - (0.7142857143 * 100vh)) / 2 );
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #1F1C1C;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 100px;
    height: 4px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
    display: none;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    display: none;
}
.light #unity-progress-bar-empty {
    border-color: black;
    display: none;
}
.light #unity-progress-bar-full {
    background: black;
    display: none;
}

#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 {
  display: none;
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  display: none;
  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);
  }
}


.boxes {
     --size: 32px;
     --duration: 800ms;
     height: calc(var(--size) * 2);
     width: calc(var(--size) * 3);
     position: relative;
     transform-style: preserve-3d;
     transform-origin: 50% 50%;
     margin-top: calc(var(--size) * 1.5 * -1);
     transform: rotateX(60deg) rotateZ(45deg) rotateY(0deg) translateZ(0px);
}
 .boxes .box {
     width: var(--size);
     height: var(--size);
     top: 0;
     left: 0;
     position: absolute;
     transform-style: preserve-3d;
}
 .boxes .box:nth-child(1) {
     transform: translate(100%, 0);
     animation: box1 var(--duration) linear infinite;
}
 .boxes .box:nth-child(2) {
     transform: translate(0, 100%);
     animation: box2 var(--duration) linear infinite;
}
 .boxes .box:nth-child(3) {
     transform: translate(100%, 100%);
     animation: box3 var(--duration) linear infinite;
}
 .boxes .box:nth-child(4) {
     transform: translate(200%, 0);
     animation: box4 var(--duration) linear infinite;
}
 .boxes .box div {
     --background: white;
     --top: auto;
     --right: auto;
     --bottom: auto;
     --left: auto;
     --translateZ: calc(var(--size) / 2);
     --rotateY: 0deg;
     --rotateX: 0deg;
     position: absolute;
     width: 100%;
     height: 100%;
     background: var(--background);
     top: var(--top);
     right: var(--right);
     bottom: var(--bottom);
     left: var(--left);
     transform: rotateY(var(--rotateY)) rotateX(var(--rotateX)) translateZ(var(--translateZ));
}
 .boxes .box div:nth-child(1) {
     --top: 0;
     --left: 0;
}
 .boxes .box div:nth-child(2) {
     --background: #b2b2b2;
     --right: 0;
     --rotateY: 90deg;
}
 .boxes .box div:nth-child(3) {
     --background: #d7d7d7;
     --rotateX: -90deg;
}
 .boxes .box div:nth-child(4) {
     --background: #171616;
     --top: 0;
     --left: 0;
     --translateZ: calc(var(--size) * 3 * -1);
}
 @keyframes box1 {
     0%, 50% {
         transform: translate(100%, 0);
    }
     100% {
         transform: translate(200%, 0);
    }
}
 @keyframes box2 {
     0% {
         transform: translate(0, 100%);
    }
     50% {
         transform: translate(0, 0);
    }
     100% {
         transform: translate(100%, 0);
    }
}
 @keyframes box3 {
     0%, 50% {
         transform: translate(100%, 100%);
    }
     100% {
         transform: translate(0, 100%);
    }
}
 @keyframes box4 {
     0% {
         transform: translate(200%, 0);
    }
     50% {
         transform: translate(200%, 100%);
    }
     100% {
         transform: translate(100%, 100%);
    }
}



