#Leaderboard {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  margin-top: 0px;
}
#Leaderboard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('/img/table.JPG');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.year-selector {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.year-btn {
  background-color: rgba(122, 122, 190, 0.7);
  color: white;
  font-weight: bold;
  border: 2px solid white;
  padding: 12px 24px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.year-btn:hover {
  background-color: rgba(103, 103, 200, 0.85);
  color: white;
}

.year-btn.active {
  background-color: rgb(103, 103, 200);
  color: white;
}

.yearly-results-container {
  position: absolute;
  top: 220px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-bottom: 100px;
}

.year-section {
  display: none;
  width: 100%;
  max-width: 800px;
}

.year-section.active-year {
  display: block;
}

.yearly-table {
  width: 100%;
  margin: 0 auto;
}

.year-section h2 {
  color: white;
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
  .year-selector {
    top: 160px;
    flex-wrap: wrap;
    width: 90%;
    justify-content: center;
    margin-bottom: 20px;
  }

  .yearly-results-container {
    top: 260px;
  }

  .year-btn {
    padding: 10px 20px;
    font-size: 16px;
    flex: 0 0 calc(50% - 5px);
  }

  .yearly-table {
    width: 90%;
  }
}
