/* INTERSLICE.TV -- 1999 STYLE */

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

/* ===================== RESET / BASE ===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #080810;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive;
  font-size: 13px;
  color: #cccccc;
}

/* ===================== TILED GIF BACKGROUND ===================== */
.bg-tiles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, 64px);
  overflow: hidden;
  pointer-events: none;
}

.bg-tile {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  animation: tile-cycle 2s ease-in-out infinite;
  opacity: 0.18;
}

@keyframes tile-cycle {
  0%   { opacity: 0.08;  transform: scale(0.8);  }
  20%  { opacity: 0.3;   transform: scale(1.05); }
  40%  { opacity: 0.1;   transform: scale(0.85); }
  60%  { opacity: 0.35;  transform: scale(1.0);  }
  80%  { opacity: 0.1;   transform: scale(0.9);  }
  100% { opacity: 0.08;  transform: scale(0.8);  }
}

/* ===================== MARQUEES ===================== */
.top-marquee {
  display: block;
  background: #000;
  color: #ffff00;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 0;
  border-bottom: 3px solid #ff6600;
  border-top: 3px solid #ff6600;
  letter-spacing: 1px;
  position: relative;
  z-index: 10;
}

.marquee-counter {
  color: #ff4444;
}

.bottom-marquee {
  display: block;
  background: #000;
  color: #00ffff;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
  padding: 3px 0;
  border-top: 2px solid #333;
  margin-top: 6px;
  position: relative;
  z-index: 10;
}

/* ===================== PAGE WRAPPER ===================== */
.page-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 4px;
  position: relative;
  z-index: 5;
}

/* ===================== HEADER ===================== */
.header-box {
  background: linear-gradient(180deg, #000033 0%, #000088 40%, #000033 100%);
  border: 3px solid #ff6600;
  text-align: center;
  padding: 12px 8px 0 8px;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

.header-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(255, 102, 0, 0.05) 8px,
    rgba(255, 102, 0, 0.05) 9px
  );
  pointer-events: none;
}

.site-title {
  font-family: 'VT323', 'Impact', 'Arial Black', sans-serif;
  font-size: 64px;
  font-weight: bold;
  color: #ffffff;
  text-shadow:
    0 0 8px #00ffff,
    0 0 20px #0088ff,
    0 0 40px #0044ff,
    3px 3px 0 #ff6600;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 4px;
}

.dot-tv {
  color: #00ffff;
  text-shadow:
    0 0 8px #00ffff,
    0 0 20px #00ffff,
    0 0 40px #00aaff;
}

.tagline {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  color: #ffff00;
  letter-spacing: 3px;
  margin: 4px 0;
}

.uc-strip {
  background: repeating-linear-gradient(
    45deg,
    #ffcc00,
    #ffcc00 10px,
    #000000 10px,
    #000000 20px
  );
  color: #fff;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  padding: 4px 8px;
  margin-top: 8px;
  letter-spacing: 2px;
}

.header-uc-row {
  background: rgba(0,0,0,0.7);
  padding: 6px 4px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.uc-warning {
  font-size: 14px;
  color: #ff4400;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ===================== UC BARS (between sections) ===================== */
.uc-bar {
  background: repeating-linear-gradient(
    -45deg,
    #1a0f00,
    #1a0f00 8px,
    #0a0500 8px,
    #0a0500 16px
  );
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  color: #ffcc00;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 5px 8px;
  margin: 4px 0;
  text-align: center;
  animation: uc-bar-pulse 1.5s ease-in-out infinite;
}

@keyframes uc-bar-pulse {
  0%, 100% { border-color: #ffcc00; box-shadow: 0 0 4px #ffcc00 inset; }
  50%       { border-color: #ff4400; box-shadow: 0 0 8px #ff4400 inset; }
}

/* ===================== INLINE UC GIFS ===================== */
.uc-inline-gif {
  background: repeating-linear-gradient(
    45deg,
    #220e00,
    #220e00 6px,
    #110700 6px,
    #110700 12px
  );
  border: 2px solid #ff8800;
  padding: 5px 10px;
  margin: 4px 0;
  text-align: center;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
  color: #ffcc00;
  letter-spacing: 1px;
}

.caution-text {
  font-size: 15px;
  color: #ffcc00;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #000;
}

/* ===================== CAUTION STRIPE ===================== */
.caution-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #ffcc00,
    #ffcc00 8px,
    #000 8px,
    #000 16px
  );
}

/* ===================== UC BADGE BOXES ===================== */
.uc-badge-box {
  text-align: center;
  padding: 4px;
  overflow: hidden;
}

.uc-badge-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.uc-badge-text {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 17px;
  font-weight: bold;
  color: #ffcc00;
  text-shadow: 1px 1px 0 #000, 0 0 6px #ffcc00;
  letter-spacing: 1px;
  line-height: 1.1;
  text-align: center;
}

/* ===================== BOUNCE ICON ===================== */
.bounce-icon {
  display: inline-block;
  font-size: 20px;
  animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0px);   }
  to   { transform: translateY(-5px);  }
}

/* ===================== MAIN TABLE ===================== */
.main-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
}

/* ===================== BOXES ===================== */
.box {
  background: rgba(0, 0, 30, 0.92);
  border: 2px solid #336699;
  padding: 6px 8px;
  margin-bottom: 6px;
  position: relative;
}

