body {
  padding: 0;
  margin: 0
}

#unity-container {
  position: absolute
}

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

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

#unity-canvas {
  background: #182541
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%
}

.unity-desktop #unity-canvas {
  width: 100%;
  height: 100%
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%
}

/* bug full screen when inside iframe on ios */
#unity-canvas.full-screen{
  width: 99.9%;
}

#unity-loading-bar {
  width: 75%;
  height: 100%;
  display: flex;
  flex-direction: column;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none
}

#unity-logo {
  width: 30%;
  height: 30%;
  background: url('FormulaXR_Animated.gif') no-repeat center;
  background-size: contain;
  margin: auto;
}

#unity-progress-bar-empty {
  width: 100%;
  height: 10px;
  background-color: white;
  border-radius: 2px;
  position: absolute;
  top: 82.5%;
  transform: translate(0, -50%);
}

#unity-progress-bar-full {
  width: 0%;
  height: 10px;
  background-color: #BDD02A;
  border-radius: 2px;
}

#unity-footer {
  position: relative
}

.unity-mobile #unity-footer {
  display: none
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none
}

#unity-fullscreen-button {
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
  display: none;
}

#unity-fullscreen-button .fullscreen-icon {
  background: url('fullscreen-button.png') no-repeat center;
  width: 20px;
  height: 20px;
  background-size: cover;
}

#back-button {
  align-items: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 15px;
  width: 38px;
  height: 38px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 18px;
}

#back-button .back-icon {
  background: url('back-button.svg') no-repeat center;
  width: 20px;
  height: 20px;
  background-size: cover;
}

#rotate-device-info {
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  opacity: 0;
  background-image: url(rotate-phone.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200px;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
  -ms-transition: opacity 0.5s ease-in-out;
  -o-transition: opacity 0.5s ease-in-out;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

#rotate-device-message 
{
  color: white;
  width: 90%;
  font-size: x-large;
  text-align: center;
  position: absolute;
  bottom: 25%;
  left: 5%;
  transform: translate(0, 50%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: auto;
}

@media all and (display-mode: fullscreen) {
  #unity-fullscreen-button .fullscreen-icon {
    background: url('fullscreen-exit.png') no-repeat center;
    width: 20px;
    height: 20px;
    background-size: cover;
  }
}

@media screen and (orientation:portrait) {
  #rotate-device-info {
    opacity: 1;
  }
}
