@font-face {
  font-family: "DINPro";
  src: url("https://ubisoft-discovery-tour-cdn.ubisoft.com/discovery-tour/mirage-alula/TemplateData/dinpro.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #000 url("https://ubisoft-discovery-tour-cdn.ubisoft.com/discovery-tour/mirage-alula/TemplateData/background.png") center center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

#unity-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  /* aspect-ratio: 9/16; */
  /* max-width: 100%; */

  width: 100%;
}

/* @media (min-width: 767px) {
  #unity-container {
    aspect-ratio: 3/4;
  }
}

@media (min-width: 1023px) {
  #unity-container {
    aspect-ratio: 16/9;
  }
} */

#unity-canvas {
  background: transparent;
  display: block;
  width: 100%;
  height: 100%;
}

#unity-canvas:focus-visible {
  outline: none !important;
}

#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;

  backdrop-filter: blur(1px);
}

#loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#progress-text {
  color: #e1e0e0;
  font-family: "DINPro", sans-serif;
  font-size: 28px;
  text-align: center;
  z-index: 1;
}

#progress-container {
  position: relative;
  background: url("https://ubisoft-discovery-tour-cdn.ubisoft.com/discovery-tour/mirage-alula/TemplateData/acm_ui_object_bar_loading_background.png") no-repeat center /
    contain;
  width: 100%;
  max-width: 930px;
  height: 68px;
}

#progress-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  aspect-ratio: 792 / 20;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

#progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: url("https://ubisoft-discovery-tour-cdn.ubisoft.com/discovery-tour/mirage-alula/TemplateData/acm_ui_object_bar_loading.png") no-repeat left center / 100%
    100%;
}

#loading-message {
  color: #e1e0e0;
  font-family: "DINPro", sans-serif;
  font-size: 14px;
  display: none;
}

#dots::after {
  content: "";
  animation: ellipsis 2s infinite;
}

@keyframes ellipsis {
  0%,
  100% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
