html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
}

#openpage {
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #e5d7f2;
  margin: 0;
  padding: 0;
  z-index: 2;
  opacity: 1; /* Start fully visible */
  transition: opacity 1s ease; /* Smooth fade */
}

#openpage.fade-out {
  opacity: 0; /* Fade target */
  pointer-events: none; /* So clicks pass through when hidden */
}

#loading {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20vw;
  height: 20vw;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0; /* Add this */
  padding: 0; /* Add this */
}

#loading.fade-out {
  opacity: 0; /* Fade target */
  pointer-events: none; /* So clicks pass through when hidden */
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg); /* Keep translate first */
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg); /* Keep translate first */
  }
}

.rotating-icon {
  animation: spin 1s linear infinite;
}

#qrcode {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background-color: transparent;
  outline: transparent;
  z-index: 2;
}

#deviceMotionScreen {
  display: none;
}

#deviceMotionInstruction {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vw;
  background-color: transparent;
  outline: transparent;
  z-index: 9;
}

#deviceMotionBtn {
  position: fixed;
  top: 56%;
  left: 50%;
  width: 35vw;
  height: 35vw;
  transform: translate(-50%, -50%);
  background-color: transparent;
  border: none; /* Remove button border */
  outline: none;
  z-index: 10;
}

#deviceMotionBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  content: url(assets/allowDeviceMotionDefault.png);
}

#deviceMotionBtn:active img {
  content: url(assets/allowDeviceMotionPressed.png);
}

#fullertonLogo {
  position: fixed;
  top: 20%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  transform: translate(-50%, 0%);
  background-color: transparent;
  border: none; /* Remove button border */
  outline: none;
  z-index: 10;
  opacity: 1; /* Start fully visible */
  transition: opacity 1s ease; /* Smooth fade */
  display: none;
}

#fullertonLogo.fade-out {
  opacity: 0; /* Fade target */
  pointer-events: none; /* So clicks pass through when hidden */
}

#ttshLogo {
  position: fixed;
  bottom: 16%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  transform: translate(-50%, 0%);
  background-color: transparent;
  border: none; /* Remove button border */
  outline: none;
  z-index: 10;
  opacity: 1; /* Start fully visible */
  transition: opacity 1s ease; /* Smooth fade */
  display: none;
}

#ttshLogo.fade-out {
  opacity: 0; /* Fade target */
  pointer-events: none; /* So clicks pass through when hidden */
}

#bottomLogo {
  position: fixed;
  bottom: -37%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  transform: translate(-50%, -50%);
  background-color: transparent;
  border: none; /* Remove button border */
  outline: none;
  z-index: 100;
  opacity: 1; /* Start fully visible */
  transition: opacity 1s ease; /* Smooth fade */
}

#bottomLogo.fade-out {
  opacity: 0; /* Fade target */
  pointer-events: none; /* So clicks pass through when hidden */
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

