body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: #fff8ed;
  color: #333;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Header */
header {
  background: #113b1a;
  padding: 2rem 1rem;
  border-bottom: 1px solid #e6e6e6;
}

h1 {
  margin: 1rem;
  font-family: Karla, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #fff8ed;
}

.subtitle {
  color: #fff8ed;
  font-family: Martel, serif;
  font-weight: 400;
  font-size: 1rem;
}

/* Intro Section */
#intro {
  max-width: 60rem;
  margin: 3rem auto;
  line-height: 1.6;
  font-size: 1rem;
}

#intro p {
  font-family: Martel, serif;
  font-weight: 400;
  color: #113b1a;
}

#intro h2 {
  font-family: Karla, sans-serif;
  font-size: 1.4rem;
  margin: 1rem;
  color: #113b1a;
}

.link-btn {
  background-color: #f4a259;
  color: #2a2a2a;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500;
}

.link-btn:hover {
  background-color: #e46565;
}

/* Visualization Wrapper */
.viz-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  row-gap: 2rem;
  column-gap: 4rem;
  max-width: 65rem;
  margin: 2rem auto; /* centers entire section */
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.viz-instruction {
  flex-basis: 100%;
  text-align: left;
  font-family: Martel, serif;
  font-weight: 400;
  font-size: 1rem;
  color: #555;
}

.instruction-box {
  max-width: 1050px;
  margin: 0 auto 1.2rem;
  background: #fff2e0;
  padding: 1rem 1.4rem;
  border-radius: 10px;
  border: 1px solid #f4d3ae;
  text-align: left;
}
/* food insecurity population percentage */
.continent-bar {
  width: 100%;
  padding: 1rem 0;
  border-radius: 8px;
}

/* Sankey Container */
.viz-container {
  width: 450px;
}

/* Bar Section */
.bar-section {
  width: 400px;
}

.bar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.bar-header h3 {
  color: #333;
  font-weight: 400; 
  font-size: 1.1rem;
}

.button-container {
  flex-basis: 100%;
  text-align: left;
  margin-left: 5rem;
}

#reset-btn {
  background-color: #f4a259;
  border: none;
  padding: 6px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  font-family: Martel, sans-serif;
  width: auto;
}
#reset-btn:hover {
  background-color: #e46565;
}

.bar-vis {
  display: flex;
  justify-content: center;
}

/* --- Waste Quality Section --- */
#waste-quality {
  background-color: #f8f9fa;
  max-width: 60rem;
  margin: 4rem auto;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

#waste-quality .section-title {
  font-family: Karla, sans-serif;
  color: #113b1a;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

#waste-quality p {
  font-family: Martel, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2a2a2a;
  margin-bottom: 1.2rem;
}

#waste-quality a {
  color: #e46565;
  text-decoration: underline;
}

.waste-group-bar {
  margin: 2rem auto;
  width: 90%;
  height: 400px;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 8px;
  display: flex;
  justify-content: center;
}

.viz-footer {
  max-width: 1050px;
  margin: 0rem 0rem 0rem 13.2rem;
  font-family: Martel, serif;
}

.viz-footer-header {
  display: flex;
  text-align: left;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.info-icon {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  margin-left: 0;
}

.footer-title {
  margin-right: 0.3rem;
  text-align: left;
}

.chevron {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.viz-footer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  margin-top: 0.5rem;
  text-align: left;
}

.viz-footer-content.open {
  max-height: 999px;
  opacity: 1;
}

.viz-footer-header.open .chevron {
  transform: rotate(180deg);
}
