/* Jim Bob's Horse Club - authentic 1999 aesthetic */

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

:root {
  --hay-yellow: #ffcc00;
  --barn-red: #8b0000;
  --wood-brown: #4a2c0f;
  --dirt-brown: #2a1a00;
  --neon-green: #00ff00;
  --sky-blue: #00ccff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: #2a1a00;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  color: #ffe680;
  cursor: url('assets/cursor-horse.png') 4 4, auto;
}

a, button, .guestbook-form input, .guestbook-form textarea {
  cursor: url('assets/cursor-horse.png') 4 4, pointer;
}

.bg-tile {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(45deg, #3a2408 0, #3a2408 20px, #2a1a00 20px, #2a1a00 40px);
  opacity: 0.9;
}

.top-marquee {
  background: var(--barn-red);
  color: var(--hay-yellow);
  font-weight: bold;
  padding: 6px 0;
  border-bottom: 4px double var(--hay-yellow);
  font-size: 16px;
}

.mainframe {
  width: 800px;
  max-width: 100%;
  margin: 10px auto;
  background: #3a2408;
  border: 6px ridge var(--hay-yellow);
}

.header-table {
  background: linear-gradient(180deg, #5a3a10, #3a2408);
  border-bottom: 3px solid var(--hay-yellow);
}

.logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.site-title {
  font-size: 38px;
  color: var(--hay-yellow);
  text-shadow: 3px 3px 0 var(--barn-red), -1px -1px 0 #000;
  margin: 6px 0 0 0;
  letter-spacing: 1px;
}

.subtitle {
  font-style: italic;
  color: #ffe680;
  margin: 4px 0 12px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  background: #000;
  color: var(--neon-green);
  border: 2px solid var(--hay-yellow);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

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

@keyframes blinker {
  50% { opacity: 0; }
}

.nav-table {
  background: var(--dirt-brown);
  border-bottom: 3px dashed var(--hay-yellow);
  font-size: 14px;
}

.nav-table a {
  color: var(--sky-blue);
  text-decoration: none;
  font-weight: bold;
}

.nav-table a:hover {
  color: var(--hay-yellow);
  text-decoration: underline;
}

.midi-bar {
  background: #000;
  color: var(--neon-green);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-align: center;
  padding: 4px;
  border-bottom: 2px solid var(--hay-yellow);
}

.content-table {
  border-bottom: 2px groove var(--wood-brown);
}

.content-table h2 {
  color: var(--hay-yellow);
  border-bottom: 2px solid var(--barn-red);
  padding-bottom: 4px;
  text-shadow: 1px 1px 0 #000;
}

.content-table p, .content-table li {
  line-height: 1.5;
  font-size: 15px;
}

.hr-horses {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
}

.center-text { text-align: center; }

.token-table {
  background: repeating-linear-gradient(-45deg, #4a2c0f 0, #4a2c0f 10px, #3a2408 10px, #3a2408 20px);
}

.ticker-box {
  margin: 10px auto;
  border: 3px solid var(--hay-yellow);
  background: #000;
  color: var(--neon-green);
  font-family: 'Courier New', monospace;
}

.ticker-box .label {
  color: var(--hay-yellow);
  font-weight: bold;
  text-align: right;
}

.ca-pending {
  color: #ff4444;
  font-weight: bold;
}

.disclaimer-inline {
  font-size: 11px;
  color: #cbb37a;
  max-width: 600px;
  margin: 12px auto 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 4px ridge var(--hay-yellow);
  filter: contrast(1.1) saturate(1.2);
}

.tokenomics-table {
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.tokenomics-table td {
  border: 1px solid var(--wood-brown);
  padding: 6px 10px;
  font-size: 14px;
}

.tok-header td {
  background: var(--barn-red);
  color: var(--hay-yellow);
  font-weight: bold;
}

.roadmap-list, .howto-list {
  font-size: 15px;
}

.guestbook-table {
  background: var(--dirt-brown);
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}

.guestbook-form input,
.guestbook-form textarea {
  font-family: 'Courier New', monospace;
  background: #000;
  color: var(--neon-green);
  border: 2px inset var(--hay-yellow);
  padding: 6px;
}

.guestbook-form button {
  background: var(--barn-red);
  color: var(--hay-yellow);
  border: 3px outset var(--hay-yellow);
  padding: 8px;
  font-weight: bold;
  font-family: 'Comic Neue', cursive;
  cursor: pointer;
}

.guestbook-form button:active {
  border-style: inset;
}

#guestbook-msg {
  margin-top: 10px;
  font-weight: bold;
  color: var(--neon-green);
}

.social-link {
  color: var(--sky-blue);
  font-weight: bold;
  text-decoration: none;
}

.social-link:hover { color: var(--hay-yellow); }

.footer-table {
  background: #000;
}

.webring {
  color: var(--hay-yellow);
  font-size: 13px;
  margin-bottom: 8px;
}

.webring a { color: var(--sky-blue); }

.visitor-counter {
  font-family: 'Courier New', monospace;
  background: #111;
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--hay-yellow);
  color: var(--neon-green);
  letter-spacing: 2px;
}

.small-print {
  font-size: 10px;
  color: #886b3a;
  max-width: 600px;
  margin: 10px auto;
}

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

.tiny-badge {
  background: #222;
  border: 1px solid var(--hay-yellow);
  color: var(--hay-yellow);
  font-size: 9px;
  padding: 2px 5px;
  font-family: 'Courier New', monospace;
}

@media (max-width: 820px) {
  .mainframe { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-title { font-size: 26px; }
}
