body { padding: 0; margin: 0 }
#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; background: #231F20 }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 141px; height: 18px; margin-top: 10px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
#rotateDevice {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 48px;
  z-index: 9999;
  box-sizing: border-box;
}

#rotateDeviceText, #resizeWindowText { margin-top: 10px; }

#changeToLandscape img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

#changeToLandscape { max-width: 100%; }

@media (max-aspect-ratio: 1.3) {
  #unity-canvas { display: none; }
  #rotateDevice { display: flex; }
}

@media (pointer: coarse), (hover: none) {
  #rotateDeviceText { display: block; }
  #resizeWindowText { display: none; }
}

@media (pointer: fine) and (hover: hover) {
  #rotateDeviceText { display: none; }
  #resizeWindowText { display: block; }
}

@media (max-width: 384px) {
  #rotateDevice {
    font-size: 24px;
    padding: 20px;
  }

  #changeToLandscape { width: 300px; }
}
