html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
    background: #ffffff; /* Set page background to white */
}
#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    /* Force white background instead of templated color */
    background: #ffffff;
}
#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 {
    width: 55%;
    max-width: 420px;
    margin: 0 auto 8px auto; /* center and small gap below */
    text-align: center;
}
#unity-logo img {
    width: 100%;
    height: auto;
    display: block;
}
#unity-progress-bar-empty {
    width: 55%; /* Reduced relative width */
    max-width: 420px; /* Prevent overly wide bar on large screens */
    height: 10px; /* Reduced height */
    margin: 10px auto 20px auto; /* Center horizontally */
    text-align: left;
    border: 1px solid #000; /* Thin black border */
    padding: 0; /* Remove inner padding to keep height slim */
    border-radius: 6px; /* Rounded corners */
    overflow: hidden; /* Clip inner fill to rounded corners */
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #E75112; /* Brand orange */
    border-radius: 6px 0 0 6px; /* Match outer radius while loading */
    transition: width 0.25s ease; /* Smooth growth */
}
/* Keep same appearance in light mode */
.light #unity-progress-bar-empty { border-color: #000; }
.light #unity-progress-bar-full { background: #E75112; }

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


