html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
}

#loading-cover {
    background-image: url(bg.PNG);
    background-size: cover;
    background-repeat: no-repeat;
    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-progress-bar-full {
    width: 80%; /* Adjust as needed */
    height: 48px;
    border: 1px solid white;
    position: relative; /* Needed for absolute positioning of children */
    background: white; /* Background color of the full bar */
}

#unity-progress-bar-empty {
    width: 100%; /* Fill the full width */
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Background color for the empty bar */
    position: relative; /* For absolute positioning of children */
}

h3 {
    font-family: "Fredoka";
    color: whitesmoke;
    text-align: center;
    text-shadow: 
        -1px -1px 0px rgba(0, 0, 0, 0.7),  
         1px -1px 0px rgba(0, 0, 0, 0.7),  
        -1px  1px 0px rgba(0, 0, 0, 0.7),  
         1px  1px 0px rgba(0, 0, 0, 0.7);
    position: absolute; /* Position it absolutely within the empty bar */
    left: 50%; /* Center horizontally */
    top: 50%; /* Center vertically */
    transform: translate(-50%, -50%); /* Offset back by half its width and height */
    margin: 0; /* Remove any default margin */
}

#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);
  }
}
