html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
    font-family: "Heebo", sans-serif; /* Fallback to sans-serif if Roboto is not available */
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: #ffffff; /* Keeping the original canvas background */
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white; /* Setting loading cover background to white */
}
#unity-logo {
    position: absolute;
    top: 40%;  /* Adjusted to be a positive percentage down from the top of the container */
    left: 50%;
    transform: translate(-50%, -50%);  /* Center horizontally and adjust vertically for better alignment */
    width: auto;  /* Assuming the logo should size dynamically */
    max-width: 15%;  /* Limit the logo's max width to maintain proportions */
    text-align: center;
    z-index: 100;
}

#unity-logo img {
    width: 100%;  /* Use full width of the parent's calculated width */
    max-width: 100%;  /* Ensure the image does not exceed the parent's width */
    transform: scale(.4);  /* Adjust scale as needed */
    display: block;
    margin: 0 auto;
}
#unity-loading-bar {
    position: absolute;
    bottom: 40%;  /* Adjusted as per your design requirements */
    left: 50%;
    transform: translateX(-50%);
    width: 35%;  /* This is a percentage of #unity-container's width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #696969;
    z-index: 10; /* Keeps it below the logo if the logo is higher */
}

#unity-loading-bar::before {
    content: "";
    position: absolute;
    z-index: -1; /* Place the shadow behind the loading bar */
    bottom: 30%; /* Moves it directly below the loading bar, adjusting with a small offset if needed */
    left: 32%;
    width: 35%; /* Matches the width of the loading bar */
    height: 20%; /* Arbitrary height as a percentage of the loading bar's height */
    background: rgba(0,0,0,0.2); /* Shadow color and opacity */
    filter: blur(4px); /* Blurs the background to create a shadow effect */
    border-radius: 2px; /* Optionally round the corners */
}

#unity-progress-bar-empty {
    width: 35%;
    height: 18px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid black; /* Adjusted for visibility on white background */
    padding: 0px;
    background: white;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: black; /* Full progress bar color #696969 - grey */
}

#welcome-text {
    position: absolute;
    top: 47%;  /* Adjust this value based on the size and position of your logo */
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;  /* Adjust size as needed */
    color: #696969;  /* Set the text color to match your design */
    z-index: 99;  /* Ensure it is above other elements but below the logo if necessary */
    text-align: center;
    width: 100%;  /* Ensures text is centered properly */
    color: black;
}

#loading-text {
    position: absolute;
    bottom: 38%;  /* Adjust this value to position it right below the loading bar */
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;  /* Adjust size as needed */
    color: #696969;  /* Color to match your design */
    z-index: 5;  /* Ensure it doesn't overlap anything it shouldn't */
    text-align: center;
    color: black;
}

.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}



.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 rgba(255, 255, 255, 1); /* Ensuring spinner visibility on white background */
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
