/* styles for my homepage - leonardo 1999 */

/* Dual-theme visibility (must live here so GeoCities works without modern.css) */
[data-theme="geocities"] .modern-only {
  display: none !important;
}
[data-theme="modern"] .gc-only {
  display: none !important;
}
[data-theme="modern"] .wrap {
  display: none !important;
}

body {
  color: #00ff00;
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  margin: 0;
  padding: 12px;
}

/* Starfield only in GeoCities — keep off modern so tile size/repeat can't leak */
html[data-theme="geocities"] body {
  /* Deep purple night sky (ref: gold cross-flare starfield) */
  background-color: #0a0018;
  background-image:
    url("stars-base.svg"),
    linear-gradient(
      180deg,
      #5a2fc0 0%,
      #3b1a8f 28%,
      #1e0a4a 62%,
      #0a0018 100%
    );
  background-repeat: repeat, no-repeat;
  background-size: 220px 220px, 100% 100%;
  background-attachment: fixed, fixed;
}

/*
 * Twinkling gold sparkles (GeoCities only) — cross-flare stars glow in/out
 * out of phase, layered over the purple sky. Sit above body bg, under content.
 */
html[data-theme="geocities"] body::before,
html[data-theme="geocities"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
  background-attachment: fixed;
}

/* Layer A: medium gold 4-point flares */
html[data-theme="geocities"] body::before {
  background-image: url("stars-glow-a.svg");
  background-size: 240px 240px;
  background-position: 0 0;
  animation: star-glow-a 3.2s ease-in-out infinite;
}

/* Layer B: larger warm hero sparkles, offset tile + phase */
html[data-theme="geocities"] body::after {
  background-image: url("stars-glow-b.svg");
  background-size: 280px 280px;
  background-position: 90px 60px;
  animation: star-glow-b 4.6s ease-in-out infinite;
  animation-delay: -1.8s;
}

html[data-theme="geocities"] body > * {
  position: relative;
  z-index: 1;
}

@keyframes star-glow-a {
  0%,
  100% {
    opacity: 0.25;
    filter: brightness(0.75);
  }
  35% {
    opacity: 1;
    filter: brightness(1.15);
  }
  55% {
    opacity: 0.55;
    filter: brightness(0.9);
  }
  75% {
    opacity: 0.9;
    filter: brightness(1.05);
  }
}

