a-scene {
  display: block;
  position: relative;
  height: 100%;
  width: 100%;
}

a-assets, a-scene audio, a-scene img, a-scene video {
  display: none;
}

.a-enter-vr-modal,
.a-orientation-modal {
  font-family: Consolas, Andale Mono, Courier New, monospace;
}

.a-enter-vr-button,.a-enter-vr-modal,
.a-enter-vr-modal a{color:#fff;user-select:none;outline:0}


.a-enter-vr-modal a {
  border-bottom: 0px solid #fff;
  padding: 2px 0;
  text-decoration: none;
  transition: .1s color ease-in;
}

.a-enter-vr-modal a:hover {
  background-color: #fff;
  color: #111;
  padding: 2px 4px;
  position: relative;
  left: 0px;
}

.a-enter-vr {
  font-family: sans-serif, monospace;
  font-size: 13px;
  width: 100%;
  font-weight: 200;
  line-height: 16px;
  position: fixed;
  right: 2%;
  bottom: 2%;
}

.a-enter-vr-button,
.a-enter-vr-modal,
.a-enter-vr-modal a {
  color: #fff;
  user-select: none;
  outline: 0;
}

.a-enter-vr-button {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%230800a1' viewBox='0 0 16 16'%3e%3cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm5.937 7 1.99-5.999H6.61L5.277 9.708H5.22L3.875 5.001H2.5L4.508 11zM8.5 5.001V11h1.173V8.763h1.064L11.787 11h1.327L11.91 8.583C12.455 8.373 13 7.779 13 6.9c0-1.147-.773-1.9-2.105-1.9H8.5z'/%3e%3cpath d='M9.673 5.933v1.938h1.033c.66 0 1.068-.316 1.068-.95 0-.64-.422-.988-1.05-.988z'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 58% 58%;
  border: 1px solid rgba(8, 0, 161, 0.16);
  bottom: 0;
  box-shadow: 0 12px 28px rgba(8, 0, 161, 0.18);
  cursor: pointer;
  min-width: 8.5vmin;
  min-height: 8.5vmin;
  padding-right: 0;
  padding-top: 0;
  position: absolute;
  right: 0;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  z-index: 9999;
  border-radius: 18px;
  touch-action: manipulation;
}

.a-enter-vr-button:active,
.a-enter-vr-button:hover {
  background-color: #f7f8ff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(8, 0, 161, 0.24);
}

.a-enter-vr-button.resethover {
  background-color: #ffffff;
}

[data-a-enter-vr-no-webvr] .a-enter-vr-button {
  border-color: rgb(255, 255, 255);
  opacity: .65;
}

[data-a-enter-vr-no-webvr] .a-enter-vr-button:active,
[data-a-enter-vr-no-webvr] .a-enter-vr-button:hover {
  background-color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

[data-page='VR.html'] .footer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.footer .about-btn {
  z-index: 11;
  right: 20px;
  top: 20px;
  color: #3133f5;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: absolute;
  display: block;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 2.2vmin;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
}

.footer__top-left {
  z-index: 11;
  left: 20px;
  top: 20px;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: calc(100vw - 280px);
  pointer-events: auto;
}

.footer .about-btnn {
  color: #3133f5;
  padding-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  position: relative;
  display: block;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(24px, 3.2vmin, 52px);
  line-height: 1.05;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  pointer-events: auto;
}

.language-toggle {
  z-index: 11;
  left: 0;
  top: 0;
  position: absolute;
  display: flex;
  gap: 8px;
  margin: 66px 20px 20px;
}

.language-toggle-button {
  appearance: none;
  border: 1px solid rgba(8, 0, 161, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #3133f5;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: "Roboto", sans-serif;
  font-size: 1.35vmin;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.language-toggle-button.is-active {
  background: #3133f5;
  color: #ffffff;
  border-color: #3133f5;
}

@media screen and (max-width: 620px) {
  [data-page='VR.html'] .footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer__top-left {
    position: relative;
    left: auto;
    top: auto;
    gap: 8px;
    max-width: calc(100vw - 10px);
    margin: 5px 5px 0 5px;
    order: 1;
  }

  .footer .about-btn {
    margin: 0 5px 0 5px;
    color: #3133f5;
    font-size: 3.3vmin;
    left: 0;
    top: 0;
    position: relative;
    order: 2;
  }

  .footer .about-btnn {
    color: #3133f5;
    font-size: 5.2vmin;
    position: relative;
    margin: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .footer .credits {
    order: 3;
  }

  .language-toggle-button {
    font-size: 2.8vmin;
    padding: 6px 10px;
  }
}


@media screen and (max-width: 620px) {
  .footer .terms {
    margin: 0 0 20px 0;
    text-align: left;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .footer .credits {
    text-align: justify !important;
  }

  .footer .credits:after {
    content: '';
    display: inline-block;
    width: 100%;
    margin: 0 20px 30px 20px;
  }

  .footer .credits li {
    display: inline-block;
    margin: 0 0 0 0 !important;
  }
}

.footer .credits {
  z-index: 11;
  position: absolute;
  width: calc(40% - 40px);
  min-width: 1vmin;
  left: 0;
  bottom: 0;
  padding: 0;
  text-align: left;
  margin: 0 1vmin 0.8vmin 1vmin;
  pointer-events: auto;
}

.footer .credits li {
  display: inline-block;
  margin: 0 0.5vmin 0 0.5vmin;
}

.footer .credits li:nth-of-type(1) img {
  width: 8.5vmin;
  height: 8.5vmin;
}

.footer .credits li:nth-of-type(2) img {
  width: 8.5vmin;
  height: 8.5vmin;
}

@media screen and (max-width: 460px) {
  .footer .credits li:nth-of-type(1) img {
    height: 15vmin;
    width: 15vmin;
    position: absolute;
    left: 10px;
    bottom: 10px;
  }
  .footer .credits li:nth-of-type(2) img {
    height: 15vmin;
    width: 15vmin;
    position: absolute;
    left: 21vmin; /* Adjusted this value */
    bottom: 10px;
  }
}


.footer .credits li:nth-of-type(3) img {
  width: 8.5vmin;
  height: 8.5vmin;
}

@media screen and (max-width: 460px) {
  .footer .credits li:nth-of-type(3) img {
    width: 8.5vmin;
  }
}

/* Custom styles */
body {
  background-color: #c2c2c2;
}

#loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/NewBackground00.jpg);
  background-color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

#loading-screen .spinner {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  border: 4px solid #ffffff;
  border-top-color: #3133f5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


.loading-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #3133f5;
  font-size: 40px;
  opacity: 100%;
  font-weight: 200;
  font-family: "Roboto", sans-serif;
}

/* Animation for the loading spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* Pop-up styles */
.mobile-popup {
  display: none; /* Default to hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 28px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 100; /* To ensure it's above everything else */
  justify-content: center;
  align-items: center;
}

.mobile-popup-content {
  background: #ffffff;
  padding: 30px 24px 24px;
  border-radius: 24px;
  border: 1px solid rgba(8, 0, 161, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  width: min(100%, 360px);
  max-width: 360px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  position: relative;
  overflow: hidden;
}

.mobile-popup-content::before {
  content: none;
  pointer-events: none;
}

.mobile-popup-content h2 {
  position: relative;
  margin: 0 0 6px;
  color: #3133f5;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.popup-kicker {
  position: relative;
  margin: 0 0 20px;
  color: rgba(8, 0, 161, 0.78);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-popup-content p {
  position: relative;
  margin: 0 0 10px;
  color: #111;
  font-size: 15px;
  line-height: 1.5;
}

.popup-note {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 0, 161, 0.04);
  color: rgba(17, 17, 17, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.mobile-popup-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 156px;
  margin: 0 0 20px;
  padding: 0 50px;
}

.popup-image-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(8, 0, 161, 0.14);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.popup-missing-image {
  display: block;
  width: 100%;
  max-width: 180px;
  max-height: 92px;
  object-fit: contain;
}

.placeholder-reminder {
  color: #169b2f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

#joystickLeftZone .back,
#joystickRightZone .back {
  background: rgba(13, 0, 255, 0.08) !important;
  border: 2px solid rgba(13, 0, 255, 0.5) !important;
  box-shadow: inset 0 0 0 1px rgba(13, 0, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.08);
}

#joystickLeftZone .front,
#joystickRightZone .front {
  background: linear-gradient(180deg, rgba(13, 0, 255, 0.92) 0%, rgba(8, 0, 161, 0.94) 100%) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


button#closePopup {
  position: relative;
  background: #3133f5;
  color: #ffffff;
  border: 1px solid #3133f5;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
  min-width: 180px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

button#closePopup:hover {
  background: #060080;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

@media screen and (max-width: 620px) {
  .mobile-popup {
    padding: 0 32px;
  }

  .mobile-popup-content {
    width: 100%;
    max-width: 320px;
    padding: 22px 16px 18px;
  }

  .mobile-popup-content h2 {
    font-size: 24px;
  }

  .mobile-popup-content p {
    font-size: 15px;
  }

  .popup-note {
    font-size: 12px;
    padding: 9px 10px;
  }

  .mobile-popup-visual {
    min-height: 142px;
    padding: 0 42px;
  }

  .popup-image-placeholder {
    min-height: 118px;
    padding: 16px 14px;
  }

  .popup-missing-image {
    max-width: 150px;
    max-height: 80px;
  }

  .placeholder-reminder {
    font-size: 12px;
  }
}
