body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

.container {
  text-align: center;
  padding: 20px;
}

.title {
  font-size: 2em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.5em;
  color: #ffa500;
  margin-bottom: 15px;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
}

.podium-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  font-size: 0.8em;
  width: 180px;
  padding: 10px;
  background-color: #222;
  border-radius: 10px;
  border: 2px solid #fff;
  position: relative;
}

.podium-item:nth-child(2) {
  /* 1º lugar - altura maior */
  height: 280px;
  border-color: #ffd15b;
}

.podium-item:nth-child(1) {
  /* 2º lugar - altura menor */
  height: 250px;
  border-color: #7eb1e9;
}

.podium-item:nth-child(3) {
  /* 3º lugar - altura menor */
  height: 230px;
  border-color: #db8d65;
}

.podium-item img {
  width: 90%;
  height: 80%;
  border-radius: 3%;
  /* Circular */
  object-fit: cover;
  margin: auto;
}

.podium-item span {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #222;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.podium-item .medal {
  position: absolute;
  top: -30px;
  /* Metade dentro e metade fora do círculo */
  left: 90%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 2;
}

.podium-item p {
  margin: 0;
  font-size: 1em;
  margin-top: 10px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  /* Esconde partes excedentes */
  text-overflow: ellipsis;
  /* Adiciona reticências caso o texto ainda ultrapasse */
  white-space: nowrap;
  /* Evita quebra de linha */
  display: block;
}

.footer {
  margin-top: 30px;
  font-size: 1.2em;
}

.ranking-table {
  font-size: 0.8em;
  margin: 0 auto;
  width: 90%;
  border-collapse: collapse;
  margin-top: 20px;
  max-width: 1024px;
}

.ranking-table th,
.ranking-table td {
  padding: 10px;
  border: 1px solid #555;
  text-align: left;
}

.ranking-table th {
  background-color: #222;
  color: #fff;
}

.highlight {
  font-weight: bold;
  color: #ffd15b;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

@media screen and (max-width: 768px) {
  .podium-item {
    font-size: 0.8em;
    width: 130px;
    padding: 10px;
    border-radius: 10px;
  }

  .podium-item img {
    width: 100%;
    height: 80%;
    border-radius: 3%;
    object-fit: cover;
  }

  .podium-item:nth-child(2) {
    /* 1º lugar - altura maior */
    height: 190px;
    width: 130px;
  }

  .podium-item:nth-child(1) {
    /* 2º lugar - altura menor */
    height: 170px;
    width: 130px;
  }

  .podium-item:nth-child(3) {
    /* 3º lugar - altura menor */
    height: 160px;
    width: 130px;
  }

  .podium-item p {
    margin: 0;
    margin-top: 4px;
    font-size: 1em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    /* Esconde partes excedentes */
    text-overflow: ellipsis;
    /* Adiciona reticências caso o texto ainda ultrapasse */
    white-space: nowrap;
    /* Evita quebra de linha */
    display: block;
    font-size: clamp(0.8em, 2vw, 1em);
    /* Reduz dinamicamente o tamanho do texto */
  }

  .ranking-table {
    width: 100%;
  }
}

.tabs {
  text-align: center;
  margin: 20px 0;
}
.tab {
  font-weight: bold;
  padding: 10px 15px;
  text-decoration: none;
  color: #ce730b;
  border-bottom: 3px solid transparent;
}
.tab.active {
  border-color: #f3410a;
  color: #f3410a;
}
.podium-item img.medal {
  width: 40px;
  height: auto;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.ranking-table th,
.ranking-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}
