:root {
  --primary-color: #4caf50;
  --secondary-color: #000000;
  --accent-color: #8bc34a;
  --text-color: #333;
  --light-text: #f5f5f5;
  --background: #f9f9f9;
  --card-bg: #ffffff;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

main {
  background-color: antiquewhite;
  color: aliceblue;
  height: 100%;
  background-image: url("../images/charts_bk.png");
  background-repeat: no-repeat;
  background-position: cent;
  background-position: center;
  background-size: cover;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

section {
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  mix-blend-mode: multiply;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

.leaderboard {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  font-weight: bold;
}

.leaderboard-header span {
  flex: 1;
  text-align: center;
}

.leaderboard-header span:first-child {
  text-align: left;
}

.leaderboard-header span:last-child {
  text-align: right;
}

.one {
  padding-left: 50px;
}

.leaderboard-list {
  list-style: none;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.leaderboard-item:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

.leaderboard-item div {
  flex: 1;
  text-align: center;
}

.leaderboard-item div:first-child {
  text-align: left;
  font-weight: bold;
}

.leaderboard-item div:last-child {
  text-align: right;
  color: var(--secondary-color);
  font-weight: bold;
}

.rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  margin-right: 30px;
}

.top-3 .rank {
  background-color: gold;
  color: #333;
}

.top-3:nth-child(2) .rank {
  background-color: silver;
}

.top-3:nth-child(3) .rank {
  background-color: #cd7f32; /* bronze */
}

.player-info {
  display: flex;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: #ddd;
  overflow: hidden;
}

.player-name {
  font-size: 1.1rem;
  padding-right: 500px;
}

@media (max-width: 600px) {
  .leaderboard-header {
    font-size: 0.8rem;
  }

  .leaderboard-item {
    font-size: 0.9rem;
    padding: 10px 5px;
  }

  .player-avatar {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }

  .rank {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    font-size: 0.8rem;
  }
}
