body {
  font-family: 'Lato', sans-serif;
}

html {
  height: 100%;
  color: white;
}

body {
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-image: linear-gradient(135deg, #2d5a27, #1e3a5f);
}

h1,
h2,
h3 {
  text-align: center;
}

/* ===== BUTTON STYLES ===== */
.btn {
  cursor: pointer;
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(45deg, #ff9800, #f57c00);
  border: 1px solid darkorange;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  cursor: pointer;
  width: 80%;
  display: block;
  margin: 0 auto;
  background-image: linear-gradient(to right, #ff9800, #f57c00);
  border-radius: 19px;
  color: white;
  text-transform: uppercase;
  line-height: 30px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 3px;
  border: 0;
  box-shadow: 2px 2px 7px #7c7c7c;
  font-family: lato, sans-serif;
  margin-bottom: 10px;
}

.btn-lg-outline {
  cursor: pointer;
  width: 80%;
  display: block;
  margin: 0 auto;
  background: transparent;
  color: #ff9800;
  border: 2px solid #ff9800;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.2s ease;
  height: auto;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  font-family: lato, sans-serif;
  margin-bottom: 10px;
}

.btn-lg-outline:hover {
  background: #ff9800;
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #ff9800;
  border: 2px solid #ff9800;
  text-decoration: none;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s ease;
  height: auto;
  line-height: 1;
}

.btn-outline:hover {
  background: #ff9800;
  color: white;
  transform: translateY(-1px);
}

.btn-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.btn-container .btn {
  margin: 0;
}

.level-summary {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, white, #f8f9fa);
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: 0.2s ease;
  cursor: pointer;
  color: #2d5a27;
}

.level-summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.level-summary h3 {
  margin-top: 0px;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2e7d32;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.8);
  height: 24px;
  border-radius: 12px;
  position: relative;
  margin-top: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #ff9800, #f57c00);
  border-radius: 12px;
  transition: width 0.6s ease-in-out;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.progress-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 12px;
  color: #2d5a27;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.stage {
  background-color: #f9f7f7;
  color: #2e2e74;
  border: 1px solid #cecaca;
  margin: 5px;
  padding: 5px 16px;
  margin-bottom: 10px;
  border-radius: 25px;
}

.stage-complete {
  opacity: 0.43;
  font-size: .9rem;
}

.stage h2 {
  color: #2e7d32 !important;
}


h2 {
  margin-top: 0;
}

.task {
  margin-bottom: 5px;
  display: flex;
}

.task-name {
  flex: 3;
  display: flex;
  align-items: center;
  padding: 0 10px;
  justify-content: center;
}

.help-link-wrapper {
  display: inline-block;
}

/* Hide help button when task is complete */
.stage-complete .help-link-wrapper {
  display: none;
}

.rewards-header {
  text-align: center;
  background: #d24242;
  color: #f7ecd7;
  width: 80%;
  margin: 0 auto;
}

.reward {
  text-align: center;
  background: #eadff7;
  width: 80%;
  margin: 0 auto;
}

/* ===== COMPONENT STYLES ===== */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}



.about-title,
.contact-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-logo,
.contact-logo {
  height: 80px;
  margin-top: 1em;
}

.about-content {
  color: #2e2e74;
}

.about-section {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  color: #564c91;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.feature-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item,
.benefit-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #add99e;
}

.feature-item h3,
.benefit-item h3 {
  color: #564c91;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.reset-section {
  background: rgba(255, 235, 235, 0.9);
  border: 2px solid #ffcccc;
}

.reset-container {
  text-align: center;
  margin-top: 20px;
}

.reset-btn {
  background: #ff6b6b;
  color: white;
  border: 2px solid #ff6b6b;
}

.reset-btn:hover {
  background: #ff5252;
}

/* Creator/Support Section Styles */
.creator-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border: 2px solid #add99e;
  position: relative;
}

.creator-section::before {
  content: "❤️";
  position: absolute;
  top: -10px;
  left: 20px;
  background: white;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 1.2rem;
}

/* Contact Form Styles */
.contact-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #564c91;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #564c91;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Settings Page Styles */
.settings-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.settings-header {
  text-align: center;
  margin-bottom: 40px;
}

.settings-title {
  display: inline-block;
}

.settings-logo {
  width: 80px;
  height: 80px;
}

.settings-content {
  color: #2e2e74;
}

