body {
  height: 100%;
  overflow: hidden;
  width: 100%;
  position: fixed;
  padding: 0;
  margin: 0;
  touch-action:none;
}

/*
TERRIBLE HACK for the reCaptcha popup - which is stuck on the top
of the screen in mobile :/
*/
body > div:nth-last-of-type(1) > div:nth-of-type(2) {
  top: 15% !important;
}

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

@media (min-width: 768px) {
  #unity-container {
    position: absolute;
    width: 60vh;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/assets/unity/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
  }
}

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

#loading-screen {
 position: absolute;
 left: 50%; top: 50%; transform: translate(-50%, -50%);
 width: 100%;
 height: 100%;
 background: url("/assets/unity/bg.jpg") center no-repeat;
 background-size: cover;
 z-index: 1;
 display: block;
}

@keyframes fade {
  0%, 100% {
    opacity: 1.0;
  }
  50% {
    opacity: 0.6;
  }
}

.unity-loading-container {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 25px;
}

.unity-loading-background {
  background: #250D47;
  border: 2px solid #250D47;
  border-radius: 4px;
  box-shadow: inset 0 1px rgba(255,255,255,0.3);
  width: 100%;
  height: 100%;
}


.unity-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #BC16CA, #C262CD);
  border-radius: 3px;
  box-shadow: inset 0 1px rgba(255,255,255,0.8);
}

.bounce-loader {
  position: absolute;
  bottom: -0.5%;
  left: -5%;
  transform: scale(0.4);
}

.unity-loading-image {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) scale(0.5);
}

/* HACK for the reCaptcha popup - which is stuck on the top of the screen in mobile :/

div:has(iframe) {
  top: 120px !important;
}

*/
