/* ── GEOCITREES: Where Geocities meets the enchanted forest ── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400;1,500&family=Comic+Neue:ital,wght@0,400;0,700;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #080f08;
  color: #c8e8b0;
  font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
  font-size: 13px;
  min-height: 100vh;
  position: relative;
}

/* ── FIREFLY CANVAS ── */
#fireflyCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── MARQUEE BAR ── */
.marquee-bar {
  position: relative;
  z-index: 10;
  background: linear-gradient(90deg, #001a00, #003300, #001a00);
  border-top: 2px solid #00cc44;
  border-bottom: 2px solid #00cc44;
  color: #00ff66;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 0;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content {
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── COUNTER BAR ── */
.counter-bar {
  position: relative;
  z-index: 10;
  background: #030803;
  border-bottom: 1px solid #004400;
  text-align: center;
  padding: 4px 1rem;
  font-size: 11px;
  color: #88bb88;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.counter-bar strong { color: #00ff88; }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 5px 0 3px;
  background: #030803;
  border-bottom: 1px dashed #004422;
}

.scroll-hint-text {
  display: inline-block;
  color: #00cc55;
  font-size: 11px;
  letter-spacing: 0.08em;
  animation: bounce-hint 1.4s ease-in-out infinite;
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ── LAYOUT ── */
.layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 0;
  min-height: calc(100vh - 80px);
  max-width: 900px;
  margin: 0 auto;
  border-left: 2px solid #004400;
  border-right: 2px solid #004400;
}

/* ── SIDEBARS ── */
.sidebar {
  background: rgba(0, 15, 0, 0.85);
  border-right: 1px dashed #004422;
  padding: 1rem 0.75rem;
  font-size: 12px;
}

.sidebar--right {
  border-right: none;
  border-left: 1px dashed #004422;
}

.sidebar-section { margin-bottom: 1rem; }

.sidebar-title {
  color: #00dd55;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.tree-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tree-nav a {
  color: #88dd88;
  text-decoration: none;
  font-size: 12px;
  display: block;
  transition: color 0.2s;
}

.tree-nav a:hover { color: #00ff88; text-decoration: underline; }

.sidebar-text {
  font-size: 11px;
  color: #8aaa80;
  line-height: 1.5;
}

.sidebar-ascii {
  color: #00aa44;
  font-family: monospace;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.sidebar-small {
  font-size: 10px;
  color: #668866;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.fact-line {
  font-size: 11px;
  color: #8aaa80;
  margin-bottom: 0.4rem;
}

.fact-line strong { color: #00ff88; }

.sidebar-divider {
  border-top: 1px dashed #004422;
  margin: 0.75rem 0;
}

/* ── MAIN CONTENT ── */
.main-content {
  background: rgba(4, 12, 4, 0.9);
  padding: 1.5rem 1.25rem;
}

/* ── HERO TITLE ── */
.hero-title-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #00ff66 0%, #88ffaa 25%, #00cc88 50%, #44ff88 75%, #00ff66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 255, 100, 0.4));
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.hero-sub {
  color: #88cc88;
  font-size: 13px;
  margin-bottom: 0.75rem;
}

/* ── RAINBOW DIVIDER ── */
.rainbow-divider {
  display: flex;
  height: 4px;
  margin: 0.5rem 0;
  border-radius: 2px;
  overflow: hidden;
}

.rainbow-divider span {
  flex: 1;
}

.rainbow-divider span:nth-child(1)  { background: #004400; }
.rainbow-divider span:nth-child(2)  { background: #006600; }
.rainbow-divider span:nth-child(3)  { background: #008800; }
.rainbow-divider span:nth-child(4)  { background: #00aa44; }
.rainbow-divider span:nth-child(5)  { background: #00cc66; }
.rainbow-divider span:nth-child(6)  { background: #00ff88; }
.rainbow-divider span:nth-child(7)  { background: #44ffaa; }
.rainbow-divider span:nth-child(8)  { background: #88ffcc; }
.rainbow-divider span:nth-child(9)  { background: #44ffaa; }
.rainbow-divider span:nth-child(10) { background: #00ff88; }
.rainbow-divider span:nth-child(11) { background: #00cc66; }
.rainbow-divider span:nth-child(12) { background: #00aa44; }

/* ── CONTENT BOXES ── */
.content-box {
  border: 1px dashed #006622;
  background: rgba(0, 10, 0, 0.6);
  margin-bottom: 1.25rem;
  padding: 1rem;
}

.box-title {
  color: #00ff88;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  border-bottom: 1px dashed #004422;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 0.5rem;
}

.info-cell {
  border: 1px solid #004422;
  padding: 0.6rem;
  text-align: center;
  font-size: 12px;
  color: #88cc88;
}

.info-cell--wide {
  color: #a0cc90;
}

.info-cell--full {
  grid-column: 1 / -1;
  color: #a0cc90;
  font-size: 12px;
  border-top: none;
}

.info-icon {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ── SPINNING ELEMENTS ── */
.spinning-leaf {
  display: inline-block;
  font-size: 1.8rem;
  animation: spin 3s linear infinite;
  margin: 0.5rem;
}

.spinning-heart {
  text-align: center;
  font-size: 1.5rem;
  color: #00ff88;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.3); opacity: 1; }
}

/* ── BLINK ── */
.blink {
  animation: blink 1.1s step-end infinite;
  color: #00cc55;
  font-size: 11px;
  text-align: center;
  font-weight: bold;
  margin-top: 0.4rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── GEOCITIES TEXT ── */
.geocities-text {
  color: #88aa88;
  font-size: 12px;
  margin: 0.5rem 0;
  line-height: 1.5;
}

/* ── RSVP FORM ── */
.form-table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
  font-size: 12px;
}

.form-table td {
  padding: 0.4rem 0.5rem;
  vertical-align: middle;
}

.form-table label {
  color: #88cc88;
  white-space: nowrap;
}

.form-table input,
.form-table select {
  background: #030a03;
  border: 1px solid #006622;
  color: #c8e8b0;
  padding: 0.35rem 0.5rem;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 12px;
  outline: none;
  width: 200px;
}

.form-table input:focus,
.form-table select:focus {
  border-color: #00ff88;
}

.submit-btn {
  display: block;
  margin: 0.75rem auto 0.5rem;
  padding: 0.5rem 1.5rem;
  background: #001a00;
  border: 2px outset #00aa44;
  color: #00ff88;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #003300;
  border-style: inset;
}

.audio-btn {
  display: block;
  margin: 0.4rem auto 0;
  padding: 0.3rem 0.8rem;
  background: #001800;
  border: 1px solid #1a6b1a;
  color: #00ff88;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  width: 100%;
}
.audio-btn:hover {
  background: #003300;
  border-color: #00ff88;
}

/* ── OUR SONG BUTTON ── */
.our-song-btn {
  display: block;
  width: 100%;
  margin: 0.5rem auto 0;
  padding: 0.6rem 0.5rem;
  background: linear-gradient(135deg, #1a0022, #2a003a, #1a0022);
  border: 2px outset #cc44ff;
  color: #ff88ff;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.04em;
  animation: song-pulse 2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(255,100,255,0.8);
}
.our-song-btn:hover {
  background: linear-gradient(135deg, #2a0038, #400055, #2a0038);
  border-style: inset;
}
.our-song-btn.playing {
  background: linear-gradient(135deg, #220033, #440055, #220033);
  color: #ffaaff;
  animation: song-pulse-fast 0.8s ease-in-out infinite;
}
@keyframes song-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(200,100,255,0.4); }
  50%       { box-shadow: 0 0 12px rgba(200,100,255,0.9); }
}
@keyframes song-pulse-fast {
  0%, 100% { box-shadow: 0 0 6px rgba(255,100,255,0.6); }
  50%       { box-shadow: 0 0 18px rgba(255,100,255,1); }
}

/* ── FOREST SOUNDS BUTTON ── */
.forest-sounds-btn {
  display: block;
  width: 100%;
  margin: 0.4rem auto 0;
  padding: 0.6rem 0.5rem;
  background: linear-gradient(135deg, #001a00, #002a00, #001a00);
  border: 2px outset #00aa44;
  color: #00ff88;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.04em;
  animation: song-pulse-green 2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(0,255,100,0.6);
}
.forest-sounds-btn:hover {
  background: linear-gradient(135deg, #002800, #004000, #002800);
  border-style: inset;
}
.forest-sounds-btn.playing {
  background: linear-gradient(135deg, #003300, #005500, #003300);
  animation: song-pulse-green-fast 0.8s ease-in-out infinite;
}
@keyframes song-pulse-green {
  0%, 100% { box-shadow: 0 0 4px rgba(0,200,100,0.4); }
  50%       { box-shadow: 0 0 12px rgba(0,200,100,0.9); }
}
@keyframes song-pulse-green-fast {
  0%, 100% { box-shadow: 0 0 6px rgba(0,255,100,0.6); }
  50%       { box-shadow: 0 0 18px rgba(0,255,100,1); }
}

/* ── MSN STATUS ── */
.msn-status {
  font-size: 11px;
  color: #aaddaa;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
  padding: 0.3rem 0;
}

/* Guestbook textarea */
.rsvp-form textarea {
  width: 100%;
  background: #0a1a0a;
  border: 1px solid #1a6b1a;
  color: #c8e8b0;
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  resize: vertical;
}
.rsvp-form textarea:focus {
  outline: none;
  border-color: #00ff88;
}

/* Guestbook entries */
.guestbook-entry {
  border: 1px dashed #1a6b1a;
  padding: 0.5rem 0.75rem;
  margin-top: 0.6rem;
  background: rgba(0,20,0,0.4);
}
.gb-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gb-name {
  color: #00ff88;
  font-weight: bold;
  font-size: 0.9rem;
}
.gb-date {
  color: #557755;
  font-size: 0.75rem;
}
.gb-message {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #c8e8b0;
}

#guestbook-entries {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-color: #1a6b1a #001800;
  scrollbar-width: thin;
}

/* ── CAT STAGE ── */
.cat-stage {
  max-width: 900px;
  margin: 0 auto;
  border-left: 2px solid #004400;
  border-right: 2px solid #004400;
  background: rgba(0, 5, 0, 0.4);
}

#catCanvas {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cat-caption {
  text-align: center;
  font-size: 11px;
  color: #446644;
  padding: 2px 0 6px;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 10;
  background: #030803;
  border-top: 2px solid #004400;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 11px;
  color: #558855;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  border-left: 2px solid #004400;
  border-right: 2px solid #004400;
}

.footer-small {
  font-size: 10px;
  color: #3a5a3a;
}

.footer .rainbow-divider {
  margin-bottom: 0.5rem;
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    border-left: none;
    border-right: none;
  }

  .sidebar--left  { order: 1; border-right: none; border-bottom: 1px dashed #004422; }
  .sidebar--right { order: 3; border-left: none;  border-top: 1px dashed #004422; }
  .main-content   { order: 2; padding: 1rem 0.85rem; }

  /* Collapse sidebars into horizontal strips */
  .sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding: 0.6rem 0.85rem;
  }

  .sidebar-section  { margin-bottom: 0.5rem; flex: 1 1 140px; min-width: 120px; }
  .sidebar-divider  { display: none; }

  /* Hide the decorative-only sidebar items to save space */
  .sidebar .spinning-heart { display: none; }
  .sidebar-ascii { display: none; }

  .hero-title { font-size: 2.2rem; }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-cell--wide {
    grid-column: 1 / -1;
  }

  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table td {
    display: block;
    width: 100%;
  }

  .form-table tr { margin-bottom: 0.4rem; }

  .form-table td:first-child { padding-bottom: 0.1rem; }

  .form-table input,
  .form-table select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cat-stage {
    border-left: none;
    border-right: none;
  }

  .footer {
    border-left: none;
    border-right: none;
  }

  .counter-bar {
    flex-direction: column;
    gap: 0.2rem;
    font-size: 10px;
  }
}