.settings-section {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section h2 {
  color: #564c91;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.support-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .support-actions {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}

.donate-btn {
  text-align: center;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  max-width: 300px;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.social-link.linkedin {
  background: linear-gradient(45deg, #0077b5, #005885);
  color: white;
  border-color: #0077b5;
}

.social-link.github {
  background: linear-gradient(45deg, #333, #24292e);
  color: white;
  border-color: #333;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE STYLES ===== */
/* Smaller buttons on desktop */
@media (min-width: 768px) {
  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .support-actions {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 0 10px;
  }

  .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .social-link {
    flex: 0 0 auto;
    text-align: center;
    min-width: 120px;
  }

  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .area-list {
    padding: 10px;
  }

  .level-summary {
    padding: 15px;
    margin: 15px 0;
  }

  .area-section {
    margin: 10px 0;
    padding: 15px;
  }

  .area-section::before {
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
}

/* ===== INDEX.HTML BROCHURE STYLES ===== */

/* Simple brochure styles */
.hero-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 20px 0 30px;
  opacity: 0.9;
  color: white;
}

.features-section,
.regions-section {
  padding: 60px 0;
  background: white;
  color: #2e2e74;
}

.features-section {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.features-section,
.regions-section {
  color: #2e2e74;
}

.features-section h2,
.regions-section h2 {
  color: #2e7d32;
}

.features-section p,
.regions-section p {
  color: #666;
}

.features-section .feature-item,
.regions-section .region-badge {
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-item h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.regions-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.region-badge {
  background: #2e7d32;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  font-weight: 500;
}

.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 10px;
}

.cta-section p {
  margin-bottom: 30px;
  opacity: 0.9;
}

.footer {
  padding: 30px 0;
  background: #333;
  color: white;
  text-align: center;
}

.footer p {
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2 {
  margin: 0 0 20px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 40px;
  text-align: center;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Area-specific backgrounds */
.area-section {
  margin: 10px 0;
  padding: 20px;
  position: relative;
}

.area-section::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  opacity: 0.08;
  z-index: 0;
  border-radius: 25px;
}

.area-section h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.area-section .level-summary {
  position: relative;
  z-index: 1;
}

/* App page h2 styling - white color for dark background */
body.app-page h2 {
  color: white;
}

/* Logo images styling */
.hero-logo,
.about-logo,
.contact-logo {
  height: auto;
  border-radius: 8px;
}

/* App page max width for desktop */
@media (min-width: 800px) {
  body.app-page {
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; */
  }

  .area-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }
}


.small-footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.small-footer a {
  color: #4caf50;
  text-decoration: none;
}

.small-footer a:hover {
  text-decoration: underline;
}

/* ===== ABOUT.HTML PAGE STYLES ===== */

.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

.about-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-logo {
  height: 80px;
}

.about-content h1 {
  color: white;
  margin: 0;
  font-size: 2.5em;
}

.about-section {
  background: white;
  margin: 20px 0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
  color: #564c91;
  margin-top: 0;
  font-size: 1.5em;
}

.about-section ul {
  padding-left: 20px;
}

.about-section li {
  margin: 10px 0;
  line-height: 1.6;
}

.reset-container {
  text-align: center;
  margin-top: 20px;
}

.reset-btn {
  background-color: #ff6b6b;
  color: white;
  border: 2px solid #ff6b6b;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-btn:hover {
  background-color: white;
  color: #ff6b6b;
}

.creator-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.creator-section h2 {
  color: white;
}

.support-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.donate-btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffdd59;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  max-width: 300px;
  margin: 0 auto;
  transition: transform 0.3s;
}

.donate-btn:hover {
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: white;
  font-size: 2em;
  text-decoration: none;
  transition: transform 0.3s;
}

.social-link:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .about-page {
    padding: 10px;
  }

  .about-section {
    padding: 20px;
  }

  .support-actions {
    flex-direction: column;
  }

  .social-links {
    justify-content: center;
  }
}

/* ===== PAGE SPECIFIC BODY STYLES ===== */

/* About and Contact pages - light background */
body.about-body,
body.contact-body {
  background-color: #f5f5f5;
  color: #333;
}

/* ===== CONTACT.HTML PAGE STYLES ===== */

.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  /* Make room for the absolutely positioned back button */
}

.contact-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-logo {
  height: 80px;
}

.contact-content h1 {
  color: #564c91;
  margin: 0;
  font-size: 2.5em;
}

.contact-section {
  background: white;
  margin: 20px 0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #564c91;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #564c91;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 10px;
  }

  .contact-section {
    padding: 20px;
  }
}

.page-title-light {
  color: white;
}

.cta-heading {
  color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffb74d;
  outline-offset: 2px;
}
