/* Only enforce on puzzle pages */
	body.puzzle-mode::before {
	  content: "Please rotate your device to portrait mode";
	  position: fixed;
	  inset: 0;
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  background: rgba(0,0,0,0.9);
	  color: #fff;
	  font-size: 22px;
	  text-align: center;
	  z-index: 9999;
	  pointer-events: all;
	}

	@media screen and (orientation: portrait) {
	  body.puzzle-mode::before {
		content: none; /* remove overlay in portrait */
	  }
	}
	#cookie-banner {
	  position: fixed;
	  bottom: 45px;
	  left: 0;
	  width: 100%;
	  background: #1e1e2f;
	  color: white;
	  padding: 20px;
	  font-family: Arial, sans-serif;
	  z-index: 9999;
	  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
	}

	#cookie-box {
	  max-width: 800px;
	  margin: auto;
	  text-align: center;
	}

	#cookie-box p {
	  margin-bottom: 15px;
	  font-size: 16px;
	}

	.cookie-buttons button {
	  margin: 5px 10px;
	  padding: 10px 20px;
	  border: none;
	  font-weight: bold;
	  cursor: pointer;
	  border-radius: 4px;
	}

	#cookie-settings button {
	  margin-top: 15px;
	  padding: 10px 20px;
	  background: #28a745; /* Bright green */
	  color: white;
	  font-weight: bold;
	  border: none;
	  border-radius: 4px;
	  cursor: pointer;
	}

	.cookie-buttons button:first-child {
	  background: #28a745;
	  color: white;
	}

	.cookie-buttons button:last-child {
	  background: #ffc107;
	  color: #000;
	}

	#cookie-settings {
	  max-width: 800px;
	  margin: 20px auto 0;
	  background: #2d2d40;
	  padding: 20px;
	  border-radius: 8px;
	}

	#cookie-settings label {
	  display: block;
	  margin: 10px 0;
	  font-size: 15px;
	}

/* === Trivia Ready Popup Overlay === */
#trivia-ready-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75); /* Dimmed overlay */
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease forwards;
}

/* === Inner Content Box === */
#trivia-ready-popup .popup-content {
  background: rgba(30, 30, 60, 0.95);
  border: 2px solid #00e5ff;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
  padding: 10px 15px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #fff;
  animation: slideUp 0.5s ease forwards;
  position: relative;
  overflow: hidden; /* clip the rain inside */
}

/* === Question Mark Rain === */
.question-rain {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; /* clicks pass through */
  z-index: 0; /* sits behind your text/button */
}

.question-rain span {
  position: absolute;
  top: -50px;
  color: #00e5ff;
  opacity: 0.8;
  font-size: 24px;
  animation: fall 5s linear infinite;
  text-shadow: 0 0 8px #00e5ff;
}

@keyframes fall {
  to {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

/* === Headline === */
#trivia-ready-popup h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  margin-bottom: 15px;
  color: #00e5ff;
  text-shadow: 0 0 8px #00e5ff;
  position: relative;
  z-index: 1; /* keeps text above the rain */
}

/* === Body Text === */
#trivia-ready-popup p {
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

/* === CTA Button === */
#trivia-ready-popup button {
  background: #00e5ff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 12px #00e5ff, 0 0 20px #00e5ff inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
  animation: blink 1.2s infinite;
}

#trivia-ready-popup button:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px #00e5ff, 0 0 40px #00e5ff inset;
}

/* === Fade & Slide Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes blink {
  0%, 100% {
    box-shadow: 0 0 12px #00e5ff, 0 0 20px #00e5ff inset;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 20px #00e5ff, 0 0 40px #00e5ff inset;
    opacity: 0.7;
  }
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #003ba3;
  border-top: 2px solid #00e5ff;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 6px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 229, 255, 0.2);
}

.mobile-nav a {
  text-align: center;
  font-size: 11px;
  color: #ffffff;
  text-decoration: none;
  flex-grow: 1;
  font-family: 'Orbitron', sans-serif;
}

.mobile-nav img {
  width: 26px;
  height: 26px;
  margin-bottom: 2px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Hide on desktop */
@media (min-width: 768px) {
  .mobile-nav {
    /*display: none;*/
  }
}

