html {
  font-size: 10px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #f9faf7c1;
}

body,
html {
  margin: 0;
  padding: 0;
  overflow: hidden;

  height: 100vh;
  height: 100svh;

  width: 100vw;
  width: 100svw;

  position: relative;
}
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.keep-aspect {
  aspect-ratio: 16 / 9;
}

@media screen and (orientation: landscape) and (min-aspect-ratio: 16/9) {
  .keep-aspect {
    height: 100%;
    max-width: 100%;
  }
}
@media screen and (orientation: portrait) and (min-aspect-ratio: 16/9) {
  .keep-aspect {
    height: 100%;
    max-width: 100%;
  }
}

@media screen and (orientation: landscape) and (max-aspect-ratio: 16/9) {
  .keep-aspect {
    width: 100%;
    max-height: 100%;
  }
}

@media screen and (orientation: portrait) and (max-aspect-ratio: 16/9) {
  .keep-aspect {
    width: 100%;
    max-height: 100%;
  }
}

.map-container {
  font-size: 7vh;
  font-size: 7svh;
}

.home-btn {
  font-size: 7vh;
  font-size: 7svh;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.map-img {
  opacity: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: filter 0.5s ease-in-out, scale 0.5s ease-in-out,
    opacity 0.2s ease-in-out, transform 0.5s ease-out;
  filter: blur(20px);
  scale: 3;
  z-index: 0;
}
.map-img.three-d {
  transform: perspective(50rem) rotateX(66deg) translateY(0);
}
.map-img.active {
  opacity: 1;
  filter: blur(0px);
  scale: unset;

  transition: filter 0.5s ease-in-out, scale 0.5s ease-in-out,
    opacity 0.5s ease-in, transform 0.5s ease-out;
}
.map-img.active.three-d {
  transform: perspective(50rem) rotateX(0) translateY(0);
}
.map-container {
  height: 100%;
  width: 100%;
}

.vid {
  position: absolute;
  bottom: 0;
  left: 0;

  min-height: 100%;
  min-width: 100%;
  height: 100%;
  width: 100%;

  visibility: hidden; /* Initially hide videos but keep them in layout for preloading */
  z-index: 0;
}

.vid.active {
  visibility: visible; /* Show the active video */
  z-index: 1; /* Ensure the active video is on top */
}

.overlay.hidden {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transform: translateY(5rem);
  z-index: -1;
}
.overlay.hidden.cancel-animation {
  transform: unset;
  z-index: 0;
}
.overlay.hidden.cancel-animation.active {
  transform: translateY(-2rem);
  z-index: 2;
}

.overlay {
  position: absolute;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease,
    opacity 0.5s ease-in, filter 0.5s ease-out, transform 0.5s ease-out;

  z-index: 2;
}

.overlay.debug {
  box-sizing: border-box;
  border-color: orangered;
}

/* Highlight effect on hover */
.overlay.debug:hover {
  border-color: yellow;
  background-color: rgba(255, 255, 255, 0.1); /* Slight transparency */
}

.no-select {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.no-select:focus {
  outline: none !important;
}

/* Define each zone */
.area1 {
  top: 9.4%;
  left: 54%;
  width: 16.5%;
  height: 58%;
}
.area2 {
  top: 9.4%;
  left: 36.6%;
  width: 17.5%;
  height: 58%;
}
.area3 {
  top: 9.4%;
  left: 18.7%;
  width: 18%;
  height: 41%;
}
.area4 {
  top: 50.5%;
  left: 18.7%;
  width: 18%;
  height: 34.5%;
}
.area5 {
  top: 9.4%;
  left: 70.4%;
  width: 10.7%;
  height: 58%;
}

.circle {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;

  color: #eee;
  font-size: 0.28em;
  text-align: center;
  vertical-align: text-bottom;
  line-height: 1.8;
  flex-shrink: 0;
  align-items: center;
}

.circle-number {
  background-color: #507178;
  z-index: 1;
}

#o4 .circle {
  top: 3.8em;
}

.circular-progress {
  position: absolute;
  scale: 1.2;
  border-radius: 50%;
  background-color: #0000;
}

.percentage {
  position: relative;
}

#o4 .circular-progress {
  top: 0.4em;
}

#o5 .circular-progress {
}

.pulse {
  animation: pulse-animation 3s infinite;
  animation-duration: 3s;
  animation-timing-function: ease;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: none;
  animation-play-state: running;
  animation-name: pulse-animation;
  animation-timeline: auto;
  animation-range-start: normal;
  animation-range-end: normal;
}
.pulse.unloaded {
  box-shadow: 0 0 0 !important;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 #0000004d;
  }

  50% {
    box-shadow: 0 0 #0000004d;
  }

  to {
    box-shadow: 0 0 0 40px #0000;
  }
}

