@font-face {
  font-family: 'MyCustomFont';
  src: url('font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #1a1a1a;
  overflow: hidden;
}

#unity-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

#unity-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

#rotate-device > img {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.rotate-reminder {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;              /* adjust as needed */
  box-sizing: border-box;        /* include padding in width */
  display: flex;
  align-items: center;
  gap: 12px;                     /* space between icon & text */
 padding: 16px 20px 16px 40px;
   background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

/* placeholder toggle image */
.rotate-toggle {
  width: 40px;
  height: auto;
  margin-right: 16px;
  flex-shrink: 0;
}

/* your “remember” text */
.rotate-text {
  flex: 1;
  color: #f3c67d;
  font-family: 'MyCustomFont', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.3;    
}

#loading-screen {
  position: absolute;
  inset: 0;
  /* full-screen */
  overflow: hidden;
  /* hide any overflow from the rotation */
  z-index: 0;
  /* create stacking context */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#loading-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* Use the viewport’s width/height swapped so that after rotation it exactly fills */
  width: 100vh;
  height: 100vw;
  background: url('background.jpg') no-repeat center center;
  background-size: cover;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(-90deg);
  z-index: -1;
  /* push behind your content but above page background */
  pointer-events: none;
}


#loading-gif {
  position: absolute;
  top: 75%;
  /* 50% (center) + 25% downward */
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(50px, 10vw, 120px);
  /* adjust size */
  height: auto;
}

#loading-text {
  position: absolute;
  top: calc(75% + 60px);
  /* gif’s top (75%) + half its height (~50px) + 10px margin */
  left: 50%;
  transform: translateX(-50%);
  color: #00FFFF;
  font-size: clamp(0.4rem, 2vw, 2rem);

  text-shadow:
    0 0 8px #00FFFF,
    0 0 16px #00FFFF,
    0 0 24px #00FFFF,
    0 0 32px #00FFFF;
  white-space: nowrap;
  font-family: 'MyCustomFont', sans-serif;
}


@media only screen and (orientation: portrait) {
  #unity-container {
    display: none !important;
  }

  #loading-screen {
    display: none;
  }

  #rotate-device {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
  }
}

@media only screen and (orientation: landscape) {
  #unity-container {
    display: block !important;
  }

  #loading-screen {
    display: block;
  }

  #rotate-device {
    display: none !important;
  }
}
