@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 */
}

/* body, html { margin: 0; padding: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; } */

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

#background-container {
	position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
	background-image: url("./images/bkg.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat;
	}

#top-right-image { position: absolute; top: 0; right: 1.3rem; z-index: 9999; width: auto; height: 5rem; opacity: 0.6; }

.instructions-banner { position:absolute; z-index: 1000; width: 24rem; height: auto; top: 0.5rem; left:0.5rem; }
.instructions-banner-back-home { float: left; width: 2.1rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-back-home img { width: 1.2rem; height: 1.2rem; }

.instructions-banner-3d-2d { float: left; width: 2rem; height: 1.2rem; margin-left: 9.5rem; text-align: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.3); }
.instructions-banner-3d-2d span { font-family: 'Mulish', sans-serif; font-weight: 500; font-size: 0.9rem; text-decoration: none; color: rgba(255,255,255,0.7); }

.instructions-banner-reload { float: left; width: 2rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-reload img { width: 1rem; height: 1rem; margin: 0.1rem 0 0.1rem 0; opacity: 0.7; }

.instructions-banner-show-hide { float: left; width: 2rem; height: 1.2rem; display: flex; justify-content: center; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-banner-show-hide img { width: 1.2rem; height: 1.2rem; opacity: 0.7; }

.instructions-wrapper{ position:absolute; z-index: 1; width: 15.5rem; height: auto; top: 1.7rem; left:0.5rem; padding: 1rem; border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; background-color: rgba(0,0,125,0.7); }
.instructions-hidden { display: none; }

.instructions-action { float:left; height: 3.7rem; width: 8rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.instructions-action img { height: 3.3rem; width: auto; margin: auto; }
.instructions-equal { float:left; height: 3.7rem; width: 2.3rem; margin: 0; display: flex; align-items: center; justify-content: center; font-family: 'Mulish', sans-serif; font-style: 500; font-size: 2rem; color: rgba(200,200,255,0.6); }
.instructions-result { float: left; height: 3.7rem;  width: 5.2rem; margin: 0; display: flex; align-items: center; justify-content: center; }
.instructions-result img { height: 3.3rem; width: auto; margin: auto; }

.instructions-mouse-title { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; position: relative; }
.instructions-mouse-title img { height: 45px; width: auto; z-index: 10; }
.instructions-mouse-title::before { content: ""; position: absolute; top: 22px; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-keyboard-title { display: flex; justify-content: center; align-items: center; width: 100%; height: auto; margin: 1rem auto 1rem auto; position: relative; }
.instructions-keyboard-title img { height: 45px; width: auto; z-index: 10; }
.instructions-keyboard-title::before { content: ""; position: absolute; bottom: 50%; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); transform: translateY(50%); z-index: 1; }

.instructions-spacing { float: left; width: 100%; height: 1rem; }

.instructions-separator { float: left; width: 100%; height:4px; margin: 1rem 0 1rem 0; background-color: rgba(255,255,255,0.3); }
.instructions-commander { float: left; width: 100%; height: auto; font-family: 'Mulish', sans-serif; font-weight: 500; font-size: 0.8rem; color: #fff; letter-spacing: 0.1em; line-height: 2rem; text-align: center; background-color: rgb(0,0,125); }
.instructions-commander a { color: #fff; text-decoration: underline; }

/* iframe { width: 100%; height: 100%; border: none; background: transparent; z-index: 0; visibility: hidden; } */

iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  z-index: 0;
}

#loading-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-family: Arial, sans-serif; color: #333; display: flex; flex-direction: column; align-items: center; z-index: 1; }

/******************************************* Fix */

/* Force the instruction banner to be above anything else and clickable */
.instructions-banner {
  position: absolute;   /* keep it pinned */
  top: 0.5rem;          /* keep your original placement */
  left: 0.5rem;
  z-index: 5;
  pointer-events: auto;
}

/* Ensure the clickable areas actually receive mouse events */
.instructions-banner a,
.instructions-banner a * {
  pointer-events: auto;
  cursor: pointer;
}

/* #content-frame { position: relative;  z-index: 0; } */

#content-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  z-index: 0;
  display: block;
}

.instructions-banner a,
.instructions-banner a * {
  cursor: pointer;
}


/* BANNER ******************************************************************************************************/

.banner { width: 100%; height: 6rem; margin-bottom: 2rem; text-decoration:not() }
.banner-logo { float:left; width: auto; height: 6rem; }
.logo { width: auto; height:6rem; }
.banner-logo-titles { text-align:center; font-family: 'Mulish', sans-serif; letter-spacing: 0.06rem; font-size: 0.9rem; color: #DDD; text-decoration:not() }
.banner-social { float:right; width: 10.5rem; height: auto; }
.social-youtube { float: left; width: 2rem; height: 2rem; padding: 0 0.5rem 0rem 0.5rem; }
.social-youtube-logo { width: 2rem; height: 2rem; }
.social-facebook { float: left; width: 2rem; height: 2rem; padding: 0 0.5rem 0rem 0.5rem; }
.social-facebook-logo { width: 2rem; height: 2rem; }
.social-tiktok { float: left; width: 2rem; height: 2rem; padding: 0 0.5rem 0 0.5rem; }
.social-tiktok-logo { width: 2rem; height: 2rem; }

.banner-menu { float:left; width:auto; height:auto; margin: 1rem 2rem 0 0; }

/* BANNER ******************************************************************************************************/

/* Banner Styling (Initially at the top of the page) */
#top-banner {
  position: fixed;
  top: 0; /* Initially at the top of the page */
  left: 0;
  right: 0;
  background: #fff; /* Solid white background */
  color: #333; /* Adjust text color for contrast */
  padding: 10px 20px; /* Padding for spacing */
  width: 100%; /* Ensure full width */
  height: 140px; /* Set new banner height */
  text-align: center;
  z-index: 1000;
  transform: translateY(0); /* Initially visible */
  transition: transform 3s ease-out; /* Smooth sliding effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a slight shadow for a cleaner look */
}

/* When the banner is hidden (slides up) and leaving the bottom 10px visible */
#top-banner.hidden {
  transform: translateY(-100%); /* Moves the banner off the screen, leaving 10px visible */
}

/* Pseudo-element to make the last 20px transparent */
#top-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px; /* Make the bottom 20px transparent */
  background-color: transparent; /* Transparent background */
  z-index: 1001; /* Ensure it stays on top of the background */
}

/* Down arrow positioning for controlling the banner */
#down-arrow {
  position: fixed; /* Fixed positioning so it's always visible */
  bottom: -25px; /* Move the arrow 15px lower */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust the centering */
  display: block; /* Make sure it's always visible */
  opacity: 1;
  cursor: pointer; /* Change cursor to hand when hovering */
}

