body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    background-color: #000;
    background-image: url('/img/web/bg.webp');
    background-position: 50%;
    background-size: auto;
    background-attachment: fixed;
    color: #fff;
}

#unity-container { position: absolute }
#unity-container.desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.mobile { width: 100%; height: 100% }
#unity-container > div { position: relative; width: 100%; height: 100%; }
.mobile #canvas { width: 100%; height: 100% }
.mobile #footer { display: none }

#loading-area {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -webkit-mask-image: url('/img/web/loading_bg_mask.webp');
  mask-image: url('/img/web/loading_bg_mask.webp');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  z-index: 5;
}

#loading-bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#progress-container {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 10;
}

#progress-text {
  color: #fff9;
  width: 95vw;
  font-size: 5rem;
  text-align: center;
}

#progress-bar {
  width: 95%;
  height: 20px;
  margin-top: 1rem;
}

#progress-fill {
  width: 0%;
  height: 100%;
  background-color: #7e7e7e4d;
}

#loading-text {
  color: #fff8ee;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  margin-top: 2rem;
}

#footer {
  position: relative
}

#fullscreen-button {
  float: right;
  width: 38px;
  height: 38px;
  background: url('/img/web/fullscreen-button2.png') no-repeat center;
  background-size: cover;
  cursor: pointer;
  transition: opacity 2s;
}

#warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}
