body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
}
.language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 12px;
  border-radius: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
}
.language-toggle span {
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.language-toggle span.active {
  background: #3273dc;
  color: white;
}
.language-toggle .separator {
  color: #ccc;
  cursor: default;
}
.nav-menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.nav-menu-toggle:hover {
  transform: scale(1.05);
}
.nav-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #333;
}
.nav-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: left 0.3s ease;
  padding: 80px 0 20px 0;
}
.nav-menu.open {
  left: 0;
}
.nav-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.nav-menu h3 {
  padding: 0 25px;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.1rem;
}
.nav-menu-item {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  background: none;
  text-align: left;
  font-size: 1rem;
  color: #555;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu-item:hover {
  background: #f5f5f5;
  color: #e74c3c;
}
.nav-menu-item span {
  margin-right: 10px;
}
.intro-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}
.intro-section h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}
.intro-section p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 3rem;
}
.selector-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.selector-box label {
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 15px;
  color: #333;
}
#year-select {
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  width: 200px;
}
#state-select {
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  width: 250px;
}
#section-state .content-container {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.state-selector-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.continue-btn {
  margin-top: 20px;
  padding: 12px 30px;
  font-size: 1.1rem;
  background: #3273dc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}
.continue-btn:hover {
  background: #2366d1;
}
.continue-btn.visible {
  display: block;
}
.scroll-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transition: opacity 0.5s;
}
.scroll-section.visible {
  opacity: 1;
}
.content-container {
  display: flex;
  max-width: 1400px;
  width: 100%;
  padding: 40px;
  gap: 60px;
}
.chart-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  width: 100%;
  max-width: 600px;
}
.text-side {
  flex: 1;
  display: flex;
  align-items: center;
}
.text-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.text-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}
.text-content p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
}
.text-content .stat {
  font-size: 3rem;
  font-weight: bold;
  color: #e74c3c;
  margin: 30px 0;
}
.cumulative-stat {
  font-size: 4rem;
  font-weight: bold;
  color: #c0392b;
  margin: 40px 0;
  text-align: center;
}
.cumulative-note {
  font-size: 1rem;
  color: #777;
  font-style: italic;
  text-align: center;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
  cursor: pointer;
}
.scroll-indicator span {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}
.scroll-indicator svg {
  width: 30px;
  height: 30px;
  stroke: #666;
}
#age-range-select {
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  width: 200px;
}
#age-selector-container {
  margin-bottom: 25px;
  text-align: center;
}
#age-selector-container label {
  color: #2366d1;
  opacity: 0.7;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}
@media (max-width: 1000px) {
  .content-container {
    flex-direction: column;
  }
}
.footer-ribbon {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 4px solid #e74c3c;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.footer-section p {
    margin: 0.5rem 0;
}
.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}
.footer-section a:hover {
    color: #e74c3c;
    text-decoration: underline;
}
.footer-note {
    font-size: 0.85rem;
    color: #bdc3c7;
    font-style: italic;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(236, 240, 241, 0.2);
    font-size: 0.9rem;
    color: #bdc3c7;
}
@media (max-width: 768px) {
    .footer-ribbon {
        padding: 2rem 1.5rem 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
    }
}