/* =========================
   Desktop-only footer nav
   ========================= */
@media (min-width: 768px) {
  /* Keep full-width bar, but center the buttons as a tight group */
  .mobile-nav {
    display: flex;
    justify-content: center;   /* center the set of items */
    align-items: center;
    gap: 28px;                 /* consistent spacing between icons */
    padding: 12px 16px;        /* add some breathing room */
  }

  /* Do NOT let each item stretch to fill width */
  .mobile-nav a {
    flex: 0 0 auto;            /* override any flex:1 from mobile styles */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
  }

  /* Lock icon size on desktop so they don't look tiny/spread out */
  .mobile-nav img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
  }

  .mobile-nav span {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    margin-top: 6px;
    white-space: nowrap;
  }
}

.offer-banner-link {
  display: block;
  max-width: 100%;
  margin: 20px auto;
  text-align: center;
  transition: transform 0.2s ease;
}
.offer-banner-link:hover {
  transform: scale(1.02);
}
.offer-banner-img {
  /*width: 100%;*/
  max-width: 300px; /* adjust for your layout */
  border-radius: 14px;
  border: 1px solid #000;
}

/* nwe header css 2025-09-23
***************************/
header {
      /*padding: 40px 20px 20px;*/
	  background-color:#fff8e1;
	  text-align: center;
	  vertical-align:top;
}
header img {
      width:120px;
      height: auto;
}
.ticker {
  width: 100%;
  height: 25px; /* adjust height */
  background: #0b1220; /* dark background */
  color: #ffffff;      /* text color */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  font: 500 14px/1.2 "Segoe UI", system-ui, sans-serif;
}

.ticker__track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 20s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__items {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticker__item {
  padding: 0 20px; /* spacing between items */
  position: relative;
}

.ticker__item + .ticker__item::before {
  content: "•";
  color: #4cc3ff; /* accent separator */
  position: absolute;
  left: -5px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (min-width: 768px) {
.ticker {
  width: 100%;
  height: 25px; /* adjust height */
  background: #0b1220; /* dark background */
  color: #ffffff;      /* text color */
  overflow: hidden;
  position: relative;  /* anchor for absolute track */
  display: flex;
  align-items: center;
  font: 500 14px/1.2 "Segoe UI", system-ui, sans-serif;
}

.ticker__track {
  /* CHANGED: take out of normal flow so it doesn't center */
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;

  display: inline-flex;     /* keep items in a row */
  align-items: center;
  white-space: nowrap;

  will-change: transform;
  /* Start just off the right edge, move fully past the left edge */
  transform: translateX(100%);
  animation: ticker-marquee 20s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__items {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticker__item {
  padding: 0 20px; /* spacing between items */
  position: relative;
}

.ticker__item + .ticker__item::before {
  content: "•";
  color: #4cc3ff; /* accent separator */
  position: absolute;
  left: -5px;
}

/* CHANGED: new keyframes (start at right, end off left) */
@keyframes ticker-marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-50%); }
}
}



/* Base (mobile first) */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 6px 12px;

  /* NEW: center and limit width so it doesn't stretch on desktop */
  width: 100%;
  max-width: 1100px;   /* pick your container width */
  margin: 0 auto;      /* centers the row */
}

.header-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.header-title h3 {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}
.header-title .highlight { color: #2b7cff; }

.header-user {
  font-size: 14px;
  font-weight: bold;
  color: #1f2b4d;
  cursor: pointer;
  white-space: nowrap;
}

.header-menu i {
  font-size: 32px;
  color: #1f2b4d;
  cursor: pointer;
}

.header-user .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b5998; /* Facebook blue, or match your site accent */
  text-decoration: none;
  margin-left: 2px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.header-user .social-icon:hover {
  color: #5b7bd5;
  transform: scale(1.1);
}

.header-user .social-icon i {
  font-size: 26px;
  line-height: 1;
}

/* Desktop tweaks */
@media (min-width: 768px) {
  .header-title h3 { font-size: 20px; }
  .header-title br { display: none; } /* one-line title on desktop */
  .header-logo img { height: 70px; }
  .header-row { max-width: 700px; } /* optional wider container */
}

@media (min-width: 1200px) {
  .header-row { max-width: 750px; } /* optional wider container */
}