/* ===============================
   CyberRanger Site – Global Styles
   =============================== */
/* Turn off the old static background on the home page */
.home-page { background-image: none !important; }

/* Parallax background layer (3D feel) */
.bg3d {
  position: fixed;
  inset: 0;
  background-image: url('/pexels-chris-f-38966-12478888.jpg'); /* <— your new image */
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: translate3d(0,0,0) scale(1.08); /* slight scale hides edges while moving */
  z-index: -1; /* behind everything */
}

/* Optional: disable motion on small screens to save battery */
@media (max-width: 700px) {
  .bg3d { transform: none !important; }
}


/* Title */
.game-title {
  font-size: 3em;
  margin-top: 100px;
  text-shadow: 2px 2px 5px #000;
}

/* Header container */
.hero {
  padding: 24px;
  overflow: visible; /* ensure wrapped menu rows are never clipped */
}

.home-page .hero .hero-inner,
.home-page .menu {
  max-width: 1000px;
  margin: 0 auto;
}

/* Headings & generic links used in content areas */
h1 { color: #006400; }

/* Global link look (for content links, not the top menu buttons) */
a {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #228B22;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}
a:hover { background-color: #2e8b57; }

/* Legacy nav styles (kept for subpages that use <nav> lists) */
nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #006400;
  font-weight: bold;
}
nav a:hover { text-decoration: underline; }

/* Buttons used elsewhere */
.start-btn {
  padding: 15px 30px;
  font-size: 1.5em;
  background-color: forestgreen;
  border: none;
  border-radius: 10px;
  color: white;
  margin-top: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.start-btn:hover { background-color: darkgreen; }

.terminal-link {
  color: lime;
  font-weight: bold;
  text-decoration: none;
}
.terminal-link:hover {
  text-decoration: underline;
  background-color: black;
}

/* ===== Home Page Menu (single, final version) ===== */
.home-page .hero { 
  padding: 24px; 
  overflow: visible; 
}

.home-page .hero .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;              /* space under the big title */
}

/* Buttons inside the menu */
.home-page .hero .menu a {
  /* override the global 'a' rule so menu buttons don’t inherit spacing */
  margin: 14px 18px;             /* vertical + horizontal spacing between buttons/rows */
  padding: 10px 16px;
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.2;

  background: #228B22;           /* standard button look */
  color: #ffffff;
  font-weight: bold;
  border: none;
}

/* Hover state */
.home-page .hero .menu a:hover {
  background: #2e8b57;
}

/* Make Ethics Quiz stand out */
.home-page .hero .menu a.quiz-btn {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: #ffffff;
}

/* Responsive niceties */
@media (max-width: 700px) {
  .home-page .hero .menu a {
    width: 90%;
    max-width: 280px;
    text-align: center;
  }
}
.menu a.active {
  box-shadow: 0 0 0 2px #fff inset, 0 6px 16px rgba(0,0,0,.25);
  filter: brightness(1.05);
}
/* Obvious highlight for the current page */
.menu a.active {
  background: #0ea5e9 !important;   /* bright cyan */
  color: #fff !important;
  box-shadow: 0 0 0 2px #ffffff inset, 0 10px 24px rgba(0,0,0,.35) !important;
  transform: translateY(-1px);
}