body {
  /* background-color: #065b80; */
  background-color: #0e5276;
}

.label {
  width: 2.3em;
  height: 0.7em;
  /* background-color: orange; */
  background-color: #05343c;
  position: relative;
  top: 18.5vh;
  top: 18.5svh;
  margin: 0 auto;
  border-radius: 999px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0.1em;
  padding-right: 0.1em;
  gap: 1.1rem;
  line-height: 1.3;
}

@media screen and (max-aspect-ratio: 14/9) {
  .label {
    gap: 0.6rem;
  }
}
@media screen and (min-aspect-ratio: 3/1) {
  .label {
    gap: 0.6rem;
  }
}

.label-mobile {
  display: none;
}

.label .label__text {
  font-size: 1.2vh;
  font-size: 1.2svh;
  color: #f9faf7c1;
  flex-grow: 1;
}

@media screen and (max-aspect-ratio: 16/9) {
  .label .label__text {
    font-size: 0.6965vw;
    font-size: 0.6965svw;
  }
  .map-container {
    font-size: 4vw;
    font-size: 4svw;
  }
  .home-btn {
    font-size: 4vw;
    font-size: 4svw;
  }
}

#o4 .label {
  top: 13vh;
  top: 13svh;
}
#o5 .label {
  left: -2%;
  width: 2.2em;
}
#o5 .label__text {
  padding-left: 1.5em;
}

.label-mobile {
  background-color: purple;
  position: relative;
}

.label-mobile .circle {
  position: absolute;
  font-size: 3rem;
  background-color: #05343c;
  left: 50%;
  transform: translateX(-50%);
}

.label-mobile .circular-progress {
  left: calc(50% + 0.2em);
  background-color: #0000;
}

#o4 .label-mobile .circle {
  top: -0.51em;
}

.rotate-alert {
  display: none;
}
.map-container.active {
  display: unset;
}

.info.active {
  opacity: 1;
  filter: blur(0px);
  transform: translateX(-50%);
}
.info p {
  margin: 0;
  white-space: nowrap;
}

.logo {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  z-index: 500;
  position: absolute;
  left: 4.9rem;
  top: 2.3rem;
  max-height: 5.6vh;
  max-height: 5.6svh;
  transition: filter 0.5s ease-out, opacity 0.2s ease-out,
    transform 0.5s ease-out;
  transform: translateY(-2rem);
  max-width: 25vh;
  max-width: 25svh;
}

.logo.active {
  opacity: 1;
  filter: blur(0px);
  transform: unset;
}

@media screen and (max-width: 600px) {
  .info {
    opacity: 0;
    filter: blur(10px);
    transform: translateX(-50%) translateY(1rem);
  }
}

.home-btn {
  opacity: 1;
  filter: blur(0);

  background-image: url(assets/homeBtn.png);
  background-size: cover;
  width: 2em;
  height: 2em;
  position: absolute;
  top: 0.3em;
  right: 0.3em;
  z-index: 9999;

  transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}
.home-btn.hidden {
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
}

.info {
  font-size: 2.38vh;
  font-size: 2.38svh;

  padding: 0.5em 1em;

  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out,
    transform 0.5s ease-out;
  transform: translateX(-50%) translateY(1rem);
  z-index: 0;

  pointer-events: none;

  position: absolute;
  bottom: 1em;
  left: 50%;
  background-color: #ffffff33;
  color: #eee;
  border-radius: 999px;

  text-align: center;
}

.info.cancel-animation {
  transition: unset;
}

.info {
  line-height: 1.4;
}

.video-container {
  height: 100%;
  width: 100%;
}

/* When .disabled class is applied, hide the spinner */
#spinner {
  z-index: 3;
}
#spinner.disabled {
  display: none;
}

.debug-message {
  position: absolute;
  bottom: 0;
  right: 0;
  color: yellow;
  font-size: 16px;
}

.new-loader {
  --loader-color: #2eb69c;
  --loader-shadow-color: #2eb69c;
  --loader-part-size: 24px;
  --loader-size: calc(var(--loader-part-size) * 3);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: var(--loader-size);
  height: var(--loader-size);
}
:root {
  --black-color: #000;
  --white-color: #fff;
  --brand-color: #006174;
  --brand-secondary-color: #3faba9;
  --hover-color: #017a92;
  --pressed-color: #006174;
  --text-main: var(--black-color);
  --text-light: var(--white-color);
  --bg-main: #f3f3f3;
}
.new-loader span:nth-child(1) {
  --translationValue: calc(var(--loader-part-size) / 4),
    calc(var(--loader-part-size) / 4);
  --translationValueWhenAssebled: var(--loader-part-size), 0px;
  --translationBeforeDisassembling: calc(var(--loader-part-size) / 4),
    calc(var(--loader-part-size) / 4 * -1);
  top: 0;
  left: var(--loader-part-size);
  animation-delay: 0s, 0.2s;
}

