/* ============================================
   KAZIUKAS BINGO — GeoCities / Pre-2004 Theme
   Lithuanian farmhouse folk meets early web
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: Verdana, Arial, sans-serif;
  color: #2c1810;
  background-color: #3b2005;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

a:link { color: #3366cc; }
a:visited { color: #663399; }
a:hover { color: #ff6600; }
a:active { color: #cc0000; }

/* ---- Navigation ---- */
.nav-bar {
  background-color: #2a1500;
  border-bottom: 3px ridge #c9a84c;
  padding: 8px 12px;
}

.nav-table {
  width: 100%;
  border: 0;
}

.nav-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: #c9a84c;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

.nav-separator {
  color: #8b6a3a;
  font-size: 11px;
}

.nav-link {
  color: #f5e6c8;
  text-decoration: none;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  padding: 6px 4px;
}

.nav-link:link { color: #f5e6c8; }
.nav-link:visited { color: #f5e6c8; }
.nav-link:hover { color: #c9a84c; text-decoration: underline; }

.nav-link-active {
  color: #c9a84c;
  font-weight: bold;
  text-decoration: underline;
}
.nav-link-active:link, .nav-link-active:visited { color: #c9a84c; }

.nav-user {
  color: #c9a84c;
  font-size: 12px;
  font-style: italic;
}

/* ---- Wooden Frame (login) ---- */
.wooden-frame {
  background-color: #4a2c0a;
  border: 4px outset #6b3a1f;
  padding: 8px;
}

.wooden-frame-inner {
  border: 2px inset #8b5e3c;
}

/* ---- Parchment ---- */
.parchment {
  background-color: #f5e6c8;
  padding: 20px;
}

/* ---- Typography ---- */
.title {
  font-family: Georgia, 'Times New Roman', serif;
  color: #4a2c0a;
  text-align: center;
  font-size: 22px;
  margin-bottom: 6px;
  font-weight: bold;
}

.subtitle {
  text-align: center;
  color: #4a3020;
  font-style: italic;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ---- Login Page ---- */
.login-container {
  width: 95%;
  margin: 0 auto;
  padding-top: 20px;
}

.login-form {
  margin: 16px 0;
}

.input-group {
  margin-bottom: 12px;
}

.input-group label {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  color: #4a2c0a;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: bold;
}

.input-group input {
  width: 95%;
  padding: 10px 8px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  border: 2px inset #8b5e3c;
  background-color: #faf3e0;
  color: #2c1810;
}

/* ---- Buttons ---- */
.btn-wooden {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: bold;
  color: #faf3e0;
  background-color: #4a2c0a;
  border: 3px outset #8b5e3c;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-wooden:hover {
  background-color: #5a3a18;
}

.btn-wooden:active {
  border-style: inset;
}

.instructions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px groove #8b5e3c;
}

.instructions h3 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #4a2c0a;
  margin-bottom: 6px;
  font-size: 14px;
}

.instructions p {
  color: #4a3020;
  font-style: italic;
  font-size: 12px;
  margin-bottom: 12px;
}

.instructions-closing {
  margin-top: 16px;
  font-weight: bold;
  text-align: center;
}

/* ---- Bingo Board ---- */
.board-container {
  padding: 4px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.bingo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

/* ---- Bingo Card (table cell) ---- */
.bingo-card {
  width: 20%;
  background-color: #f5e6c8;
  border: 2px outset #8b5e3c;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.bingo-card:hover {
  background-color: #eedcb0;
}

.bingo-card-inner {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}

.bingo-card-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
}

/* Table used for vertical centering inside the square */
.bingo-card-content-table {
  width: 100%;
  height: 100%;
  border: 0;
  table-layout: fixed;
}

.card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8.6px;
  color: #4a2c0a;
  font-weight: bold;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  max-width: 100%;
  padding: 2px 3px;
}

/* Visited (opened) card styling */
.bingo-card-visited {
  background-color: #e2d4b4;
  border-color: #9e836a;
}

/* Completed card styling */
.bingo-card-completed {
  background-color: #d4c4a0;
  border: 3px inset #3a5c3a;
}

.check-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 80%;
  height: 80%;
  z-index: 10;
  pointer-events: none;
}

.stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Central square */
.bingo-card-central .card-title {
  color: #a07d2e;
  font-weight: bold;
}

/* ---- Fullscreen Card Overlay ---- */
.card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  background-color: #000000;
  display: none;
}

.card-overlay-visible {
  display: block;
}

.card-overlay-table {
  width: 100%;
  height: 100%;
  border: 0;
}

.card-overlay-card {
  width: 86%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background-color: #f5e6c8;
  border: 4px outset #8b5e3c;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-overlay-card-completed {
  background-color: #d4c4a0;
  border: 4px outset #3a5c3a;
}

.card-overlay-header {
  background-color: #4a2c0a;
  padding: 4px;
}

.card-overlay-header-table {
  width: 100%;
  border: 0;
}

