
/* ===== Body & Layout ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS', sans-serif;
  color: white;
  text-align: center;
  overflow-x: hidden;
  background: linear-gradient(-45deg, #000, #0a1a0a, #001100, #000);
  background-size: 400% 400%;
  animation: fogMove 15s ease infinite;
}


/* ===== Fog animation ===== */
@keyframes fogMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* === Header ==== */
header {
  padding: 20px;
  background: none;
  border: none;
} 

/* ===== Glowing Animated Heading ===== */
header h1 {
  font-size: 100px; 
  color: #00ff00;
  text-align: center;
  margin-top: 20px;
  letter-spacing: 4px;
  font-weight: bold;
  text-shadow: 0 0 10px #00ff00,
               0 0 20px #00ff00,
               0 0 40px #00ff00;

  /* Glow Animation */
  animation: glowPulse 2s infinite alternate;
}

/* Glow pulse animation */
@keyframes glowPulse {
  0% {
    text-shadow: 0 0 10px #00ff00,
                 0 0 20px #00ff00,
                 0 0 40px #00ff00;
  }
  50% {
    text-shadow: 0 0 20px #00ff00,
                 0 0 40px #00ff00,
                 0 0 60px #00ff00;
  }
  100% {
    text-shadow: 0 0 30px #00ff00,
                 0 0 60px #00ff00,
                 0 0 100px #00ff00;
  }
}

header p {
  color: #7fff7f;
  font-style: italic;
  margin-top: 6px;
}


/* Buttons */
#start-button,
#pause-button,
#resume-button,
#restart-button {
  background-color: #0a0a0a;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff00;
  transition: all 0.3s ease;
}

#start-button:hover,
#pause-button:hover,
#resume-button:hover,
#restart-button:hover {
  background-color: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00,
              0 0 40px #00ff00,
              0 0 80px #00ff00;
  transform: scale(1.05);
}

#pause-button,
#resume-button,
#restart-button {
  display: none;
}


#scoreboard {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(0, 50, 0, 0.7);
  border-radius: 10px;
  border: 1px solid #0f3d0f;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 1.2rem;
  text-align: right;
  display: none;
}


.zombie {
  position: absolute;
  pointer-events: none;
}

.zombie-gif {
  width: 70px;
  height: auto;
  display: block;
}

.zombie-word {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #00ff00; /* ✅ GREEN WORDS */
  font-weight: bold;
  font-size: 25px;
  white-space: nowrap;
  text-shadow: 0 0 8px #00ff00;
}

/* Zombie death animation */
.zombie.dead {
  animation: zombie-death 0.6s forwards;
}

@keyframes zombie-death {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
}

/* 🔒 Locked zombie highlight */
.zombie.locked {
  filter: drop-shadow(0 0 15px red);
  transform: scale(1.05);
  transition: transform 0.1s, filter 0.1s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.zombie-word.shake {
  animation: shake 0.25s;
}

.zombie.locked .zombie-word {
  color: red;
  text-shadow: 0 0 5px red;
}

/* Blood particles */
.blood {
  position: absolute;
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 50%;
  pointer-events: none;
  animation: blood-fly 0.6s forwards;
}

@keyframes blood-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3);
  }
}


/* ===== Typing Input ===== */
#typing-input { 
  position: fixed;
  bottom: 10px;
  left: 50%;            
  transform: translateX(-50%); 
  width: 300px;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 10px;
  border: 2px solid #0f3d0f;
  outline: none;
  text-align: center;
  display: none; 
}

/* ===== Bullets ===== */
.bullet {
  position: absolute;
  width: 8px;
  height: 2px;
  background: red;
  box-shadow: 0 0 6px red;
  transform-origin: left center;
  z-index: 1000;
}

#red-flash {
  position: fixed;
  inset: 0;
  background: rgba(255, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.3s ease;
}

#red-flash.active {
  opacity: 1;
}

#game-container {
  position: relative;
  background: transparent !important;
}

/* ==== Play Game Button ===== */
.start-game-button {
  background-color: #0a0a0a;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 12px 50px;
  border-radius: 10px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff00;
  transition: all 0.3s ease;
}


.start-game-button {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 30px #00ff00;
  }
  50% {
    box-shadow: 0 0 55px #00ff00;
  }
  100% {
    box-shadow: 0 0 70px #00ff00;
  }
}
 
 /* ===== start-game-button:hover ===== */
.start-game-button:hover {
  background-color: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00,
              0 0 40px #00ff00,
              0 0 80px #00ff00;
  transform: scale(1.05);
}

.home-page {
  background-color: rgb(0, 0, 0);
}

.home-page::before,
.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 0, 0.08),
    rgba(0, 0, 0, 0.9)
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.home-page::before {
  animation: fogDrift1 40s linear infinite;
}

.home-page::after {
  animation: fogDrift2 25s linear infinite;
  opacity: 0.4;
}

@keyframes fogDrift1 {
  from {
    transform: translateX(-10%) translateY(0);
  }
  to {
    transform: translateX(10%) translateY(-5%);
  }
}

@keyframes fogDrift2 {
  from {
    transform: translateX(10%) translateY(5%);
  }
  to {
    transform: translateX(-10%) translateY(0);
  }
}
 