/* Styling for the down arrow (64x24 pixel SVG image) */
#down-arrow img {
  width: 64px; /* Set the width of the arrow to double */
  height: 24px; /* Set the height of the arrow to double */
}

/* Hover effect for the arrow */
#down-arrow:hover img {
  opacity: 0.8; /* Slight hover effect */
}

/* MENU ***************************************************************************************************/

nav { display: flex; justify-content: space-between; align-items: center; background-color: #fff; margin: 1.5rem 0 0 9rem; }
nav ul { list-style: none; display: flex; padding: 0 0 7px 0; }
nav ul li { margin: 0; padding: 0; width: 100%; box-sizing: border-box; }
nav ul li a { color: white; text-decoration: none; font-size: 18px; display: block; height: 35px; padding: 0 20px 0 20px; line-height: 1.75; font-family: Arial Black; color: #DDDDFF; }

/* Style for the hamburger menu icon */
.menu-icon { display: none; font-size: 28px; color: blueviolet; cursor: pointer; }

/* Default state (pale blue) */
#menu li a{ color:#CCCCCC; text-decoration:none; transition:color .25s ease; }

/* Hover + click */
#menu li a:hover,
#menu li a:active{ color:#000066; }

/* Current page */
#menu li a.active{ color:#000066; font-weight:bold; /* optional */ }
