:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --danger-color: #e74c3c;
  --light-color: #f3f3f3;
  --dark-color: #333;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: var(--light-color);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.loader {
  border: 16px solid var(--light-color);
  border-top: 16px solid var(--primary-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.error {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  background-color: var(--danger-color);
  color: var(--light-color);
  text-align: center;
}

.heading-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.text {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  background-color: var(--light-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.progress-bar-fill {
  display: block;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 5px;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.leaders {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  padding: 50px 0;
}

@media screen and (max-width: 750px) {
  .leaders {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

.leaders .leader {
  transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.leaders .leader:hover {
  transform: scale(1.2);
  opacity: 1;
}

.leader.leader-inactive {
  opacity: 0.25;
}

.games {
  display: flex;
  flex-direction: column;
  padding: 50px 0;
}

.game {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  gap: 20px;
}

.game:not(:last-child) {
  border-bottom: 1px solid var(--dark-color);
}

.game-name {
  display: flex;
  flex-grow: 1;
  gap: 20px;
}

.game-details {
  display: flex;
  align-items: center;
  gap: 20px;
}

.game-title {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.game-score {
  width: 50px;
  text-align: right;
}

.game-date {
  min-width: 150px;
  text-align: right;
}

@media screen and (max-width: 860px) {
  .game-score {
    width: 100%;
    text-align: left;
  }

  .game-date {
    width: 100%;
    text-align: left;
  }
}