/* ===== Navbar styling ===== */
.navbar-game {
  display: none;
  background: #111;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-game ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.navbar-game a {
  color: #00ff00;
  text-decoration: none;
  font-weight: bold;
}

/* ===== Game ===== */
#game-container {
  position: relative;
  min-height: 100vh;
}

#background-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#background-image.blur-bg {
  filter: blur(20px);
  transition: filter 0.3s ease;
}


#aircraft {
  position: fixed;
  bottom: 70px;
  left: 50%;
  width: 80px;
  z-index: 5;
  transition: transform 0.25s ease-out;
}


.explosion {
  position: fixed;
  width: 120px;
  height: 120px;
  background: url("images/explosion.gif") no-repeat center/contain;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}



#typing-input {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 10px;
  display: none;
}


#pause-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 20;
}

.blur {
  transition: filter 0.3s ease;
  pointer-events: none;
}


.landing-container {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 20px;
  box-shadow: 0 0 30px #00ff00;
} 

.landing-container h1 {
  font-size: 3.5rem;
  color: #00ff00;
  margin-bottom: 20px;
  opacity: 0;
  animation: titleEnter 1.5s ease forwards;
}

@keyframes titleEnter {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-container p {
  opacity: 0;
  animation: textFade 1.5s ease forwards;
  animation-delay: 0.8s;
}

@keyframes textFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-game {
  z-index: 1100; 
}

/* Pause menu buttons (including Back to Home link) */
#pause-menu button,
#pause-menu a {
  padding: 12px 30px;
  border-radius: 10px;
  border: 2px solid #00ff00;
  background: #000;
  color: #00ff00;
  text-decoration: none; 
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

/* Hover effect for both buttons and the link */
#pause-menu button:hover,
#pause-menu a:hover {
  background-color: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  transform: scale(1.05);
}

#back-home-button {
  background-color: #0a0a0a;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 10px #00ff00;
  transition: all 0.3s ease;
}

#back-home-button:hover {
  background-color: #00ff00;
  color: black;
  box-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00;
  transform: scale(1.05);
}

.benefits {
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.75);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ff00;
  text-align: left;
}

.benefits h2 {
  color: #00ff00;
  margin-bottom: 15px;
  text-align: center;
}

.benefits ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #7fff7f;
}

.benefits li {
  margin-bottom: 10px;
  font-size: 1rem;
}

#bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ===== Pause Blur ===== */
#game-play.paused {
 
  pointer-events: none;
}

#game-play {
  transition: filter 0.25s ease;
}

/* Pause Overlay — blurs everything behind it */
#pause-overlay {
  position: fixed;
  inset: 0; 
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.2); 
  z-index: 50; 
  display: none;
}

/* Pause menu buttons — visible above blur */
#pause-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100; /* above overlay */
  display: none;
  flex-direction: column;
  gap: 10px;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BODY ===== */
body {
  font-family: 'Trebuchet MS', sans-serif;
  color: white;
  background: linear-gradient(-45deg, #000, #0a1a0a, #001100, #000);
  background-size: 400% 400%;
  animation: fogMove 15s ease infinite;
}

/* ===== FOG ANIMATION ===== */
@keyframes fogMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #00ff00;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  color: #7fff7f;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  color: #00ff00;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 3.5rem;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00;
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  font-size: 1.2rem;
  color: #7fff7f;
}

/* ===== BUTTON ===== */
.play-btn {
  margin-top: 30px;
  padding: 15px 40px;
  background: #0a0a0a;
  color: #00ff00;
  border: 2px solid #00ff00;
  border-radius: 10px;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 0 20px #00ff00;
  transition: all 0.3s ease;
}

.play-btn:hover {
  background: #00ff00;
  color: black;
  box-shadow: 0 0 40px #00ff00;
}

/* ===== SECTIONS ===== */
section {
  max-width: 900px;
  margin: auto;
  padding: 70px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2.2rem;
  color: #00ff00;
}

section p {
  text-align: center;
  font-size: 1.1rem;
  color: #7fff7f;
}

/* ===== HOW TO PLAY ===== */
ol {
  max-width: 600px;
  margin: auto;
  font-size: 1.1rem;
  color: #7fff7f;
}

ol li {
  margin-bottom: 12px;
}

/* ===== BENEFITS ===== */
.benefits ul {
  max-width: 600px;
  margin: auto;
  list-style: none;
}

.benefits li {
  background: rgba(0,0,0,0.6);
  margin-bottom: 20px; 
  padding: 20px; 
  border-left: 4px solid #00ff00;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  position: relative; 
  width: 100%;
  padding: 25px;
  background: #111;
  color: #00ff00;
  text-align: center;
  border-top: 2px solid #00ac00;
  border-bottom: 2px solid #00ac00;
  font-family: 'Trebuchet MS', sans-serif;
  margin-top: 15px;
}
 
/* about*/
#about {
  padding-bottom: 120px;
}


@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  background: url("images/background1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.btn.primary {
  background: #28a745; 
  color: white;
}

.btn.secondary {
  border: 2px solid white;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: black;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: black;
    flex-direction: column;
    padding: 15px;
  }

  .nav-links.show {
    display: flex;
  }
}

.fade-out {
  animation: fadeZoom 0.6s forwards;
}

@keyframes fadeZoom {
  to {
    opacity: 0;
    transform: scale(1.1);
  }
}

.background-body {
  background: black;
}