@import url('https://fonts.googleapis.com/css2?family=VT323&family=Press+Start+2P&display=swap');

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

body {
  background-color: #000080;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='2' fill='%23000066' opacity='0.5'/%3E%3C/svg%3E");
  color: #ffff00;
  font-family: 'Times New Roman', serif;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='24' font-size='24'%3E⭐%3C/text%3E%3C/svg%3E") 16 16, auto;
}

.marquee-bar {
  background: linear-gradient(90deg, #ff0000, #ff7700, #ffff00, #00ff00, #0000ff, #8b00ff, #ff0000);
  background-size: 200%;
  animation: rainbow 2s linear infinite;
  padding: 4px 0;
  overflow: hidden;
  border-top: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}
@keyframes rainbow { 0% { background-position: 0% } 100% { background-position: 200% } }

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #000000;
  text-shadow: 1px 1px 0 #ffffff;
}
@keyframes scroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

.main-table {
  width: 780px;
  margin: 10px auto;
  border: 4px ridge #c0c0c0;
  background-color: #c0c0c0;
}

.header {
  background-color: #000080;
  text-align: center;
  padding: 15px 10px 10px;
  border-bottom: 4px ridge #808080;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
}
.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  color: #ffff00;
  text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000000;
  letter-spacing: 2px;
  animation: blink-glow 1.5s ease-in-out infinite alternate;
  position: relative;
}
@keyframes blink-glow {
  from { text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000000; }
  to   { text-shadow: 3px 3px 0 #ff0000, 6px 6px 0 #000000, 0 0 20px #ffff00, 0 0 40px #ffaa00; }
}
.subtitle {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #00ffff;
  margin-top: 6px;
  animation: flicker 3s linear infinite;
}
@keyframes flicker { 0%,96%,100% { opacity: 1; } 97%,99% { opacity: 0.3; } }

.navbar {
  background: linear-gradient(180deg, #808080, #404040);
  padding: 6px 10px;
  border-bottom: 3px ridge #c0c0c0;
  text-align: center;
}
.navbar a {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 10px;
  margin: 2px;
  background: linear-gradient(180deg, #a0a0a0, #606060);
  border: 2px outset #d0d0d0;
  text-shadow: 1px 1px 0 #000;
}
.navbar a:hover { background: linear-gradient(180deg, #606060, #a0a0a0); border-style: inset; color: #ffff00; }

.content-wrap { display: flex; gap: 0; align-items: flex-start; }

.sidebar {
  width: 180px; min-width: 180px;
  background-color: #000080;
  border-right: 4px ridge #808080;
  padding: 10px 8px;
  font-family: 'VT323', monospace;
  font-size: 18px;
}
.sidebar-box { border: 2px inset #808080; background: #000040; padding: 8px; margin-bottom: 10px; }
.sidebar-box h3 {
  font-family: 'Press Start 2P', monospace; font-size: 8px;
  color: #00ff00; text-shadow: 0 0 6px #00ff00;
  margin-bottom: 8px; border-bottom: 1px solid #00ff00; padding-bottom: 4px;
}
.sidebar-box ul { list-style: none; }
.sidebar-box ul li::before { content: "▶ "; color: #ffff00; font-size: 12px; }
.sidebar-box ul li { color: #ffffff; font-size: 16px; margin-bottom: 3px; cursor: pointer; }
.sidebar-box ul li:hover { color: #ffff00; text-decoration: underline; }

.hit-counter { border: 2px inset #808080; background: #000000; padding: 8px; text-align: center; margin-bottom: 10px; color: #00ff00; font-family: 'VT323', monospace; font-size: 15px; }
.counter-num { font-family: 'Press Start 2P', monospace; font-size: 20px; color: #ff0000; text-shadow: 0 0 8px #ff0000; display: block; margin-top: 5px; letter-spacing: 3px; }

.spinning-thing { text-align: center; font-size: 30px; animation: spin 2s linear infinite; display: block; margin: 5px auto; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.main-content { flex: 1; padding: 10px 12px; background-color: #ffffff; color: #000000; font-family: 'Times New Roman', serif; font-size: 14px; line-height: 1.6; }

.welcome-box { border: 4px solid #000080; background: linear-gradient(135deg, #000080 0%, #0000cc 50%, #000080 100%); padding: 12px; margin-bottom: 12px; text-align: center; }
.welcome-box h2 { font-family: 'Press Start 2P', monospace; font-size: 12px; color: #ffff00; text-shadow: 2px 2px 0 #ff0000; margin-bottom: 8px; }
.welcome-box p { font-family: 'VT323', monospace; font-size: 20px; color: #00ffff; }

.star-divider { text-align: center; font-size: 16px; margin: 10px 0; color: #000080; letter-spacing: 4px; }
.section-header { background: linear-gradient(90deg, #000080, #0000ff, #000080); color: #ffff00; font-family: 'Press Start 2P', monospace; font-size: 10px; padding: 6px 10px; margin: 12px 0 6px; border: 2px outset #8080ff; text-shadow: 1px 1px 0 #000000; }
.content-section { border: 2px inset #808080; background-color: #f0f0f0; padding: 10px; margin-bottom: 10px; font-size: 14px; }
.content-section p { margin-bottom: 6px; }

.retro-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.retro-table th { background: #000080; color: #ffffff; padding: 5px 8px; border: 1px solid #808080; font-family: 'VT323', monospace; font-size: 17px; }
.retro-table td { padding: 4px 8px; border: 1px solid #808080; background: #ffffff; }
.retro-table tr:nth-child(even) td { background: #e0e0ff; }

.guestbook { border: 3px ridge #808080; background: #ffffc0; padding: 10px; margin: 10px 0; }
.guestbook h3 { font-family: 'Press Start 2P', monospace; font-size: 9px; color: #000080; margin-bottom: 8px; }
.gb-entry { border-bottom: 1px dashed #808080; padding: 5px 0; font-size: 13px; }
.gb-name { color: #0000cc; font-weight: bold; }
.gb-msg { color: #000000; font-style: italic; }

.blink { animation: blinky 1s step-start infinite; }
@keyframes blinky { 50% { opacity: 0; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.badge { font-family: 'Press Start 2P', monospace; font-size: 7px; padding: 3px 6px; border: 2px outset #c0c0c0; cursor: pointer; white-space: nowrap; }
.badge:hover { border-style: inset; }
.b1 { background: #ff0000; color: #ffffff; }
.b2 { background: #000080; color: #ffffff; }
.b3 { background: #008000; color: #ffffff; }
.b4 { background: #800080; color: #ffffff; }
.b5 { background: #000000; color: #00ff00; }
.b6 { background: #ff6600; color: #000000; }

.footer { background: #000080; color: #ffffff; text-align: center; padding: 10px; border-top: 4px ridge #808080; font-family: 'VT323', monospace; font-size: 16px; }
.footer a { color: #00ffff; text-decoration: underline; }
.footer-stars { color: #ffff00; letter-spacing: 6px; font-size: 20px; }

.alert-box { border: 3px solid #000000; background: #c0c0c0; padding: 0; margin: 10px 0; box-shadow: 3px 3px 0 #000000; }
.alert-titlebar { background: linear-gradient(90deg, #000080, #0000ff); color: #ffffff; font-family: 'Press Start 2P', monospace; font-size: 9px; padding: 4px 8px; display: flex; justify-content: space-between; }
.alert-titlebar span:last-child { background: #c0c0c0; color: #000000; border: 2px outset #e0e0e0; padding: 0 5px; cursor: pointer; }
.alert-body { padding: 10px; font-size: 13px; color: #000000; }

.ascii-art { font-family: monospace; font-size: 11px; color: #000080; background: #f0f0ff; border: 1px solid #000080; padding: 6px; white-space: pre; line-height: 1.2; overflow-x: auto; margin: 6px 0; }

.under-construction { background: repeating-linear-gradient(45deg, #ffff00 0px, #ffff00 10px, #000000 10px, #000000 20px); padding: 8px; text-align: center; font-family: 'Press Start 2P', monospace; font-size: 9px; color: #ff0000; text-shadow: 1px 1px 0 #ffffff; border: 3px solid #ff0000; margin: 10px 0; }