@font-face {
	font-family: 'Mulish'; font-style: normal; font-weight: 500; /* Medium weight */
	src: url('/fonts/mulish-medium.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}
@font-face {
	font-family: 'Mulish'; font-style: normal; font-weight: 900; /* Black weight */
	src: url('/fonts/mulish-black.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}
@font-face {
	font-family: 'Crimson Pro'; font-style: normal; font-weight: 400; /* Regular weight */
	src: url('/fonts/crimsonpro-regular.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}
@font-face {
	font-family: 'Crimson Pro'; font-style: normal; font-weight: 600; /* SemiBold weight */
	src: url('/fonts/crimsonpro-semibold.ttf') format('truetype');
	font-display: swap; /* Ensures text is visible during font loading */
}

/* Global Box Sizing */
* { box-sizing: border-box; }

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

.bkg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #01104B; z-index: -1; }

/******** NEW LOADER: Start *********************/


#loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(4px);
}

#loading-overlay.hidden{
  display: none;
}

.loading-box{
  width: min(420px, 86vw);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
}

.loading-title{
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.loading-detail{
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.9rem;
}

.loading-bar{
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.14);
}

.loading-bar-fill{
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.75);
  transition: width 0.2s linear;
}

.loading-percent{
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.85;
  text-align: right;
}

/******** NEW LOADER: Stop *********************/

#orientation-message { position: fixed; top: 5px; left: 5px; right: 5px; bottom: 5px; background-color: rgba(0, 0, 75, 0.75); z-index: 10001; display: none; pointer-events: none; }
#orientation-close { position: absolute; top: 10px; right: 15px; font-size: 1.8rem; color: white; cursor: pointer; z-index: 10000; pointer-events: auto; }
#orientation-inner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 1.5rem; font-family: sans-serif; text-align: center; padding: 1rem; max-width: 95%; box-sizing: border-box; }


.back { position: fixed; top: 0; left: 0; padding: 0.5rem; z-index: 9999; }
.back-home { float: left; width: auto; height: auto; margin-right: 1rem; color: white; z-index: 9999; }
.back-home a { width: 2rem; height: 1.2rem; color: white; /* if you want to be sure it's white */ }
.back-2d { float: left; width: auto; height: auto; text-align: center; }
.back-2d a { font-family: 'Mulish', sans-serif; font-weight: 400; font-size: 1rem; text-decoration: none; color: rgba(255,255,255,1); }

/* Nav arrows for scene rotation */
.nav-button { width: 6rem; height: 6rem; background: none; border: none; cursor: pointer; z-index: 10; padding: 0; position: absolute; }
.nav-left { top: 15rem; left: 5rem; transform: rotate(-20deg); }
.nav-right { top: 15rem; right: 5rem; transform: rotate(20deg); }

/* Wrapper for entire text frame with arrows */
.text-frame-wrapper {
  position: fixed; top: 1rem; left: 0; right: 0; margin: auto; display: flex; justify-content: space-between; align-items: center; width: 50%; z-index: 9999;
  border: 1px solid #ccc; background-color: rgba(0, 0, 0, 0.75); border-radius: 5px; transition: all 0.3s ease; box-sizing: border-box; padding: 0.5rem; }

.arrow-left, .arrow-right {  width: 2.5rem; height: 2.5rem; display: flex; justify-content: center; align-items: center; cursor: pointer; background: none; border: none; padding: 0; transform-origin: center center; }

/* Text Frame itself */
.event-frame { text-align: center; font-size: 1rem; color: white; box-sizing: border-box; padding: 0.5rem; }

.event-text { font-family: 'Mulish', sans-serif; font-weight: 400; font-size: 1rem; letter-spacing: 0.02rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5rem; padding: 0.5rem; }

.text-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }