/* ==========================================================
   SPARERIB BOWLING ASSOCIATION - Official Stylesheet v3.2
   Designed by the SBA Webmaster. Please do not steal!!
   ========================================================== */

body {
  margin: 0;
  padding: 16px 0 32px;
  background-color: #0a0a2e;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff, transparent),
    radial-gradient(1px 1px at 90px 120px, #ffff99, transparent),
    radial-gradient(2px 2px at 150px 60px, #ffffff, transparent),
    radial-gradient(1px 1px at 60px 170px, #99ccff, transparent),
    radial-gradient(1px 1px at 180px 190px, #ffffff, transparent);
  background-size: 200px 200px;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: #000000;
}

a { color: #0000cc; }
a:visited { color: #660099; }
a:hover { color: #ff0000; background: #ffff00; }

#wrapper {
  width: 780px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  background: #c0c0c0;
  border: 3px outset #e0e0e0;
}

/* ---------- HEADER ---------- */
#header {
  background: linear-gradient(to bottom, #cc0000 0%, #7a0000 60%, #330000 100%);
  border-bottom: 4px ridge #ffcc00;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
#header img { width: 110px; height: 90px; flex-shrink: 0; }
#header h1 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
  color: #ffcc00;
  text-shadow: 3px 3px 0 #000000, -1px -1px 0 #ff6600;
  line-height: 1;
}
#header .tagline {
  margin: 6px 0 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 14px;
  color: #ffffff;
  font-style: italic;
}

/* ---------- MARQUEE / TICKER ---------- */
#ticker {
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  border-top: 1px solid #333;
  border-bottom: 2px solid #ffcc00;
  overflow: hidden;
  white-space: nowrap;
  padding: 3px 0;
}
#ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 28s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- LAYOUT ---------- */
#columns { display: flex; align-items: flex-start; }
#nav { width: 150px; flex-shrink: 0; padding: 8px; }
#content {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 2px inset #e0e0e0;
  margin: 8px 0;
  padding: 10px 14px;
}
#sidebar { width: 170px; flex-shrink: 0; padding: 8px; }

/* ---------- NAV BUTTONS ---------- */
#nav a.btn {
  display: block;
  margin-bottom: 5px;
  padding: 5px 4px;
  background: linear-gradient(to bottom, #ffffff 0%, #d4d0c8 50%, #a8a49c 100%);
  border: 2px outset #ffffff;
  color: #000080;
  font-weight: bold;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
}
#nav a.btn:hover { background: linear-gradient(to bottom, #ffff99, #ffcc00); color: #cc0000; }
#nav a.btn:active { border-style: inset; }
#nav a.btn.current { background: linear-gradient(to bottom, #ff6666, #990000); color: #ffff00; }

/* ---------- BOXES ---------- */
.box {
  background: #ffffff;
  border: 2px solid #000080;
  margin-bottom: 10px;
  font-size: 11px;
}
.box h3 {
  margin: 0;
  padding: 3px 5px;
  background: linear-gradient(to right, #000080, #1084d0);
  color: #ffffff;
  font-size: 11px;
  font-family: Tahoma, Verdana, sans-serif;
}
.box .inner { padding: 6px; }
.box.center .inner { text-align: center; }

/* ---------- CONTENT ---------- */
#content h2 {
  margin: 0 0 8px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 20px;
  color: #990000;
  border-bottom: 2px dashed #ffcc00;
  padding-bottom: 3px;
}
#content h4 {
  margin: 14px 0 4px;
  color: #000080;
  font-size: 13px;
}
#content p { line-height: 1.5; }

hr.rainbow {
  height: 4px;
  border: 0;
  margin: 14px 0;
  background: linear-gradient(to right, red, orange, yellow, lime, cyan, blue, violet);
}

.news-item { margin-bottom: 12px; }
.news-item .date { color: #808080; font-size: 10px; }
.news-item .title { font-weight: bold; color: #cc0000; font-size: 13px; }

.new-badge {
  display: inline-block;
  background: #ff0000;
  color: #ffff00;
  font-size: 9px;
  font-weight: bold;
  padding: 0 3px;
  border: 1px solid #000;
  transform: rotate(-8deg);
  animation: blink 1s steps(1) infinite;
}
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.highlight { background: #ffff99; padding: 0 2px; }

/* ---------- TABLES ---------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  border: 2px outset #c0c0c0;
  margin: 6px 0 12px;
  font-size: 11px;
}
.table-scroll { overflow-x: auto; }
table.data th {
  background: #000080;
  color: #ffffff;
  padding: 4px;
  border: 1px solid #c0c0c0;
  text-align: left;
}
table.data td {
  padding: 3px 4px;
  border: 1px solid #c0c0c0;
}
table.data tr:nth-child(even) td { background: #e8e8ff; }
table.data tr.leader td { background: #ffffcc; font-weight: bold; }

/* ---------- FORMS ---------- */
fieldset {
  border: 2px groove #c0c0c0;
  margin: 0 0 10px;
  padding: 8px;
}
legend { font-weight: bold; color: #000080; }
.form-row { margin-bottom: 7px; }
.form-row label { display: inline-block; width: 120px; font-weight: bold; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font-family: Verdana, sans-serif;
  font-size: 11px;
  border: 2px inset #e0e0e0;
  padding: 2px;
  max-width: 100%;
  box-sizing: border-box;
}
textarea { width: 100%; }
.button98 {
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 11px;
  padding: 3px 14px;
  background: #d4d0c8;
  border: 2px outset #ffffff;
  cursor: pointer;
}
.button98:active { border-style: inset; }

/* ---------- WIDGETS ---------- */
.counter {
  display: inline-flex;
  gap: 1px;
  background: #000000;
  padding: 2px;
  border: 2px inset #808080;
}
.counter span {
  display: inline-block;
  width: 11px;
  background: linear-gradient(to bottom, #222 0%, #000 50%, #222 100%);
  color: #ff3300;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
}

#clock {
  font-family: "Courier New", monospace;
  font-size: 15px;
  font-weight: bold;
  color: #00ff00;
  background: #000000;
  padding: 3px;
  border: 2px inset #808080;
  display: inline-block;
}

.poll-bar {
  height: 9px;
  background: linear-gradient(to bottom, #66ff66, #009900);
  border: 1px solid #006600;
  margin: 1px 0 4px;
}

.construction {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #ffcc00 0 10px, #000000 10px 20px);
  padding: 4px;
}
.construction span {
  display: block;
  background: #ffcc00;
  color: #000000;
  font-weight: bold;
  font-size: 10px;
  padding: 3px 6px;
}

.badge88 {
  display: inline-block;
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  margin: 2px;
  border: 1px solid #000;
  font-family: Tahoma, sans-serif;
  font-size: 9px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  padding-top: 4px;
  vertical-align: top;
}
.badge88.ie { background: linear-gradient(#ffffff, #99ccff); color: #003399; }
.badge88.html { background: linear-gradient(#ffcc66, #ff6600); color: #ffffff; text-shadow: 1px 1px #000; }
.badge88.ring { background: linear-gradient(#333, #000); color: #ffcc00; }
.badge88.notepad { background: linear-gradient(#ffffff, #cccccc); color: #000; }

.webring { font-size: 10px; text-align: center; }

/* ---------- FOOTER ---------- */
#footer {
  background: #000080;
  color: #ffffff;
  text-align: center;
  font-size: 10px;
  padding: 8px;
  border-top: 3px ridge #ffcc00;
}
#footer a { color: #ffff00; }

/* ---------- SPARKLE CURSOR TRAIL ---------- */
.sparkle {
  position: fixed;
  pointer-events: none;
  color: #ffff00;
  font-size: 14px;
  z-index: 9999;
  animation: sparkle-fade 0.8s ease-out forwards;
}
@keyframes sparkle-fade {
  to { opacity: 0; transform: translateY(18px) scale(0.3); }
}

/* ---------- GUESTBOOK ---------- */
.gb-entry {
  border: 1px dotted #000080;
  background: #f4f4ff;
  padding: 6px;
  margin-bottom: 8px;
}
.gb-entry .who { font-weight: bold; color: #cc0000; }
.gb-entry .when { color: #808080; font-size: 10px; }

/* ---------- BESTUUR ---------- */
.board-photo {
  max-width: 440px;
  margin: 6px auto 4px;
  background: #fffef4;
  padding: 10px 10px 8px;
  border: 1px solid #999;
  box-shadow: 4px 4px 0 #808080;
  transform: rotate(-1deg);
}
.board-photo-frame { border: 2px inset #c0c0c0; }
.board-photo-frame img { display: block; width: 100%; height: auto; }
.photo-placeholder {
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #e8e8ff 0 12px, #d8d8f0 12px 24px);
  color: #000080;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
  line-height: 1.4;
}
.photo-placeholder .blink { font-size: 30px; }
.board-photo-caption {
  margin-top: 6px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 12px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
}
.bowler-card {
  background: linear-gradient(to bottom, #fffbe6, #ffeeb0);
  border: 3px ridge #cc9900;
  padding: 0 0 6px;
  font-size: 11px;
}
.bowler-card .card-role {
  background: linear-gradient(to bottom, #cc0000, #7a0000);
  color: #ffcc00;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 3px;
  border-bottom: 2px solid #ffcc00;
}
.bowler-card .card-top { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 6px 0; }
.bowler-card .card-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6699ff, #1a1aa0 55%, #000033);
  border: 2px solid #000;
  color: #ffffff;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 #000;
}
.bowler-card .card-stats { border-collapse: collapse; font-size: 10px; width: 100%; }
.bowler-card .card-stats td { padding: 1px 3px; border-bottom: 1px dotted #cc9900; vertical-align: top; }
.bowler-card .card-stats td:first-child { color: #7a0000; font-weight: bold; width: 58px; }
.bowler-card p { margin: 6px 8px; line-height: 1.4; }
.bowler-card .card-mail { display: block; margin: 0 8px; font-weight: bold; font-size: 10px; word-break: break-all; }

.explorer {
  border: 2px outset #e0e0e0;
  background: #c0c0c0;
  margin: 6px 0 12px;
}
.explorer-title {
  background: linear-gradient(to right, #000080, #1084d0);
  color: #ffffff;
  font-family: Tahoma, Verdana, sans-serif;
  font-weight: bold;
  font-size: 11px;
  padding: 3px 5px;
}
.explorer-body {
  background: #ffffff;
  border: 2px inset #e0e0e0;
  margin: 3px;
  padding: 4px 6px;
}
.explorer details { margin: 2px 0; }
.explorer summary {
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}
.explorer summary::-webkit-details-marker { display: none; }
.explorer summary::before { content: "[+] \1F4C1  "; font-family: "Courier New", monospace; }
.explorer details[open] > summary::before { content: "[-] \1F4C2  "; }
.explorer summary:hover { background: #000080; color: #ffffff; }
.explorer ul { margin: 2px 0 6px; padding-left: 46px; list-style: square; }
.explorer .archive-note { margin: 2px 0 2px 46px; font-style: italic; color: #606060; }

/* Even in 2004 we had cellphones. Kind of. */
@media (max-width: 820px) {
  #columns { flex-direction: column; align-items: stretch; }
  #nav, #sidebar { width: auto; }
  #nav { display: flex; flex-wrap: wrap; gap: 4px; }
  #nav a.btn { flex: 1 1 30%; margin: 0; }
  #content { margin: 0 8px; }
  #sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
  #sidebar .box { margin: 0; }
  #header h1 { font-size: 24px; }
  #header img { width: 70px; height: 58px; }
  .form-row label { display: block; width: auto; }
}