@keyframes star-glow-b {
  0%,
  100% {
    opacity: 0.2;
    filter: brightness(0.7);
  }
  30% {
    opacity: 0.45;
    filter: brightness(0.85);
  }
  50% {
    opacity: 1;
    filter: brightness(1.25);
  }
  72% {
    opacity: 0.35;
    filter: brightness(0.8);
  }
}
a { color: #00ffff; font-weight: bold; }
a:visited { color: #ff00ff; }
a:hover { color: #ffff00; background: #ff00ff; }
.wrap {
  width: 780px;
  margin: 0 auto;
  background: #000033;
  border: 4px ridge #ff00ff;
  padding: 8px;
}
.banner {
  text-align: center;
  background: #220044;
  border: 3px double #00ffff;
  padding: 10px;
  margin-bottom: 10px;
}
h1 {
  font-family: "Comic Sans MS", cursive;
  color: #ff66cc;
  text-shadow: 2px 2px #00ffff, -1px -1px #ffff00;
  font-size: 36px;
  margin: 6px 0;
}
h2 {
  color: #ffff00;
  font-size: 22px;
  border-bottom: 2px dashed #ff00ff;
  padding-bottom: 4px;
}
.blink {
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blink {
    animation: none;
  }
  .marquee-bar marquee {
    /* freeze scrolling when user prefers reduced motion */
    -webkit-animation: none;
  }
  html[data-theme="geocities"] body::before,
  html[data-theme="geocities"] body::after {
    animation: none;
    opacity: 0.85;
    filter: none;
  }
}
.marquee-bar {
  /* #aa00aa keeps the hot-magenta look while meeting 4.5:1 with yellow */
  background: #aa00aa;
  color: #ffff00;
  font-weight: bold;
  padding: 4px 0;
  margin: 8px 0;
  border: 2px solid #00ffff;
}
.marquee-bar marquee {
  color: #ffff00;
}
.main-table {
  width: 100%;
  border-collapse: collapse;
}
.main-table td {
  vertical-align: top;
  padding: 8px;
}
.sidebar {
  width: 180px;
  background: #110022;
  border: 2px solid #00ff00;
  color: #66ff66;
  font-size: 13px;
}
.content {
  background: #000020;
  border: 2px solid #ffff00;
  color: #eeeeee;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.45;
}
.content p { margin: 0 0 12px 0; }
.photo {
  float: left;
  margin: 0 12px 8px 0;
  border: 4px ridge #ff00ff;
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: #333;
}
.photo--lg {
  width: 140px;
  height: 140px;
  float: none;
  display: block;
  margin: 0 auto 12px auto;
}
.skills {
  width: 100%;
  border: 2px solid #00ffff;
  background: #001100;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
}
.skills td, .skills th {
  border: 1px solid #00aa00;
  padding: 4px 8px;
  text-align: left;
}
.counter {
  display: inline-block;
  background: #000;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-size: 20px;
  letter-spacing: 4px;
  border: 3px inset #666;
  padding: 4px 10px;
}
.box {
  border: 3px ridge #00ffff;
  background: #1a0033;
  padding: 10px;
  margin: 12px 0;
  text-align: center;
}
.guestbook {
  border: 3px dashed #ffff00;
  background: #330011;
  padding: 10px;
  margin: 12px 0;
}
.footer {
  text-align: center;
  font-size: 12px;
  color: #aaaaaa;
  margin-top: 12px;
  font-family: "Times New Roman", Times, serif;
}
hr.sparkle {
  border: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #ff00ff 0 10px, #00ffff 10px 20px, #ffff00 20px 30px);
}
.webring {
  background: #222;
  border: 2px outset #888;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 6px;
  margin-top: 10px;
}
.construction {
  color: #ffcc00;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}
.hit-label {
  color: #00ffff;
  font-family: "Comic Sans MS", cursive;
  font-size: 13px;
}
.nav-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #440066;
  border: 2px outset #ff99ff;
  color: #ffff00 !important;
  padding: 6px;
  margin: 4px 0;
  font-family: "Comic Sans MS", cursive;
}
.nav-btn:hover {
  border-style: inset;
  background: #ff00ff;
  color: #000 !important;
}
.nav-btn--active {
  border-style: inset;
  background: #ff00ff;
  color: #000 !important;
  font-weight: bold;
}
.page-title {
  text-align: center;
  font-family: "Comic Sans MS", cursive;
  color: #ff66cc;
  font-size: 28px;
  margin: 0 0 8px 0;
}
.you-are-here {
  text-align: center;
  color: #00ff00;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  margin-bottom: 10px;
}
.gb-form {
  width: 90%;
  margin: 0 auto;
  text-align: left;
  font-family: "Comic Sans MS", cursive;
  color: #ffccff;
}
.gb-form label {
  display: block;
  margin-top: 8px;
  color: #ffff00;
}
.gb-form input,
.gb-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #00ff00;
  border: 2px inset #666;
  font-family: "Courier New", monospace;
  padding: 4px;
  margin-top: 2px;
}
.gb-form .submit-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: #440066;
  border: 3px outset #ff99ff;
  color: #ffff00;
  font-family: "Comic Sans MS", cursive;
  font-size: 16px;
  font-weight: bold;
  padding: 8px;
  cursor: pointer;
}
.gb-form .submit-btn:active {
  border-style: inset;
}
.gb-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.gb-status {
  font-family: "Comic Sans MS", cursive;
  font-size: 13px;
  min-height: 1.2em;
  margin: 8px 0 0 0;
}
/* honeypot - hidden from humans */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile-slot {
  margin: 8px 0;
}
.links-list {
  font-size: 16px;
  line-height: 1.8;
}
.links-list li {
  margin-bottom: 8px;
}
