/* StoopidHooman.com — proudly stuck in 1999 */

@keyframes rainbow {
  0%   { color: #ff0066; }
  25%  { color: #ffcc00; }
  50%  { color: #00ff66; }
  75%  { color: #00ccff; }
  100% { color: #ff0066; }
}
@keyframes blinker { 50% { opacity: 0; } }
@keyframes wobble  { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

html, body {
  margin: 0; padding: 0;
  background:
    repeating-linear-gradient(45deg, #2a004f 0 12px, #1a0033 12px 24px);
  color: #fff;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", system-ui, sans-serif;
  font-size: 15px;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><text y='22' font-size='22'>%F0%9F%A4%A1</text></svg>") 4 4, auto;
}

a { color: #00e1ff; text-decoration: underline; }
a:visited { color: #ff66ff; }
a:hover { color: #ffff00; background: #ff0066; }

.page {
  width: 95%;
  max-width: 880px;
  margin: 12px auto;
  background: #000;
  border: 4px ridge #ff00aa;
  box-shadow: 0 0 0 2px #00ff66, 0 0 24px #ff00aa;
  padding: 6px;
}

/* TOP BAR */
.topbar {
  width: 100%;
  background: linear-gradient(180deg, #ff0066, #6600cc);
  border: 3px outset #ffccff;
  margin-bottom: 6px;
}
.topbar td { padding: 8px; text-align: center; }
.logo {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 44px;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #00ffff, 4px 0 0 #ffff00;
  animation: wobble 2.4s ease-in-out infinite;
}
.logo a, .logo a:visited { color: #ffff00; text-decoration: none; background: none; }
.logo .dotcom { color: #00ff66; font-size: 26px; }
.tagline {
  font-style: italic;
  font-size: 14px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  margin-top: 4px;
}
.blink { animation: blinker 0.9s step-start infinite; display: inline-block; }
.newsticker {
  display: block;
  margin-top: 8px;
  background: #000;
  color: #ffff00;
  border: 2px inset #ff00aa;
  font-weight: bold;
  padding: 4px 0;
  font-size: 13px;
}

/* NAV */
.navbar {
  width: 100%;
  background: #111;
  border: 3px ridge #00ff66;
  margin-bottom: 6px;
}
.navbar td { padding: 6px; text-align: center; }
.navlink {
  display: inline-block;
  padding: 4px 6px;
  color: #00ff66 !important;
  background: #000;
  border: 2px outset #00ff66;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 14px;
}
.navlink:hover {
  color: #000 !important;
  background: #00ff66;
  border-style: inset;
}
.navlink.active {
  color: #ffff00 !important;
  background: #220044;
  border-color: #ffff00;
  animation: rainbow 2s linear infinite;
}
.submitlink {
  color: #ff00aa !important;
  border-color: #ff00aa;
  text-shadow: 1px 1px 0 #000;
}

/* CONTENT */
.content {
  display: block;
  background: #0a0024;
  border: 3px inset #00ccff;
  padding: 14px;
  min-height: 280px;
}

.section-title {
  font-size: 22px;
  color: #ffff00;
  text-shadow: 2px 2px 0 #ff0066;
  margin: 0 0 10px;
  border-bottom: 2px dashed #00ff66;
  padding-bottom: 4px;
}

/* CONFESSION CARD */
.conf {
  background:
    linear-gradient(180deg, #1a0044 0%, #2a005f 100%);
  border: 3px ridge #ff00aa;
  padding: 12px 14px;
  margin: 0 0 14px;
  box-shadow: 4px 4px 0 #000;
  position: relative;
}
.conf:nth-child(odd) { border-color: #00ccff; }
.conf:nth-child(3n)  { border-color: #ffff00; }

.conf-meta {
  font-size: 12px;
  color: #aaffcc;
  margin-bottom: 6px;
  border-bottom: 1px dotted #444;
  padding-bottom: 4px;
}
.conf-meta .id {
  color: #ff00aa;
  font-weight: bold;
}
.conf-meta a { color: #ffff00; }
.conf-body {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.conf-body.truncated::after {
  content: " ... [click to read the rest of this stoopidness]";
  color: #ff00aa;
  font-style: italic;
  font-size: 13px;
}

/* REACTIONS */
.reactions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rxn {
  background: #000;
  color: #fff;
  border: 2px outset #00ff66;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rxn:hover { background: #220044; }
.rxn.active {
  border-style: inset;
  background: #ff00aa;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000;
}
.rxn .emoji { font-size: 18px; line-height: 1; }
.rxn .count { font-weight: bold; }

.replylink {
  margin-left: auto;
  font-size: 12px;
  color: #00e1ff;
}

/* SUBMIT FORM */
.form-box {
  background: #0a0024;
  border: 3px ridge #ffff00;
  padding: 14px;
}
.form-box label {
  display: block;
  font-weight: bold;
  color: #ffff00;
  margin-bottom: 6px;
  font-size: 15px;
}
.form-box textarea, .form-box input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #00ff66;
  border: 2px inset #ff00aa;
  padding: 8px;
  font-family: "Courier New", monospace;
  font-size: 15px;
  resize: vertical;
}
.form-box textarea { min-height: 140px; }
.form-box .hint { font-size: 12px; color: #aaffcc; margin-top: 4px; }
.form-box .charcount {
  font-size: 12px;
  color: #ffff00;
  text-align: right;
}
.form-box .charcount.over { color: #ff0066; font-weight: bold; }

/* honeypot — hide visually + screen reader */
.hp { position: absolute; left: -10000px; top: -10000px; height: 1px; width: 1px; overflow: hidden; }

button.bigbtn, .bigbtn {
  display: inline-block;
  background: linear-gradient(180deg, #ff0066, #990033);
  color: #ffff00;
  border: 3px outset #ffccff;
  padding: 10px 20px;
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
  animation: rainbow 3s linear infinite;
}
button.bigbtn:hover { border-style: inset; transform: translateY(1px); }

.flash {
  background: #003300;
  color: #00ff66;
  border: 2px ridge #00ff66;
  padding: 8px;
  margin-bottom: 10px;
  font-weight: bold;
}
.flash.error {
  background: #330000;
  color: #ff6666;
  border-color: #ff0066;
}

/* REPLIES */
.replies { margin-top: 12px; border-top: 2px dashed #444; padding-top: 10px; }
.replies h3 {
  margin: 0 0 8px;
  color: #00ff66;
  font-size: 16px;
}
.reply {
  background: #000;
  border-left: 4px solid #ff00aa;
  padding: 6px 10px;
  margin: 0 0 6px;
  font-size: 14px;
}
.reply:nth-child(odd)  { border-left-color: #00ccff; }
.reply:nth-child(3n)   { border-left-color: #ffff00; }
.reply .reply-meta { font-size: 11px; color: #888; }

.reply-form {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}
.reply-form input {
  flex: 1;
  background: #000;
  color: #00ff66;
  border: 2px inset #00ccff;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 14px;
}
.reply-form button {
  background: #00ff66;
  color: #000;
  border: 2px outset #00ff66;
  font-weight: bold;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}

/* FOOTER */
.footer {
  width: 100%;
  background: #111;
  border: 3px ridge #ffff00;
  margin-top: 6px;
  text-align: center;
}
.footer td { padding: 10px; }
.hitcounter {
  display: inline-block;
  margin: 0 0 8px;
  background: #000;
  border: 2px inset #888;
  padding: 4px 8px;
}
.counter-label {
  color: #00ff66;
  font-family: "Courier New", monospace;
  font-size: 12px;
  margin-right: 6px;
  vertical-align: middle;
}
.counter-digit {
  display: inline-block;
  background: #220000;
  color: #ff3300;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 22px;
  border: 1px solid #ff6600;
  padding: 0 4px;
  margin: 0 1px;
  text-shadow: 0 0 6px #ff3300;
}
.footer-links { font-size: 12px; color: #ccc; }
.footer-links a { color: #00ccff; }
.webring { color: #ff66ff; font-style: italic; }
.badges { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border: 1px solid #fff;
  font-family: "Courier New", monospace;
  font-weight: bold;
}
.badge-pink   { background: #ff00aa; color: #fff; }
.badge-cyan   { background: #00ccff; color: #000; }
.badge-lime   { background: #00ff66; color: #000; }
.badge-yellow { background: #ffff00; color: #000; }

/* MOBILE: keep the chaos but don't break */
@media (max-width: 640px) {
  .logo { font-size: 30px; }
  .logo .dotcom { font-size: 18px; }
  .navbar td { display: block; padding: 3px; }
  .navlink { display: block; }
  .content { padding: 10px; }
  .reactions { gap: 4px; }
  .rxn { padding: 3px 6px; font-size: 13px; }
  .badges { font-size: 9px; }
}
