#leaderboard-overlay {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5); 
  color: white;
  padding: 15px;
  border-radius: 10px;
  z-index: 100;
  font-family: Arial, sans-serif;
  min-width: 200px;
  max-width: 300px;
  overflow-x: hidden;
  font-size: 14px;
}

#leaderboard-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  margin: 5px 0;
  font-size: 14px;
  white-space: nowrap;
}

.leaderboard-rank {
  margin-right: 10px;
  font-weight: bold;
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.leaderboard-color-marker {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.leaderboard-entry > span:nth-child(3) {
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px; /* Smaller font for username */
}

.leaderboard-score {
    margin-left: auto;
    flex-shrink: 0;
    color: #FFD700;
    font-weight: bold;
}

.bot-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 100;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

