/* ============================================================ */
/* VANDELAY INDUSTRIES - OFFICIAL STYLESHEET                    */
/* Best Viewed In Netscape Navigator 4.0 at 800x600 (or better) */
/* ============================================================ */

body {
  background: #000080 url("img/stars-bg.gif") repeat;
  color: #ffff00;
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  margin: 0;
  padding: 0;
}

/* ---- Fake frameset layout (CSS grid, collapses on mobile) ---- */
.frameset {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "banner banner"
    "nav    main"
    "bot    bot";
  min-height: 100vh;
  gap: 4px;
  padding: 4px;
  box-sizing: border-box;
}

.frame {
  border: 3px ridge #c0c0c0;
  background: #000080;
  padding: 8px;
  overflow: auto;
  box-sizing: border-box;
}

.frame-banner { grid-area: banner; text-align: center; padding: 6px; }
.frame-nav    { grid-area: nav; }
.frame-main   { grid-area: main; padding: 0; }
.frame-bot    { grid-area: bot; padding: 8px; }

.frame-main iframe {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  border: 0;
  background: #ffffcc;
  display: block;
}

@media (max-width: 700px) {
  .frameset {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "nav"
      "main"
      "bot";
  }
  .frame-main iframe { min-height: 60vh; }
}

/* ---- Rainbow heading ---- */
.rainbow {
  background: linear-gradient(90deg,
    #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  font-size: 2.4em;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  font-family: "Impact", "Comic Sans MS", sans-serif;
  letter-spacing: 1px;
}

/* ---- Blink (CSS replacement for <blink>) ---- */
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---- Bottom frame: badges / counter / music ---- */
.bot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
}
.bot-cell {
  text-align: center;
  color: #ffff00;
  font-family: "Comic Sans MS", cursive;
  font-size: 0.85em;
}
.bot-cell h4 {
  margin: 0 0 4px 0;
  font-size: 0.9em;
  color: #ff00ff;
  text-decoration: underline;
}
.bot-cell img { vertical-align: middle; }
#hitcounter {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  border: 2px inset #888;
  padding: 2px 6px;
  font-weight: bold;
  letter-spacing: 2px;
}
#musicbtn {
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: "Comic Sans MS", cursive;
  cursor: pointer;
  padding: 4px 10px;
  color: #000;
}
#musicbtn:active { border-style: inset; }

/* ---- Content pages (inside iframes) ---- */
.page {
  background: #ffffcc;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  padding: 16px;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

/* ---- Sparkle trail dots (created by JS) ---- */
.sparkle {
  position: fixed;
  width: 16px;
  height: 16px;
  background: url("img/sparkles.gif") no-repeat center/contain;
  pointer-events: none;
  z-index: 9999;
}
