/* Make width math sane */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Global body */
body {
  background-color: #cadbec;
  font-family: Arial, sans-serif;
  line-height:1.5;
  color: #666;
  margin:0;
}

/* Content wrapper (centered, max width) */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
}

/* Generic white card */
.card {
  width: 100%;
  margin-top: 20px;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 9px;
  padding: 12px;
  text-align: left;    /* text inside card aligns left */
}

/* Default: images inside cards are centered */
.card img {
  display: block;      /* treat image as block */
  margin: 0 auto;      /* center horizontally */
}

/* Navbar container (blue bar) */
.navbar {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;  /* full white bar */
  padding: 0px 0px;
  border-radius: 0px;
  margin-top: 9px;
  margin-bottom: 0px;
}

/* Individual buttons (lighter blue) */
.nav-button {
  flex: 1;
  margin: 0 3px;
  background-color: LightBlue;  /* lighter blue for each button */
  border: 1px solid DodgerBlue;
  border-radius: 8px;
  text-align: center;
  padding: 2px 0;
  min-width: 0; /* prevents overflow on small screens */
}

.nav-button a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}


.footer-card {
  text-align: center;
  border-color: #cadbec;
  background-color: #cadbec;
  padding: 3px;
  margin-top: 18px;
  border-radius: 0px;
}
.footer-card p {
  margin: 0;
  font-size: 12px;
  color: #999;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;   /* always square */
  overflow: hidden;
}

.stage-content {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow-y: auto;      /* scrollable */
  padding: 10px;
  -webkit-overflow-scrolling: touch; /* iOS scroll */
}


/* Generic links */
a {
  text-decoration: none;
  font-weight: bold;
  color: #6666aa;
}

a:visited { color: #000088; }
a:active { color: #863800; }

/* Ensure images scale nicely */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-row {
  position: sticky;
  text-align:center;
  bottom: 0;
  background: #cadbec;
  padding: 6px 0;
}

.nav-row a.active {
  background-color: #ffff66;
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
}

.disease-box {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #222;
  line-height: 1.2;
}

.disease-box .cn {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #666;
  margin-top: 4px;
}
