
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f8fa;
  color: #333;
  padding: 20px;
}

header {
  background-color: #0077cc;
  padding: 20px 0;
  margin-bottom: 30px;
}

nav {
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
  font-size: 20px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

main {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #0077cc;
}

p, textarea, img {
  margin-bottom: 20px;
}

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: #777;
}

textarea {
  width: 100%;
  height: 200px;
  margin-top: 10px;
  padding: 10px;
  font-family: monospace;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button.copy-btn {
  display: block;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button.copy-btn:hover {
  background-color: #005fa3;
}

select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.swipe, .resource {
  margin-bottom: 50px;
}

ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

li {
  margin-bottom: 15px;
  line-height: 1.5;
}

li strong {
  display: block;
  color: #333;
  margin-bottom: 5px;
}

code {
  background-color: #f0f0f0;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: monospace;
}

img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  #banners img {
    display: inline-block;
    vertical-align: top;
  }
}

#leaderboard {
  margin: 40px auto;
  max-width: 100%; /* Ensure it stretches to the full container */
  width: 90%; /* Adjust to a more flexible width */
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #ffffff;
}

#leaderboard_title {
  background: #0077cc;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  padding: 15px;
  text-align: center;
}

#leaderboard_container > div {
  width: 100% !important;
  max-width: 100% !important;
}


table#leaderboard_table {
  width: 100%; /* Table takes full width of container */
  border-collapse: collapse;
  font-size: 16px;
  min-width: 500px; /* Ensures readability */
}

tr.leaderboard_table_header {
  background-color: #e9ecef;
  text-align: left;
}

tr.leaderboard_table_header th {
  padding: 10px;
  font-weight: bold;
  color: #333;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

td.lb-position-detail,
td.lb-name-detail {
  padding: 10px;
}

td.lb-position-detail {
  font-weight: bold;
  text-align: center;
  width: 15%;
  border-right: 1px solid #ddd;
}

td.lb-name-detail {
  text-align: left;
  width: 85%;
  word-wrap: break-word;
}

/* Highlight top 3 */
tr:nth-of-type(2) td.lb-position-detail {
  background-color: gold;
  color: black;
}

tr:nth-of-type(3) td.lb-position-detail {
  background-color: silver;
  color: black;
}

tr:nth-of-type(4) td.lb-position-detail {
  background-color: #cd7f32; /* bronze */
  color: white;
}

@media (max-width: 768px) {
  #leaderboard {
    width: 100%;
  }
  td.lb-position-detail, td.lb-name-detail {
    padding: 8px;
  }
}


