html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: black;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

#unity-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  overflow: hidden;
}

#unity-canvas {
  background: #231F20;
  display: block;
  width: 100%;
  height: 100%;
}

#loading-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  z-index: 1000;
}

#unity-loading-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.centered-logo {
  max-width: 80%;
  margin-bottom: 30px;
}

#unity-logo img {
  width: 100%;
  height: auto;
  display: block; /* Fix for logo not showing */
}

#unity-progress-bar-empty {
  width: 80%;
  height: 24px;
  margin: 10px 0;
  border: 1px solid white;
  padding: 2px;
  display: none;
}

#unity-progress-bar-full {
  width: 0%;
  height: 100%;
  background: white;
}

.light #unity-progress-bar-empty {
  border-color: black;
}

.light #unity-progress-bar-full {
  background: black;
}

#unity-fullscreen-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  background: url('TemplateData/fullscreen-button.png') no-repeat center;
  background-size: contain;
  cursor: pointer;
  z-index: 100;
}

#message {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  padding: 20px 10px;
  max-width: 80%;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
  padding-top: 2em;
}

.spinner {
  font-size: 10px;
  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;
  animation: spinner-spin 1.1s infinite linear;
  transform: translateZ(0);
}

@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile specific styles */
@media screen and (max-width: 768px) {
  .centered-logo {
    max-width: 60%;
  }
  
  #unity-loading-bar {
    padding: 10px;
  }
}
