/* ===== 1995 GEOCITIES VIBES — shared stylesheet for Anna's World Chat ===== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  background-color: #000033;
  background-image:
    radial-gradient(circle, #ff00ff22 1px, transparent 1px),
    radial-gradient(circle, #00ffff22 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  color: #ffff00;
  font-family: "Comic Sans MS", "Courier New", monospace;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* TILED STAR BACKGROUND */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('images/gifs/IEVR5DS4VNVODYR7JEXFFIRW353OKF5R.gif');
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* RAINBOW BORDER ANIMATION */
@keyframes rainbow {
  0%   { border-color: #ff0000; }
  14%  { border-color: #ff7700; }
  28%  { border-color: #ffff00; }
  42%  { border-color: #00ff00; }
  57%  { border-color: #0000ff; }
  71%  { border-color: #8b00ff; }
  85%  { border-color: #ff00ff; }
  100% { border-color: #ff0000; }
}

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

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

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

@keyframes neonGlow {
  0%, 100% {
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    color: #ff00ff;
  }
  50% {
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 40px #00ffff;
    color: #00ffff;
  }
}

@keyframes floatUD {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes counterFlicker {
  0%, 95%, 100% { opacity: 1; }
  96%, 98% { opacity: 0.3; }
}

@keyframes scrollLeft {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 10px 0 5px;
  position: relative;
  z-index: 10;
  border-bottom: 4px solid;
  animation: rainbow 1s linear infinite;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(14px, 3vw, 28px);
  animation: neonGlow 1.5s ease-in-out infinite;
  display: block;
  margin: 8px 0;
  letter-spacing: 2px;
}

.blink {
  animation: blink 0.8s step-end infinite;
}

.blink-slow {
  animation: blink 1.5s step-end infinite;
}

/* RETRO NAV BAR */
.retro-nav {
  text-align: center;
  background: #000022;
  border-top: 3px solid #00ffff;
  border-bottom: 3px solid #00ffff;
  padding: 7px 4px;
  position: relative;
  z-index: 10;
}

.retro-nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #00ffff;
  text-decoration: underline;
  text-shadow: 0 0 6px #00ffff;
  margin: 0 8px;
  white-space: nowrap;
  display: inline-block;
  padding: 3px 2px;
}

.retro-nav a:hover {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff, 0 0 16px #ff00ff;
}

.retro-nav a.active {
  color: #ffff00;
  text-shadow: 0 0 8px #ffff00;
  animation: blink 1.5s step-end infinite;
}

.retro-nav .nav-star {
  color: #ff69b4;
  font-size: 10px;
}

/* MARQUEE BARS */
.marquee-bar {
  background: #000;
  border-top: 3px solid #ff00ff;
  border-bottom: 3px solid #ff00ff;
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  color: #00ff00;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  position: relative;
  z-index: 10;
}

.marquee-inner {
  display: inline-block;
  animation: scrollLeft 18s linear infinite;
}

.marquee-bar.reverse .marquee-inner {
  animation: scrollLeft 22s linear infinite reverse;
}

/* MAIN LAYOUT */
.main-layout {
  display: flex;
  gap: 0;
  min-height: 80vh;
  position: relative;
  z-index: 5;
}

/* LEFT & RIGHT SIDEBAR */
.sidebar {
  width: 130px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  background: linear-gradient(180deg, #000033 0%, #110022 50%, #000033 100%);
  border: 2px solid;
  animation: rainbow 2s linear infinite;
  overflow: hidden;
}

.sidebar img {
  max-width: 100%;
  image-rendering: pixelated;
}

.sidebar .gif-label {
  font-size: 8px;
  color: #ff69b4;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  animation: blink 1s step-end infinite;
}

@media (max-width: 700px) {
  .sidebar { display: none; }
}

/* CENTRE CHAT / CONTENT AREA */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  gap: 8px;
  min-width: 0;
}

.chat-title-box {
  border: 3px solid #ff00ff;
  background: #110033;
  padding: 6px 14px;
  text-align: center;
  animation: rainbow 1s linear infinite;
  width: 100%;
  box-sizing: border-box;
}

.chat-title-box h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #00ffff;
  margin: 4px 0;
  text-shadow: 0 0 8px #00ffff, 0 0 16px #00ffff;
}

.chat-title-box p {
  font-size: 11px;
  color: #ffff00;
  margin: 2px 0;
}

.gif-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gif-row img {
  animation: floatUD 2s ease-in-out infinite;
  image-rendering: pixelated;
}

.gif-row img:nth-child(2) { animation-delay: 0.3s; }
.gif-row img:nth-child(3) { animation-delay: 0.6s; }
.gif-row img:nth-child(4) { animation-delay: 0.9s; }
.gif-row img:nth-child(5) { animation-delay: 1.2s; }

/* IRC EMBED */
.irc-frame-wrapper {
  width: 100%;
  border: 5px solid;
  animation: rainbow 0.8s linear infinite;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #00ffff, inset 0 0 10px #000;
  position: relative;
}

.irc-frame-wrapper iframe {
  width: 100%;
  height: 480px;
  border: none;
  display: block;
}

/* NEON VISITOR COUNTER */
.counter-section {
  text-align: center;
  padding: 10px;
  position: relative;
  z-index: 10;
  background: #000;
  border-top: 4px solid;
  animation: rainbow 1s linear infinite;
}

.counter-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ff00ff;
  text-shadow: 0 0 6px #ff00ff;
  margin-bottom: 6px;
}

.counter-display {
  display: inline-flex;
  gap: 3px;
  background: #000;
  border: 2px solid #00ff00;
  padding: 4px 8px;
  box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
  animation: counterFlicker 4s ease-in-out infinite;
}

.counter-digit {
  font-family: 'Press Start 2P', monospace;
  font-size: 20px;
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00;
  width: 22px;
  text-align: center;
  background: #001100;
  border: 1px solid #00ff00;
  padding: 2px;
}

.counter-footer {
  font-size: 9px;
  color: #ffff00;
  margin-top: 6px;
  font-family: 'Press Start 2P', monospace;
}

/* RAINBOW DIVIDER */
.rainbow-divider {
  height: 6px;
  background: linear-gradient(90deg,
    #ff0000, #ff7700, #ffff00, #00ff00,
    #0000ff, #8b00ff, #ff00ff, #ff0000);
  background-size: 200% 100%;
  animation: scrollLeft 3s linear infinite;
  width: 100%;
}

/* SPINNING STAR */
.spin-star {
  animation: spin 2s linear infinite;
  display: inline-block;
}

/* UNDER CONSTRUCTION */
.under-construction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px;
  background: #110000;
  border: 2px dashed #ffff00;
  margin: 4px 0;
}

.under-construction span {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ffff00;
  animation: blink 0.6s step-end infinite;
}

/* RETRO LINK */
.retro-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ff69b4;
  text-decoration: underline;
  text-shadow: 0 0 6px #ff69b4;
  cursor: pointer;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 10px;
  background: #000011;
  border-top: 3px solid #ff00ff;
  position: relative;
  z-index: 10;
}

.site-footer p {
  font-size: 10px;
  color: #888;
  font-family: 'Press Start 2P', monospace;
  margin: 3px 0;
}

.best-viewed {
  font-size: 8px;
  color: #00ffff;
  font-family: 'Press Start 2P', monospace;
  animation: blink 1.5s step-end infinite;
}

/* FLOATING HEARTS */
.floating-hearts {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  animation: floatUD 3s ease-in-out infinite;
  opacity: 0.4;
}

.float-heart:nth-child(1)  { left: 5%;  top: 15%; animation-delay: 0s;    animation-duration: 2.5s; }
.float-heart:nth-child(2)  { left: 92%; top: 20%; animation-delay: 0.5s;  animation-duration: 3s; }
.float-heart:nth-child(3)  { left: 3%;  top: 55%; animation-delay: 1s;    animation-duration: 2s; }
.float-heart:nth-child(4)  { left: 94%; top: 60%; animation-delay: 1.5s;  animation-duration: 3.5s; }
.float-heart:nth-child(5)  { left: 7%;  top: 80%; animation-delay: 0.8s;  animation-duration: 2.8s; }
.float-heart:nth-child(6)  { left: 90%; top: 85%; animation-delay: 0.3s;  animation-duration: 2.2s; }

/* SCROLLING TEXT AT TOP */
.top-scroll {
  background: #ff00ff;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 3px 0;
  overflow: hidden;
  white-space: nowrap;
}

.top-scroll-inner {
  display: inline-block;
  animation: scrollLeft 12s linear infinite;
}

/* PULSE HEARTS IN SIDEBAR */
.pulse-gif {
  animation: pulse 1s ease-in-out infinite;
}

.pulse-gif:nth-child(even) {
  animation-delay: 0.5s;
}

/* NEON TEXT */
.neon-pink {
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

.neon-cyan {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff;
}

.neon-yellow {
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00, 0 0 10px #ffff00;
}

.neon-green {
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

/* ============================================================
   PAGE CONTENT PANELS (guestbook / gallery / about)
   ============================================================ */

.retro-panel {
  border: 3px solid #ff00ff;
  background: #110033;
  padding: 14px;
  width: 100%;
  box-sizing: border-box;
  animation: rainbow 2s linear infinite;
}

.retro-panel h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
  margin: 0 0 10px;
  text-align: center;
}

/* GUESTBOOK FORM */
.gb-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gb-form label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ff69b4;
}

.gb-form input,
.gb-form textarea {
  background: #000022;
  border: 2px inset #ff00ff;
  color: #ffff00;
  font-family: "Comic Sans MS", "Courier New", monospace;
  font-size: 14px;
  padding: 6px 8px;
  width: 100%;
  box-sizing: border-box;
}

.gb-form input:focus,
.gb-form textarea:focus {
  outline: 2px solid #00ffff;
  box-shadow: 0 0 10px #00ffff;
}

.retro-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #000;
  background: linear-gradient(180deg, #ff00ff, #aa00aa);
  border: 3px outset #ff69b4;
  padding: 8px 14px;
  cursor: pointer;
  text-shadow: none;
  align-self: center;
}

.retro-btn:hover {
  background: linear-gradient(180deg, #00ffff, #0088aa);
  border-color: #00ffff;
}

.retro-btn:active {
  border-style: inset;
  transform: scale(0.97);
}

/* GUESTBOOK ENTRIES */
.gb-entry {
  border: 2px dashed #00ffff;
  background: #000022;
  padding: 8px 10px;
  margin: 8px 0;
}

.gb-entry .gb-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ff69b4;
  text-shadow: 0 0 6px #ff69b4;
}

.gb-entry .gb-date {
  font-size: 10px;
  color: #888;
  font-family: "Courier New", monospace;
}

.gb-entry .gb-msg {
  color: #ffff00;
  font-size: 13px;
  margin: 6px 0 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

.gb-delete {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #ff0000;
  background: none;
  border: 1px dashed #ff0000;
  padding: 2px 6px;
  cursor: pointer;
  float: right;
}

.gb-delete:hover { background: #330000; }

.gb-empty {
  text-align: center;
  color: #ff69b4;
  font-size: 12px;
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  width: 100%;
}

.gallery-item {
  border: 4px ridge #ff00ff;
  background: #000022;
  padding: 6px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease-out;
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: #00ffff;
  box-shadow: 0 0 15px #00ffff;
}

.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery-item .g-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #00ffff;
  margin-top: 5px;
  word-break: break-word;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 20, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border: 5px solid;
  animation: rainbow 1s linear infinite;
  box-shadow: 0 0 30px #ff00ff;
}

.lightbox .lb-caption {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #ffff00;
  text-align: center;
}

.lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #ff0000;
  background: #000;
  border: 2px outset #ff0000;
  padding: 6px 10px;
  cursor: pointer;
}

/* ABOUT PAGE */
.about-avatar {
  width: 140px;
  height: 140px;
  border: 5px ridge #ff00ff;
  object-fit: cover;
  image-rendering: auto;
  box-shadow: 0 0 20px #ff00ff;
}

.about-text {
  color: #ffff00;
  font-size: 14px;
  line-height: 1.6;
}

.about-text strong { color: #00ffff; }

.interest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.interest-list li {
  padding: 5px 0;
  font-size: 13px;
  color: #ffff00;
}

.interest-list li::before {
  content: '★ ';
  color: #ff69b4;
}

.link-table {
  width: 100%;
  border-collapse: collapse;
}

.link-table td {
  border: 1px dashed #00ffff;
  padding: 6px 8px;
  font-size: 12px;
}

.link-table td:first-child {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #ff69b4;
  white-space: nowrap;
}

.link-table a { color: #00ffff; }

/* ABOUT PAGE — extra retro content classes */
.retro-text {
  color: #ffff00;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}

.retro-text b { color: #00ffff; }

.retro-table {
  width: 100%;
  border-collapse: collapse;
}

.retro-cell {
  border: 2px dashed #00ffff;
  background: #000022;
  padding: 10px;
  font-size: 12px;
  color: #ffff00;
  line-height: 1.5;
  width: 50%;
  vertical-align: top;
}

.retro-cell b {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  display: block;
  margin-bottom: 6px;
}

.retro-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.retro-links li {
  padding: 6px 0;
  font-size: 12px;
  color: #ffff00;
  line-height: 1.6;
}