.new-loader span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--loader-part-size);
  height: var(--loader-part-size);
  background-color: var(--loader-color);
  box-shadow: 0 0 6px var(--loader-shadow-color);
  transform-origin: center center;
  animation: main 6s ease infinite, fading 6s ease infinite;
}
.new-loader span:nth-child(2) {
  --translationValue: calc(var(--loader-part-size) / 4),
    calc(var(--loader-part-size) / 4 * -1);
  --translationValueWhenAssebled: 0px, calc(var(--loader-part-size) * -1);
  --translationBeforeDisassembling: calc(var(--loader-part-size) / 4 * -1),
    calc(var(--loader-part-size) / 4 * -1);
  top: var(--loader-part-size);
  left: 0;
}
.new-loader span:nth-child(3) {
  --translationValue: calc(var(--loader-part-size) / 4 * -1),
    calc(var(--loader-part-size) / 4);
  --translationValueWhenAssebled: 0px, var(--loader-part-size);
  --translationBeforeDisassembling: calc(var(--loader-part-size) / 4),
    calc(var(--loader-part-size) / 4);
  top: var(--loader-part-size);
  right: 0;
  animation-delay: 0s, 0.4s;
}
.new-loader span:nth-child(4) {
  --translationValue: calc(var(--loader-part-size) / 4 * -1),
    calc(var(--loader-part-size) / 4 * -1);
  --translationValueWhenAssebled: calc(var(--loader-part-size) * -1), 0px;
  --translationBeforeDisassembling: calc(var(--loader-part-size) / 4 * -1),
    calc(var(--loader-part-size) / 4);
  bottom: 0;
  left: var(--loader-part-size);
  animation-delay: 0s, 0.6s;
}

@keyframes main {
  0%,
  25% {
    transform: rotate(0) translate(0);
  }
  33.3%,
  58.3% {
    transform: rotate(45deg) translate(var(--translationValue));
  }
  62.45% {
    transform: rotate(90deg) translate(var(--translationValueWhenAssebled));
  }
  66.6%,
  91.6% {
    transform: rotate(135deg) translate(var(--translationBeforeDisassembling));
  }
  100% {
    transform: rotate(180deg) translate(0);
  }
}
@keyframes fading {
  0% {
    opacity: 1;
  }
  8% {
    opacity: 0.2;
  }
  16.6%,
  33.2% {
    opacity: 1;
  }
  41.6% {
    opacity: 0.2;
  }
  50%,
  66.6% {
    opacity: 1;
  }
  74.9% {
    opacity: 0.2;
  }
  83.2%,
  100% {
    opacity: 1;
  }
}

@media (orientation: portrait) {
  body {
    width: 100vh;
    width: 100svh;
    height: 100vw;
    height: 100svw;
  }

  body {
    transform: rotate(90deg);

    transform-origin: right bottom;
    overflow-x: hidden;
    position: absolute;
    bottom: 0;
    right: 100%;
  }

  .logo {
    height: 4.25vw;
    height: 4.25svw;
  }
  .map-container {
    font-size: 7vw;
    font-size: 7svw;
  }
  .home-btn {
    font-size: 7vw;
    font-size: 7svw;
  }
  .label .label__text {
    font-size: 1.2vw;
    font-size: 1.2svw;
  }
  .label {
    top: 19vw;
    top: 19svw;
  }
  #o4 .label {
    top: 13vw;
    top: 13svw;
  }

  .info {
    font-size: 2.3vw;
    font-size: 2.3svw;
  }
}

@media (orientation: portrait) and (max-width: 500px) {
  .label {
    gap: 0.1em;
    height: 1em;
    width: unset;
    max-width: 80%;
  }

  #o5 .label__text {
    padding-left: 0.5em;
  }
  .label .label__text {
    font-size: 2vw;
    font-size: 2svw;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .label {
    gap: 0.1em;
    height: 1em;
    width: unset;
    max-width: 80%;
  }

  #o5 .label__text {
    padding-left: 0.5em;
  }

  .label .label__text {
    font-size: 2vh;
    font-size: 2svh;
  }
}
