/* Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #000; /* Black background */
  color: #fff;
  text-align: center;
}

/* Logo */
header img {
  max-width: 220px;
  margin: 20px auto;
  display: block;
  border-radius: 12px;
}

/* Jackpot container */
.jackpot-container {
  display: flex;
  justify-content: center; /* center the jackpot box */
  position: relative;      /* for positioning the button */
  margin: 20px 0;
}

/* Jackpot box */
.jackpot-box {
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  text-align: center;
}

/* Countdown */
#countdown {
  font-size: 26px;
  font-weight: bold;
  margin-top: 10px;
  color: #f5c542;
}

/* Recent Winners button beside jackpot */
.jackpot-btn {
  position: absolute;
  left: 100%;       /* position to the right of jackpot box */
  margin-left: 20px; /* spacing */
  top: 50%;
  transform: translateY(-50%);
  background: #f5c542;
  color: #000;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

.jackpot-btn:hover {
  background: #e0b732;
}

/* Holders table container with scroll */
.holders-container {
  margin: 30px auto;
  max-width: 900px;
  max-height: 300px; /* limit height */
  overflow-y: auto; /* vertical scroll */
  border: 1px solid #333;
  border-radius: 12px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: #111;
}

th, td {
  padding: 12px 8px;
  border-bottom: 1px solid #333;
  text-align: left;
}

th {
  background: #222;
  font-weight: bold;
  text-transform: uppercase;
  position: sticky; /* keep header visible while scrolling */
  top: 0;
  z-index: 1;
}

tr:nth-child(even) {
  background: #181818;
}

/* Holder count wrapper stacked */
#holderCountWrapper {
  margin: 20px auto;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

/* Total holders line */
#holderCount {
  font-size: 26px; /* same size as countdown */
  font-weight: bold;
  color: #f5c542; /* gold */
}

/* Showing top line */
#showingTop {
  font-size: 14px;
  color: #aaa; /* subtle gray */
  font-weight: normal;
}

/* ================= RECENT WINNERS ================= */
#winners-container {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 260px;
  max-height: 300px;
  overflow-y: auto;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  text-align: left;
}

#winners-container h3 {
  background: #222;
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid #333;
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
}

#winners-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#winners-list li {
  padding: 10px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#winners-list li a {
  background: #f5c542;
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
}

#winners-list li a:hover {
  background: #ffd966;
}

/* 🎉 Winners button */
.winners-btn {
  display: inline-block;
  background: #111;
  color: #f5c542;
  padding: 10px 20px;
  border: 2px solid #333;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  transition: 0.2s;
}

.winners-btn:hover {
  background: #222;
  color: #fff;
}