.card-overlay-close {
  background-color: #6b3a1f;
  border: 2px outset #8b5e3c;
  color: #faf3e0;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  padding: 6px 12px;
  font-family: Verdana, Arial, sans-serif;
}

.card-overlay-close:active {
  border-style: inset;
}

.card-overlay-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: #c9a84c;
  font-size: 18px;
  text-align: center;
  font-weight: bold;
  padding: 8px 4px;
}

.card-overlay-desc {
  font-family: Verdana, Arial, sans-serif;
  color: #4a3020;
  font-size: 16.8px;
  text-align: center;
  padding: 20px 12px;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-overlay-bottom {
  text-align: center;
  padding: 12px;
  border-top: 2px groove #8b5e3c;
}

.card-overlay-toggle {
  padding: 14px 30px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: bold;
  color: #faf3e0;
  background-color: #2d4a2d;
  border: 3px outset #3a5c3a;
  cursor: pointer;
  text-transform: uppercase;
}

.card-overlay-toggle:hover {
  background-color: #3a5c3a;
}

.card-overlay-toggle:active {
  border-style: inset;
}

.card-overlay-toggle-done {
  background-color: #6b3a1f;
  border-color: #8b5e3c;
}

.card-overlay-toggle-done:hover {
  background-color: #7a4a2a;
}

/* ---- Fireworks Button ---- */
.fireworks-btn-wrap {
  text-align: center;
  margin-top: 8px;
}

.fireworks-btn {
  width: auto;
  display: inline;
  padding: 8px 20px;
  font-size: 13px;
}

/* ---- Victory Overlay ---- */
.victory-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #000000;
}

.victory-overlay-hidden {
  display: none;
}

.victory-table {
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 2;
}

.victory-content {
  text-align: center;
  padding: 20px;
  background-color: #f5e6c8;
  border: 4px outset #c9a84c;
  width: 90%;
}

.victory-content h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #a07d2e;
  font-size: 24px;
  margin-bottom: 6px;
}

.victory-content h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #4a2c0a;
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.victory-content p {
  color: #4a3020;
  font-style: italic;
  margin-bottom: 16px;
  font-size: 14px;
}

.victory-content .btn-wooden {
  width: auto;
  display: inline;
  padding: 8px 24px;
}

/* ---- Leaderboard ---- */
.leaderboard-container {
  padding: 8px;
  width: 95%;
  margin: 0 auto;
}

.leaderboard-frame {
  background-color: #f5e6c8;
  border: 4px outset #8b5e3c;
  padding: 16px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 2px ridge #8b5e3c;
}

.leaderboard-table th {
  font-family: Georgia, 'Times New Roman', serif;
  padding: 8px 4px;
  text-align: left;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  background-color: #4a2c0a;
  color: #c9a84c;
  border: 1px solid #2a1500;
}

.leaderboard-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #8b5e3c;
  border-left: 1px solid #d5c4a0;
  border-right: 1px solid #d5c4a0;
}

.leaderboard-table td.name-cell {
  max-width: 70px;
  overflow: hidden;
  white-space: nowrap;
}

.leaderboard-table td.name-cell marquee {
  display: block;
}

.leaderboard-table-row-odd {
  background-color: #eedcb0;
}

.leaderboard-table-row-even {
  background-color: #f5e6c8;
}

.victory-yes {
  color: #2d4a2d;
  font-weight: bold;
}

.victory-no {
  color: #4a3020;
}

/* ---- Error/loading messages ---- */
.error-msg {
  color: #8b2500;
  text-align: center;
  font-style: italic;
  margin-top: 8px;
  font-size: 12px;
}

/* ---- Visitor Counter ---- */
.visitor-counter {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #c9a84c;
  text-align: center;
  padding: 6px;
  background-color: #000000;
  border: 2px inset #333333;
  display: inline-block;
}

/* ---- Footer ---- */
.page-footer {
  text-align: center;
  padding: 8px;
  font-size: 10px;
  color: #c9a84c;
  font-family: Verdana, Arial, sans-serif;
}

.page-footer a:link, .page-footer a:visited {
  color: #c9a84c;
}

/* ---- Marquee-style header note ---- */
.marquee-text {
  font-family: 'Comic Sans MS', cursive;
  color: #ffcc00;
  font-size: 16px;
  font-weight: bold;
}

/* ---- Under Construction ---- */
.construction {
  font-family: 'Comic Sans MS', cursive;
  color: #ff6600;
  font-size: 11px;
  text-align: center;
}

/* ---- Donations page ---- */
.donor-list {
  text-align: center;
  padding: 4px 8px;
}

.donor-entry {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: bold;
  margin: 6px 0;
}

.donor-entry .amount {
  font-size: 12px;
  color: #4a3020;
  font-weight: normal;
}

.donor-wooden {
  color: #8b5e3c;
}

.donor-platinum {
  background: linear-gradient(90deg, #ff0000, #ff8800, #ffdd00, #00cc00, #0066ff, #8800ff, #ff0000);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 3s linear infinite;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---- Canvas overlay for fireworks ---- */
#fireworksCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
