html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
  height: 100%;
  background-color: #231F20;
}
canvas {
  display: block;
}
body {
  margin: 0;
}
#unity-container {
  width: 100%;
  height: 100%;
}
#unity-canvas {
  width: 100%;
  height: 100%;
  background: url("LoadingBG.jpg") no-repeat center center / 100% 100%;
  background-size: auto calc(100% + 65%);
}
#loading-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: url("LoadingBG.jpg") no-repeat center center / 100% 100%;
  background-size: auto calc(100% + 65%);
}
#unity-loading-bar {
position: fixed;
bottom: 16%;
left: 0;
right: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#unity-logo {
  text-align: center;
}
#unity-logo img {
  max-width: 80%;
}

:root {
--original-width: 90vw;
}


#unity-progress-bar-empty {
bottom: 20%;
width: var(--original-width);
height: 48px;
margin: 5px 10px 10px 5px;
text-align: left;
padding: 2px;
background: url("EmptyLoadingBar.png") no-repeat center center / 100% 100%;
border-radius: 36px;
overflow: hidden;
}

@media screen and (max-aspect-ratio: 9/14) {
#unity-progress-bar-empty {
  width: 90vw; /* For viewport aspect ratio >= 9:14 */
}
}

@media screen and (min-aspect-ratio: 9/14) {
#unity-progress-bar-empty {
  width: 25vw; /* For viewport aspect ratio < 9:14 */
}
}


#unity-progress-bar-full {
margin-top: 2px;
margin-bottom: 80px;
margin-left: 6px;
margin-right: 6px;
width: 0%;
height: 73%;
border-radius: 36px;
background: url("FullLoadingBar.png") no-repeat center bottom / cover;
}

.light #unity-progress-bar-empty {
  border-color: black;
}
.light #unity-progress-bar-full {
  background: black;
}

#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);
}
}



/* CSS */

.button-container {
position: absolute;
top: 10px;
right: 10px;
display: flex;
flex-direction: column;
align-items: flex-end;
}

.button-4 {
  margin: 5px;
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 3px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 10px;
  font-weight: 500;
  line-height: 5px;
  list-style: none;
  padding: 6px 6px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.button-4:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-4:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}

.button-4:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button-4:focus {
  outline: 1px transparent;
}

.button-4:before {
  display: none;
}

.button-4:-webkit-details-marker {
  display: none;
}
