/* SATURN PIZZA — authentic 1998 flavor + Ye Olde Medieval Tavern Mode */

:root {
  --bg-color: #000033;
  --text-color: #ffffcc;
  --font-main: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
}

body {
  margin: 0;
  padding: 14px;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  transition: background 0.3s, color 0.3s;
}

/* --- SPACE THEME (DEFAULT) --- */
body.space-theme {
  background-color: #000033;
  color: #ffffcc;
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
}
body.space-theme .stars {
  min-height: 100vh;
  background-color: #000033;
  background-image:
    radial-gradient(white 1px, transparent 1.5px),
    radial-gradient(#ffd27f 1px, transparent 1.5px),
    radial-gradient(white 1px, transparent 1.5px);
  background-size: 180px 180px, 120px 120px, 90px 90px;
  background-position: 0 0, 40px 60px, 70px 20px;
  padding-bottom: 8px;
}
body.space-theme .marquee {
  background: #660000;
  color: #ffff00;
  font-weight: bold;
  border: 4px ridge #ff9900;
  padding: 4px;
  font-family: "Times New Roman", serif;
  font-size: 15px;
}
body.space-theme table.shell {
  width: 100%;
  max-width: 820px;
  margin: 14px auto 6px auto;
  background: #331a00;
  border: 8px ridge #ff9900;
}
body.space-theme td.logo {
  text-align: center;
  background: repeating-linear-gradient(45deg, #cc0000 0 24px, #990000 24px 48px);
  padding: 18px 8px;
}
body.space-theme .pizzaname {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 52px;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #660000, 6px 6px 0 #000000;
  letter-spacing: 4px;
}
body.space-theme .tagline {
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: #ffffff;
  font-size: 17px;
}
body.space-theme td.nav {
  text-align: center;
  background: #006600;
  border-top: 4px ridge #ff9900;
  border-bottom: 4px ridge #ff9900;
  padding: 8px;
  font-size: 16px;
}
body.space-theme td.nav a { color: #ffff00; font-weight: bold; text-decoration: underline; }
body.space-theme td.side {
  width: 190px;
  background: #663300;
  border-right: 4px ridge #ff9900;
  vertical-align: top;
  font-size: 13px;
  text-align: center;
}
body.space-theme .sidebox {
  background: #000033;
  border: 2px inset #ffcc00;
  padding: 6px;
  margin: 8px 4px;
}
body.space-theme .blink {
  animation: blinkme 1s steps(2, start) infinite;
  color: #ff0000;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  background: #ffffcc;
  border: 2px outset #ff0000;
  margin: 8px 4px;
  padding: 4px;
}
body.space-theme td.main {
  background: #ffeedd;
  color: #331a00;
  vertical-align: top;
  font-size: 15px;
}
body.space-theme td.main a { color: #cc0000; font-weight: bold; }
body.space-theme h1.pagetitle {
  font-family: Impact, "Arial Black", sans-serif;
  color: #cc0000;
  font-size: 34px;
  margin: 4px 0 10px 0;
  text-shadow: 2px 2px 0 #ffcc00;
}
body.space-theme td.footer {
  text-align: center;
  background: #000033;
  border-top: 4px ridge #ff9900;
  color: #99ccff;
  font-size: 12px;
  font-family: "Times New Roman", serif;
}
body.space-theme td.footer a { color: #66ffff; }

/* --- MEDIEVAL TAVERN THEME --- */
body.tavern-theme {
  background-color: #1a0f00;
  color: #e6c280;
  font-family: "Georgia", "Times New Roman", serif;
}
body.tavern-theme .stars {
  min-height: 100vh;
  background-color: #1a0f00;
  background-image:
    radial-gradient(#ff6600 1px, transparent 1.5px),
    radial-gradient(#ffaa00 1px, transparent 2px);
  background-size: 100px 100px, 200px 200px;
  background-position: 0 0, 50px 50px;
  padding-bottom: 8px;
}
body.tavern-theme .marquee {
  background: #3a1a00;
  color: #ffcc66;
  font-weight: bold;
  border: 4px double #885522;
  padding: 6px;
  font-family: "Georgia", serif;
  font-size: 16px;
  letter-spacing: 1px;
}
body.tavern-theme table.shell {
  width: 100%;
  max-width: 820px;
  margin: 14px auto 6px auto;
  background: #2b1808;
  border: 10px double #aa6622;
  box-shadow: 0 0 20px #000000;
}
body.tavern-theme td.logo {
  text-align: center;
  background: #1f0a00;
  border-bottom: 4px double #aa6622;
  padding: 22px 8px;
}
body.tavern-theme .pizzaname {
  font-family: "Garamond", "Georgia", serif;
  font-size: 48px;
  color: #ffaa33;
  text-shadow: 3px 3px 0 #441100, 5px 5px 0 #000000;
  letter-spacing: 2px;
  font-weight: bold;
}
body.tavern-theme .tagline {
  font-family: "Georgia", serif;
  font-style: italic;
  color: #d4a359;
  font-size: 18px;
}
body.tavern-theme td.nav {
  text-align: center;
  background: #331100;
  border-top: 2px solid #884411;
  border-bottom: 4px double #aa6622;
  padding: 10px;
  font-size: 17px;
}
body.tavern-theme td.nav a { color: #ffcc66; font-weight: bold; text-decoration: none; border-bottom: 1px dotted #ffcc66; }
body.tavern-theme td.side {
  width: 190px;
  background: #1e0e03;
  border-right: 4px double #aa6622;
  vertical-align: top;
  font-size: 13px;
  text-align: center;
}
body.tavern-theme .sidebox {
  background: #0d0601;
  border: 2px solid #663311;
  color: #d4a359;
  padding: 8px;
  margin: 8px 4px;
}
body.tavern-theme .blink {
  animation: torchflicker 1.5s infinite alternate;
  color: #ff3300;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  background: #2a1100;
  border: 2px ridge #ff6600;
  margin: 8px 4px;
  padding: 6px;
}
@keyframes torchflicker {
  0% { opacity: 0.8; text-shadow: 0 0 4px #ff3300; }
  100% { opacity: 1; text-shadow: 0 0 12px #ffcc00; }
}
body.tavern-theme td.main {
  background: #f2e3c6;
  color: #2a1a08;
  vertical-align: top;
  font-size: 16px;
  font-family: "Georgia", serif;
}
body.tavern-theme td.main a { color: #880000; font-weight: bold; }
body.tavern-theme h1.pagetitle {
  font-family: "Garamond", "Georgia", serif;
  color: #660000;
  font-size: 34px;
  margin: 4px 0 10px 0;
  border-bottom: 2px solid #884411;
}
body.tavern-theme td.footer {
  text-align: center;
  background: #120800;
  border-top: 4px double #aa6622;
  color: #b38f59;
  font-size: 13px;
  font-family: "Georgia", serif;
}
body.tavern-theme td.footer a { color: #ffaa33; }

/* Interactive secret portal button */
.portal-btn {
  cursor: pointer;
  display: inline-block;
  padding: 2px 6px;
  border: 1px dashed #ff9900;
  background: #330000;
  color: #ffff00;
  font-size: 11px;
  margin-top: 4px;
  user-select: none;
}
.portal-btn:hover {
  background: #ff9900;
  color: #000;
}

@keyframes blinkme { to { visibility: hidden; } }

/* --- THEME SWITCH VISIBILITY --- */
body.space-theme .t-tavern { display: none; }
body.tavern-theme .t-space { display: none; }

/* --- SHARED ELEMENTS --- */
.counter {
  background: #000000;
  border: 2px inset #00ff00;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  padding: 6px;
  margin: 8px 4px;
}
body.tavern-theme .counter {
  border: 2px inset #aa6622;
  color: #ffaa33;
}
.construction {
  background: repeating-linear-gradient(45deg, #ffcc00 0 12px, #000000 12px 24px);
  color: #ffffff;
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  padding: 8px;
  margin: 8px 4px;
  border: 2px solid #ffffff;
  font-size: 12px;
}
body.tavern-theme .construction {
  background: repeating-linear-gradient(45deg, #663311 0 12px, #1a0f00 12px 24px);
  border-color: #ffcc66;
  color: #ffcc66;
  text-shadow: 1px 1px 2px #000;
}
.webring {
  text-align: center;
  color: #66ff66;
  font-size: 13px;
  font-family: "Times New Roman", serif;
}
.webring a { color: #ffff00; }
body.tavern-theme .webring { color: #b38f59; font-family: Georgia, serif; }
.content p { line-height: 1.5; }
table.menu {
  width: 100%;
  border: 3px ridge #cc0000;
  background: #ffffff;
  color: #331a00;
  border-collapse: collapse;
}
body.tavern-theme table.menu {
  border: 3px double #884411;
  background: #f2e3c6;
  color: #2a1a08;
}
table.menu th {
  background: #cc0000;
  color: #ffffcc;
  padding: 6px;
  font-family: Impact, sans-serif;
  letter-spacing: 1px;
}
body.tavern-theme table.menu th {
  background: #3a1a00;
  color: #ffcc66;
  font-family: Garamond, Georgia, serif;
}
table.menu td { padding: 6px 8px; border-bottom: 1px dashed #cc9966; }
.menu-item { font-weight: bold; color: #990000; }
.menu-note { font-style: italic; font-size: 12px; }

@media (max-width: 700px) {
  .pizzaname { font-size: 30px; }
  td.side { display: none; }
}
