

h1.logo {
  font-family: 'Shrikhand', cursive;
  color: black;
  font-size: clamp(2rem, 10vw, 5rem);
  text-align: center;
}

h1.logo span {
  color: #6aa84f; /* ninja-green accent */
}


div.logo span {
  color: #6aa84f; /* ninja-green accent */
}

div.logo a:hover {
  color: #6aa84f;
  transition: color 0.3s ease;
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.chapter-btn {
  background-color: #6aa84f;
  font-size: large;
  color: white;
  font-family: 'system-ui', sans-serif;
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
  border-radius: 12px;
  padding: 1rem 1rem;
  box-shadow: 0 3px 0 #2b752f;
  transition: all 0.15s ease;
}

.chapter-btn:hover {
  background-color: #5eba62;
  transform: translateY(-2px);
}

.chapter-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 #2e7d32;
}

.intro {
    font-family: 'system-ui', sans-serif;
    max-width: 1200px;     /* Keeps it at a readable width on large screens */
    margin: 1.5rem auto;  /* Centers it horizontally */
    line-height: 1.6;
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;      /* Adds a bit of side padding on mobile */
}


.resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.resources-btn {
  background-color: #000000;
  font-size: small;
  color: white;
  font-family: 'system-ui', sans-serif;
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
  border-radius: 12px;
  padding: 1rem 1rem;
  box-shadow: 0 3px 0 #606060;
  transition: all 0.15s ease;
}

.resources-btn:hover {
  background-color: #5a5a5a;
  transform: translateY(-1px);
}

.resources-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 #000000;
}




/* Footer Styles */

.footer {
  display: flex;
  font-family: system-ui, sans-serif;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  border-top: 1px solid #ccc;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-wrap: wrap; /* allows stacking on small screens */
}

.footer-left {
  flex: 1 1 60%;
  color: #222;
  font-size: 0.65rem
}

.footer-right {
  flex: 1 1 30%;
  text-align: right;
  font-size: 0.9rem;
}

.footer-btn {
  display: inline-block;
  background-color: #6aa84f;
  font-size: small;
  color: white;
  font-family: 'system-ui', sans-serif;
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  box-shadow: 0 3px 0 #2b752f;
  transition: all 0.15s ease;
}

.footer-btn:hover {
  background-color: #5eba62;
  transform: translateY(-1px);
}

.footer-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 #2e7d32;
}





@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left,
  .footer-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }
}






/* ===== HEADER BASE ===== */
#main-header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 5px #c9c9c9;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

/* Keeps content below from hiding under the fixed header */
body {
  padding-top: 70px;
}

/* ===== HEADER CONTENT ===== */
.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  font-family: system-ui;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Shrikhand', cursive;
  font-size: 1.3rem;
  text-decoration: none;
  color: #000000;
}

/* ===== NAV LINKS ===== */
.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #6aa84f; /* your green highlight */
  transition: font-weight 0.2s ease;
  font-weight: 700;
}

/* ===== SCROLLED STATE ===== */
#main-header.scrolled {
  background-color: #000000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#main-header.scrolled .logo a {
  color: #ffffff;
}
#main-header.scrolled .nav-links a {
  color: #ffffff;
}

#main-header.scrolled div.logo span {
  color: #ffffff;
}





/* Base layout */
#main-header nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem; /* space between links */
}

/* Responsive stacking */
@media (max-width: 700px) {
  #main-header nav {
    flex-direction: column;
    text-align: right;
    margin-right: 1rem;
    align-items: flex-start;
    gap: 0.3rem;
  }

  #main-header nav a {
    display: block;
    width: 100%;
  }
}
