/* Base and Background */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #f0f0f5;
  text-align: center;
  padding: 0 1rem;
  min-height: 100vh;

  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill-opacity="0.03"><rect width="100" height="100" fill="black"/><circle cx="10" cy="10" r="1" fill="white"/></svg>') repeat,
    radial-gradient(circle at top left, rgba(125, 69, 151, 0.3), transparent 70%),
    radial-gradient(circle at bottom right, rgba(156, 58, 119, 0.3), transparent 70%),
    #111;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 100px 100px, cover, cover;

  animation: floatShift 80s ease-in-out infinite alternate;
}

@keyframes floatShift {
  0% {
    background-position:
      0 0,
      top left,
      bottom right,
      0 0;
  }
  100% {
    background-position:
      0 0,
      15px 15px,
      calc(100% - 15px) calc(100% - 15px),
      0 0;
  }
}
/* Header */
header {
  margin-top: 4rem;
  padding: 0 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #f0f0f5; /* near-white for good contrast */
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
  position: relative;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #9C3A77; /* subtle pink */
  margin: 8px auto 0;
  border-radius: 1px;
  opacity: 0.7;
}

p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 1.2rem;
  color: #ddd;
}

/* Donate Button */
.donate-btn {
  display: inline-block;
  margin: 2rem auto;
  background: linear-gradient(135deg, #7D4597, #9C3A77);
  color: #fff;
  font-size: 1.5rem;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 2.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(156, 58, 119, 0.45);
  font-weight: 600;
  user-select: none;
}

.donate-btn:hover,
.donate-btn:focus {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(156, 58, 119, 0.85);
  outline: none;
}

/* Sections */
section {
  margin: 3rem auto;
  max-width: 440px;
  padding: 0 1rem;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #e8d3f0;
  text-shadow: 0 0 6px rgba(125, 69, 151, 0.5);
}

/* Table Styling */
table {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: #222;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  overflow: hidden;
}

th, td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid #3a2a4a;
  color: #ccc;
  font-weight: 500;
  text-align: left;
  user-select: text;
}

th {
  background: #3a2a4a;
  font-weight: 700;
  color: #e1cfff;
  letter-spacing: 0.05em;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(125, 69, 151, 0.15);
  color: #fff;
  transition: background 0.3s ease;
}

/* FAQ Section */
.faq {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.7;
  user-select: text;
}

.faq p {
  margin-bottom: 1.7rem;
}

.faq strong {
  color: #b68fcf;
}

/* Footer */
footer {
  margin: 4rem 0 2rem;
  font-size: 0.95rem;
  color: #999aae;
  line-height: 1.5;
  user-select: none;
}

footer a {
  color: #b68fcf;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
  color: #9c3a77;
}

/* Load More Button */
#load-more-btn {
  margin: 1.5rem auto 3rem;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  color: #aaa;
  background: linear-gradient(
    135deg,
    rgba(125, 69, 151, 0.07),
    rgba(156, 58, 119, 0.12)
  );
  border: 1.5px solid rgba(156, 58, 119, 0.25);
  border-radius: 14px;
  cursor: pointer;
  display: block;
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.22);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
}

#load-more-btn:hover:not(:disabled),
#load-more-btn:focus:not(:disabled) {
  color: #9C3A77;
  border-color: #9C3A77;
  background: linear-gradient(
    135deg,
    rgba(125, 69, 151, 0.15),
    rgba(156, 58, 119, 0.25)
  );
  box-shadow: 0 3px 12px rgba(156, 58, 119, 0.45);
  outline: none;
}

#load-more-btn:disabled {
  color: #555;
  border-color: #222;
  cursor: default;
  background: transparent;
  box-shadow: none;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  .donate-btn {
    font-size: 1.3rem;
    padding: 0.75rem 2rem;
  }
  table {
    max-width: 100%;
  }
  section {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .faq {
    max-width: 100%;
  }
}



#leaderboard-body tr:nth-child(1) td:first-child {
  color: #9C3A77; /* Soft pinkish color */
  font-weight: bold; /* Bold to stand out */
}

#leaderboard-body tr:nth-child(2) td:first-child {
  color: #B64C9F; /* Light purple */
  font-weight: bold;
}

#leaderboard-body tr:nth-child(3) td:first-child {
  color: #D68BC7; /* Pale pink */
  font-weight: bold;
}

/* Optional hover effect for the names */
#leaderboard-body tr:nth-child(1) td:first-child:hover,
#leaderboard-body tr:nth-child(2) td:first-child:hover,
#leaderboard-body tr:nth-child(3) td:first-child:hover {
  text-decoration: underline; /* Underline on hover for interactivity */
}


/* Social Media Buttons Section */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.social-btn {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  color: #aaa;
  background: linear-gradient(135deg, rgba(125, 69, 151, 0.07), rgba(156, 58, 119, 0.12));
  border: 1.5px solid rgba(156, 58, 119, 0.25);
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1.5px 5px rgba(0, 0, 0, 0.22);
  text-align: center;
  user-select: none;
}

/* Hover Effects */
.social-btn:hover,
.social-btn:focus {
  color: #9C3A77;
  border-color: #9C3A77;
  background: linear-gradient(135deg, rgba(125, 69, 151, 0.15), rgba(156, 58, 119, 0.25));
  box-shadow: 0 3px 12px rgba(156, 58, 119, 0.45);
  outline: none;
}

/* Disable State */
.social-btn:disabled {
  color: #555;
  border-color: #222;
  cursor: default;
  background: transparent;
  box-shadow: none;
}

/* Specific Button Colors */
.social-btn.twitter {
  color: #1DA1F2;
  border-color: #1DA1F2;
}

.social-btn.facebook {
  color: #1877F2;
  border-color: #1877F2;
}

.social-btn.whatsapp {
  color: #25D366;
  border-color: #25D366;
}

/* Hover Effects for Specific Colors */
.social-btn.twitter:hover {
  color: #0C7F99;
  border-color: #0C7F99;
}

.social-btn.facebook:hover {
  color: #1460A2;
  border-color: #1460A2;
}

.social-btn.whatsapp:hover {
  color: #128C7E;
  border-color: #128C7E;
}
