/* Dakota's Wacky World — GeoCities era, baby */

@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body {
  background-color: #000080;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1.5px),
    radial-gradient(circle, #ffff99 2px, transparent 2.5px);
  background-size: 80px 80px, 40px 40px, 200px 200px;
  background-position: 0 0, 20px 20px, 60px 30px;
  font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  font-size: 16px;
  color: #000;
  margin: 0;
  padding: 20px;
  animation: starfall 14s linear infinite;
}

@keyframes starfall {
  from { background-position: 0 0, 20px 20px, 60px 30px; }
  to   { background-position: 0 80px, 20px 60px, 60px 230px; }
}

/* Twinkling sparkle overlay — sits behind .page but over body bg */
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' width='300' height='300'><g fill='%23ffff99'><path d='M40 30 L 43 47 L 60 50 L 43 53 L 40 70 L 37 53 L 20 50 L 37 47 Z'/><path d='M210 80 L 213 92 L 225 95 L 213 98 L 210 110 L 207 98 L 195 95 L 207 92 Z' fill='%2300ffff'/><path d='M140 180 L 142 192 L 154 194 L 142 196 L 140 208 L 138 196 L 126 194 L 138 192 Z' fill='%23ff66ff'/><path d='M260 240 L 263 252 L 275 254 L 263 256 L 260 268 L 257 256 L 245 254 L 257 252 Z'/><path d='M70 220 L 72 230 L 82 232 L 72 234 L 70 244 L 68 234 L 58 232 L 68 230 Z' fill='%2300ffff'/></g></svg>");
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: twinkle 2.2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

a         { color: #0000ff; font-weight: bold; }
a:visited { color: #800080; }
a:hover   { color: #ff0000; background: #ffff00; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px dashed #ff00ff;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #fff;
  border: 2px solid #000;
  padding: 4px 10px;
  font-weight: bold;
  text-decoration: none;
  color: #000;
}
.skip-link:focus { top: 8px; }

.page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  background: #ffffcc;
  padding: 4px;
  border: 3px outset #c0c0c0;
  box-shadow: 4px 4px 0 #000;
}

/* Inner content area with its own border for that double-framed look */
.page > * {
  margin-left: 16px;
  margin-right: 16px;
}

.page > hr {
  margin-left: 0;
  margin-right: 0;
  border: none;
  height: 32px;
  background-color: #000;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32' width='24' height='32'><path d='M12 2 C 7 9, 3 14, 6 22 C 8 28, 10 31, 12 31 C 14 31, 16 28, 18 22 C 21 14, 17 9, 12 2 Z' fill='%23ff3300'/><path d='M12 8 C 9 13, 7 17, 9 23 C 10.5 28, 11 30, 12 30 C 13 30, 13.5 28, 15 23 C 17 17, 15 13, 12 8 Z' fill='%23ff9900'/><path d='M12 14 C 11 17, 10 19, 11 24 C 11.5 27, 11.7 28, 12 28 C 12.3 28, 12.5 27, 13 24 C 14 19, 13 17, 12 14 Z' fill='%23ffff00'/></svg>");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 24px 32px;
  animation: flameflicker 0.4s steps(2) infinite;
}

@keyframes flameflicker {
  0%   { background-position: 0 center; }
  100% { background-position: 4px center; }
}

/* Marquee banner */
.marquee {
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: #000;
  color: #ffff00;
  overflow: hidden;
  border-top: 3px ridge #ff00ff;
  border-bottom: 3px ridge #ff00ff;
  padding: 6px 0;
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 1px;
}
.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}
.marquee-inner b { color: #00ffff; }
.marquee-inner i { color: #ff66ff; font-style: normal; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Spinning email envelope */
.spin-envelope {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  animation: envspin 3.5s linear infinite;
  transform-style: preserve-3d;
}
@keyframes envspin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Header */
.site-header {
  text-align: center;
  padding: 16px 0 8px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background: linear-gradient(180deg, #ff6600, #ffcc00);
  border: 3px ridge #cc6600;
}

.site-title {
  font-size: 2.6em;
  font-weight: bold;
  margin: 0 0 2px;
  color: #0000cc;
  text-shadow: 2px 2px 0 #ff00ff, -1px -1px 0 #00ffff;
  letter-spacing: 2px;
}

.site-tagline {
  font-size: 1.1em;
  font-style: italic;
  margin: 0 0 6px;
  color: #660066;
  font-weight: bold;
}

/* Headings */
h2 {
  font-size: 1.5em;
  color: #cc0000;
  border-bottom: 3px double #cc0000;
  padding-bottom: 4px;
  margin: 24px 0 10px;
  text-shadow: 1px 1px 0 #ffcc00;
}

/* Section styling */
section p {
  line-height: 1.6;
}

ul {
  list-style: square;
}

ul li {
  margin-bottom: 4px;
  line-height: 1.5;
}

/* General table */
table.simple-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: .95em;
  border: 2px outset #888;
}
table.simple-table caption {
  text-align: left;
  margin-bottom: 6px;
  color: #660000;
  font-size: 1.1em;
}
table.simple-table th,
table.simple-table td {
  border: 1px inset #888;
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
table.simple-table th {
  background: #6666cc;
  color: #fff;
  font-weight: bold;
}
table.simple-table thead tr th {
  background: #333399;
  color: #ffff00;
  font-weight: bold;
}
table.simple-table tbody tr:nth-child(even) {
  background: #fff8dd;
}
table.simple-table tbody tr:nth-child(odd) {
  background: #ffffee;
}

/* FAQ */
details {
  margin: 8px 0;
  border: 2px outset #999;
  padding: 0;
  background: #eeeeff;
}
details summary {
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
  background: #9999cc;
  color: #fff;
  list-style: none;
}
details summary:hover {
  background: #7777aa;
}
details summary::-webkit-details-marker { display: none; }
details summary::before { content: ">> "; font-family: monospace; color: #ffff00; }
details[open] summary::before { content: "vv "; color: #ffff00; }
details[open] summary { background: #7777aa; }
details > p { margin: 0; padding: 10px 14px; color: #000; background: #eeeeff; }

/* Form */
.contact-form label {
  display: block;
  font-weight: bold;
  margin: 12px 0 4px;
  color: #003300;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 6px 8px;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 16px;
  border: 2px inset #888;
  background: #ffffff;
  color: #000;
  box-sizing: border-box;
}
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form button {
  margin-top: 14px;
  padding: 8px 28px;
  font-family: "Comic Neue", "Comic Sans MS", cursive;
  font-size: 1.1em;
  font-weight: bold;
  background: #33cc33;
  color: #fff;
  border: 3px outset #22aa22;
  cursor: pointer;
  text-shadow: 1px 1px 0 #006600;
}
.contact-form button:hover {
  background: #22aa22;
}
.contact-form button:active {
  border-style: inset;
  background: #119911;
}

/* Blinking NEW!! badge for What's New items */
.new-badge {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-weight: bold;
  font-size: 0.8em;
  padding: 1px 6px;
  margin-right: 4px;
  border: 2px outset #ff8888;
  text-shadow: 1px 1px 0 #660000;
  letter-spacing: 1px;
  vertical-align: middle;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Under construction banner */
.under-construction {
  border-style: solid;
  border-width: 10px;
  border-image: repeating-linear-gradient(45deg, #000 0 12px, #ffff00 12px 24px) 10;
  background: #ffff66;
  padding: 14px 18px;
  margin: 18px 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.05em;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.uc-icon {
  display: inline-block;
  animation: ucbob 0.9s ease-in-out infinite alternate;
}
@keyframes ucbob {
  from { transform: translateY(-3px) rotate(-4deg); }
  to   { transform: translateY(3px)  rotate(4deg); }
}
.uc-text {
  text-align: left;
  line-height: 1.3;
}
.uc-text small {
  font-weight: normal;
  font-style: italic;
  font-size: 0.85em;
  color: #663300;
}

/* Footer badges — classic 88x31 buttons */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  padding: 2px 4px;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.05;
  text-align: center;
  border: 1px solid #000;
  box-sizing: border-box;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  user-select: none;
}
.badge-netscape { background: linear-gradient(180deg, #444 0%, #000 100%); color: #00ccff; }
.badge-notepad  { background: #ffffff; color: #000; }
.badge-html     { background: #006699; color: #ffcc00; }
.badge-y2k      { background: #000; color: #00ff00; }
.badge-comicsans{ background: #ff66cc; color: #ffff00; }

/* Visitor counter */
.counter-wrap {
  text-align: center;
  margin: 12px 0;
  padding: 8px;
  font-weight: bold;
  color: #003366;
}

/* Footer */
footer {
  margin: 0 16px;
  padding: 12px 0;
  border-top: 3px double #666;
  font-size: .85em;
  text-align: center;
  color: #333;
}

/* Honeypot / sr-only */
.sr-only,
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 500px) {
  body { padding: 8px; }
  .page { padding: 4px; }
  .page > * {
    margin-left: 10px;
    margin-right: 10px;
  }
  .site-title { font-size: 1.8em; }
  footer { margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body { background: #fff; padding: 0; }
  .page { border: none; box-shadow: none; background: #fff; }
  nav.main-nav { display: none; }
  a { color: #000; text-decoration: underline; }
}
