/* ---------- global reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f9f1e7;  /* warm paper tone, reminds of Neocities cat’s fur */
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #2c1b0f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* ---------- main three‑part container ---------- */
.triptych {
  display: flex;
  width: 100%;
  max-width: 1300px;
  background: transparent;
  gap: 1.5rem;
  align-items: stretch;  /* makes side panels match the middle div's height */
}

/* side panels — both exactly the same width */
.side-panel {
  width: 240px;                /* fixed width for predictable layout */
  flex-shrink: 0;
  background: #e9dacb;
  border-radius: 2rem 1rem 2rem 1rem;  /* playful cat‑like curves */
  box-shadow: 0 12px 22px -8px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 2px solid #dbbc9e;
}

/* left and right subtle tint difference – optional, keeps them friendly */
.side-panel:first-child {
  background: #ede0d3;
}
.side-panel:last-child {
  background: #e3d0bd;
}

/* picture containers inside side panels */
.picture-spot {
  background: #cfb8a2;
  border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
  padding: 1rem;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.1);
  border: 2px solid #b28c6f;
}

.picture-spot img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem 0.25rem 1rem 0.25rem;
  border: 3px solid #fef7e9;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background: #fff6e5;
  display: block;
  margin: 0 auto;
}

/* image description (optional, but cozy) */
.picture-caption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #442f1f;
  background: #fcf5ea;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 30px;
  border: 1px solid #dcb185;
}

/* ---------- MAIN middle div ---------- */
.main-div {
  flex: 1;                /* takes all remaining space */
  background: #fffbf4;
  border-radius: 3rem 1.5rem 3rem 1.5rem;
  box-shadow: 0 18px 28px -10px #7a5e45;
  padding: 2rem 2.5rem;
  border: 3px solid #e7c9ab;
  display: flex;
  flex-direction: column;
}

/* menu bar at the top of the main div */
.menu-top {
  background: #f3e1cf;
  padding: 0.9rem 2rem;
  border-radius: 60px 20px 60px 20px;
  margin-bottom: 2rem;
  border: 2px solid #dbaa7c;
  box-shadow: 0 6px 0 #ba8b62;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  font-weight: 600;
}

.menu-top a {
  color: #4a2f1a;
  text-decoration: none;
  font-size: 1.15rem;
  padding: 0.2rem 0.5rem;
  border-bottom: 3px solid transparent;
  transition: 0.15s;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.menu-top a:hover {
  border-bottom-color: #b35e2e;
  background: #fcebd8;
  border-radius: 30px;
  transform: scale(1.02);
}

.menu-top a.active {
  background: #dbaa7c;
  color: white;
  border-radius: 30px;
  padding: 0.2rem 1rem;
  border-bottom-color: #5a2e0e;
  box-shadow: 0 2px 0 #7a4a22;
}

/* main content area inside the middle div */
.main-content {
  flex: 1;
  background: #fefcf7;
  padding: 1.8rem;
  border-radius: 1.8rem 0.8rem 1.8rem 0.8rem;
  border: 2px dashed #e2b48c;
  box-shadow: inset 0 0 0 4px #fff9f2, 0 8px 12px -6px #b48b65;
}

/* tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* keep the original welcoming vibe */
h1 {
  font-size: 2.2rem;
  color: #592f14;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  border-left: 12px solid #ffb882;
  padding-left: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.8rem;
  color: #592f14;
  margin: 1.5rem 0 1rem 0;
  border-bottom: 3px dotted #e2b48c;
  padding-bottom: 0.5rem;
}

p {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #3d2b1b;
}

ul {
  margin: 1rem 0 1.5rem 2rem;
  list-style-type: "🐾 ";
  font-size: 1.1rem;
}

li {
  padding-left: 0.5rem;
  margin: 0.4rem 0;
}

a {
  color: #aa4d1c;
  font-weight: 500;
  text-decoration: underline wavy #d69367 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  background: #ffead2;
  text-decoration: none;
  border-radius: 12px;
  padding: 0 4px;
}

img {
  max-width: 100%;
}

/* small tweak for images */
.main-content img {
  background: #e4cbb3;
  border-radius: 40px 10px 40px 10px;
  padding: 10px 18px;
  border: 3px solid #b7875a;
  margin: 0.5rem 0;
  max-width: 100%;
}

/* gallery grid for pictures tab */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.gallery-item {
  background: #e9dacb;
  border-radius: 1.5rem 0.5rem 1.5rem 0.5rem;
  padding: 0.8rem;
  text-align: center;
  border: 2px solid #b28c6f;
}

.gallery-item img {
  border-radius: 1rem 0.25rem 1rem 0.25rem;
  border: 3px solid #fef7e9;
  margin-bottom: 0.3rem;
  padding: 0;
}

/* responsive: if screen gets too narrow, side panels stack gracefully */
@media (max-width: 800px) {
  .triptych {
    flex-wrap: wrap;
  }
  .side-panel {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .picture-spot {
    width: 200px;
  }
  .menu-top {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}