.box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ccff 30%, #00ccff 70%, transparent);
}

.box-title {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 15px;
  color: #00ffff;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 1px solid #335577;
  margin: -6px -8px 6px -8px;
  padding: 2px 8px;
  background: linear-gradient(90deg, #001133, #002244, #001133);
  text-transform: uppercase;
}

/* ===================== NAV ===================== */
.nav-link {
  display: block;
  color: #00ffff;
  text-decoration: none;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 15px;
  padding: 2px 0;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: #ffff00;
  text-shadow: 0 0 6px #ffff00;
}

/* ===================== COUNTER ===================== */
.counter-box {
  text-align: center;
}

.counter-display {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 6px 0 2px 0;
}

.counter-digit {
  display: inline-block;
  width: 18px;
  height: 24px;
  background: #000;
  border: 1px solid #006600;
  color: #00ff00;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 20px;
  text-align: center;
  line-height: 24px;
  text-shadow: 0 0 6px #00ff00;
}

.counter-label {
  font-size: 10px;
  color: #666;
  text-align: center;
}

/* ===================== AWARD BOX ===================== */
.award-box {
  text-align: center;
}

.award {
  display: inline-block;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 6px;
  margin: 3px;
  text-align: center;
  background: rgba(50, 40, 0, 0.6);
  text-shadow: 0 0 6px #ffcc00;
}

/* ===================== POLL ===================== */
.poll-box input[type=radio] {
  accent-color: #00ffff;
}

.poll-q {
  color: #ffff00;
  font-size: 12px;
  margin-bottom: 4px;
  font-weight: bold;
}

/* ===================== BUTTONS ===================== */
.retro-btn {
  background: linear-gradient(180deg, #336699, #002244);
  color: #00ffff;
  border: 2px outset #6699cc;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 10px;
  cursor: pointer;
  letter-spacing: 1px;
}

.retro-btn:hover {
  background: linear-gradient(180deg, #4488bb, #003366);
  color: #ffff00;
}

.retro-btn:active {
  border-style: inset;
}

/* ===================== LINKS ===================== */
.retro-link {
  color: #ff69b4;
  text-decoration: underline;
}

.retro-link:hover {
  color: #ffff00;
  text-shadow: 0 0 4px #ffff00;
}

a {
  color: #00ccff;
}

a:visited {
  color: #cc44ff;
}

/* ===================== DIVIDER ===================== */
.divider {
  color: #336699;
  text-align: center;
  letter-spacing: 3px;
  margin: 8px 0 0 0;
}

/* ===================== INFO TABLE ===================== */
.info-label {
  color: #00ccff;
  font-weight: bold;
  white-space: nowrap;
  padding-right: 8px;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 1px;
}

.info-value {
  color: #cccccc;
  font-size: 12px;
}

/* ===================== LINKS LIST ===================== */
.links-list {
  margin: 4px 0;
  padding-left: 16px;
}

.links-list li {
  margin: 3px 0;
}

/* ===================== GUESTBOOK ===================== */
.guestbook-entry {
  background: rgba(0, 20, 60, 0.6);
  border-left: 3px solid #336699;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.gb-user {
  color: #00ffff;
  font-weight: bold;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
}

.gb-msg {
  color: #cccccc;
  font-style: italic;
}

.gb-date {
  color: #555;
  font-size: 10px;
}

.retro-input {
  background: #000;
  border: 1px inset #336699;
  color: #00ff00;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
  padding: 2px 4px;
  width: 38%;
}

.retro-input::placeholder {
  color: #335533;
}

/* ===================== NOW PLAYING ===================== */
.now-playing {
  text-align: center;
  padding: 4px 0;
}

.np-song {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  color: #00ffff;
  margin: 4px 0;
}

.np-bar {
  height: 6px;
  background: #111;
  border: 1px solid #333;
  margin: 4px 2px;
}

.np-progress {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, #006600, #00cc00, #00ff00);
  animation: progress-pulse 4s ease-in-out infinite;
}

/* ===================== WEBRING ===================== */
.webring {
  text-align: center;
  font-size: 11px;
  line-height: 1.8;
}

/* ===================== FOOTER ===================== */
.footer {
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 10, 0.95);
  border: 2px solid #333;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
}

.footer-divider {
  color: #225588;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  width: 50px;
  height: 36px;
  border: 2px solid #336699;
  background: linear-gradient(180deg, #001133, #002244);
  color: #00ccff;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  padding-top: 2px;
}

/* ===================== ANIMATIONS ===================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

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

@keyframes progress-pulse {
  0%   { width: 55%; }
  50%  { width: 70%; }
  100% { width: 55%; }
}

@keyframes glow-cycle {
  0%   { text-shadow: 0 0 6px #ff0000; color: #ff4444; }
  33%  { text-shadow: 0 0 6px #ffff00; color: #ffff00; }
  66%  { text-shadow: 0 0 6px #ff00ff; color: #ff44ff; }
  100% { text-shadow: 0 0 6px #ff0000; color: #ff4444; }
}

.blink {
  animation: blink 1s step-start infinite;
}

.spin {
  display: inline-block;
  animation: spin 3s linear infinite;
}

.flash-red {
  animation: glow-cycle 2s linear infinite;
  font-weight: bold;
}
