html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #00FF00;
  background-color: #000;
  overflow-x: hidden;
}

/* Full screen zombie couple image banner */
.hero-image {
  background-color: #000;   /* just in case, blends with site */
  margin: 0;
  padding: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;             /* keeps the proportions */
}

header, footer {
  width: 100%;
  background-color: #000;
  color: #00FF00;
  padding: 10px 20px;
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #00FF00;
  padding: 10px 20px;
  width: 100%;
}

#site-logo {
  height: 100px;
  width: auto;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 25px;
  margin-right: 10px;
}

.login-header input {
  margin: 2px 0;
  padding: 5px;
  font-size: 0.85rem;
  width: 290px;
}

.login-header button {
  padding: 8px 16px;
  background-color: #00FF00;
  color: #000;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-header button:hover {
  background-color: #00cc00;
}

.main-section {
  background-color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couples-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.couple-box {
  width: 150px;
  height: 150px;
  border: 2px solid #000;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.couple-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission {
  width: 100%;
  text-align: center;         /* center text horizontally */
  margin: 3rem auto;          /* spacing above and below */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;        /* center items inside */
}

.mission h2 {
  font-size: 5rem;            /* adjust to taste */
  margin-bottom: 1rem;
  font-family: 'Creepster', cursive;
  color: #15ff00;
  text-shadow: 5px 5px #000;
}

.mission p {
  max-width: 800px;           /* keeps line length readable */
  font-size: 2.5rem;
  line-height: 1.6;
  font-family: 'Creepster', cursive;
  color: #15ff00;
  text-shadow: 2.5px 2.5px #000;
}

/* ---- Rules & Regulations (matches Mission styling) ---- */
.rules {
  width: 100%;
  text-align: center;
  margin: 4rem auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rules h2 {
  font-family: 'Creepster', cursive;
  font-size: 3rem;              /* match .mission h2 */
  color: #15ff00;
  text-shadow: 2px 2px 6px #000;
  margin-bottom: 1.5rem;
}

.rules-grid {
  width: min(1100px, 92vw);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0 auto 1rem;
}

.rule-card {
  background: rgba(0,0,0,0.65);
  border: 2px solid #15ff00;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.rule-card h3 {
  font-family: 'Creepster', cursive;
  font-size: 2rem;
  color: #15ff00;
  text-shadow: 1px 1px 4px #000;
  margin: 0 0 0.5rem;
}

.rule-card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.rule-card li {
  color: #e5ffe5;
  text-shadow: 1px 1px 3px #000;
  font-size: 1.05rem;            /* readable but not huge */
  line-height: 1.55;
  margin: 0.35rem 0;
}

.rules-note {
  max-width: 900px;
  font-family: 'Creepster', cursive;
  color: #15ff00;
  text-shadow: 1px 1px 3px #000;
  font-size: 1.25rem;            /* match mission paragraph scale */
  margin-top: 0.75rem;
}

/* 3-up layout on wider screens */
/* ---------- MOBILE OVERRIDES ---------- */
@media (max-width: 768px) {
  .hero-image {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;

    /* REMOVE forced height */
    min-height: auto;
    height: auto;

    padding-top: 56%; /* gives proper aspect ratio space */
    background-color: #000; 
  }
  
@media (min-width: 900px) {
  .rules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  #site-logo {
    height: 80px;
  }

  .login-header {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 10px;
    padding-right: 20px; /* 👈 adds space from the right screen edge */
    box-sizing: border-box;
  }

  .login-header button {
    width: auto;
    font-size: 1rem;
  }

  .modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .modal-content input,
  .modal-content button {
    font-size: 1rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
    padding: 5px 10px;
  }

  .hero-title span::after {
    left: 50%;
    width: 4px;
  }
}

/* Modal Base Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #000;
  color: #00FF00;
  margin: 10% auto;
  padding: 20px;
  border: 2px solid #00FF00;
  width: 90%;
  max-width: 400px;
  font-family: 'Creepster', cursive;
  border-radius: 10px;
  box-shadow: 0 0 15px #00FF00;
  animation: slideUp 0.4s ease-out;
}

.modal-content input {
  width: 95%;
  padding: 10px;
  margin: 8px 0;
  background: #222;
  color: #00FF00;
  border: 1px solid #00FF00;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

.modal-content button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #00FF00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background-color: #00cc00;
}

.modal-content .close {
  color: #00FF00;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #ff0000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-content {
  width: 90%;
  max-width: 400px;
  margin: 10% auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #111;
  color: #00FF00;
  border: 2px solid #00FF00;
  border-radius: 10px;
  box-shadow: 0 0 15px #00FF00;
  font-family: 'Creepster', cursive;
  font-size: 1.5rem;
}

.modal-content input {
  font-size:1rem;
  width: 95%;
  margin-top: 8px;
}

.modal-content button {
  font-size:1rem;
  width: 100%;
  margin-top: 8px;
}

.modal-content h2 {
  font-size: 1.5rem;
  text-align: center;
}

.modal-content label,
.modal-content a {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  text-align: left;
}

.modal-content label {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
    padding: 15px;
  }

  .modal-content input,
  .modal-content button {
    font-size: 1rem;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content label,
  .modal-content a {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    text-align: left;
  }

  .modal-content label {
    display: flex;
    align-items: center;
    gap: 5px;
  }
}