body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #A99071;
    justify-content: center;
    align-items: center; 
}

main{
    text-align: center;
    margin: 30px;
}

main button{
    padding: 10px;
    font-size: large;
    border-radius: 10px;
    border: 0;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

main button:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.flip-card img{
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

a{
    text-decoration: none;
    color: inherit;
}


/* ----------[ Podium ]---------- */

.podium {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    text-align: center;
    margin-bottom: 50px;
    justify-content: center;
    align-items: center end;
    font-size: 13px;
  }

  .place {
    background-color: #ddd;
    color: #000;
    padding: 20px;
    min-width: 90px;
    max-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
  }

  .place:hover {
    transform: translateY(-10px);
  }

  .first {
    background-color: #ffd700; /* złoto */
    min-height: 220px;
  }

  .second {
    background-color: #c0c0c0; /* srebro */
    min-height: 180px;
  }

  .third {
    background-color: #cd7f32; /* brąz */
    min-height: 150px;
  }

  .place-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
  }

  @media((max-width: 768px)){
    .place{
        padding: 10px;
    }
    .podium{
        gap: 10px;
    }
}


/* ----------[ Ubracanie baneru ]---------- */

.flip-card {
  background-color: transparent;
  width: 500px;
  height: 334px;
  perspective: 1000px; /* efekt 3D */
  margin: 20px auto;
}

@media((max-width: 768px)){
  .flip-card{
      max-width: 300px;
      max-height: 200px;
  }
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* ukryj tył gdy przód jest widoczny */
  border-radius: 10px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background-color: #d9bb81;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
}

@media((max-width: 768px)){
  .flip-card-back{
    font-size: x-small;
  }
}



/* ----------[ 3 Etap ]---------- */

#etap3 {
  max-width: 60%;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

#etap3 table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 10px;
}

#etap3 thead tr:first-child {
  background-color: #d4af37; /* ciemniejsze złoto dla nagłówka grupującego */
  color: white;
  font-weight: bold;
}

#etap3 thead tr:nth-child(2) {
  background-color: #d4af37; /* jaśniejsze złoto dla podnagłówków */
  color: white;
  font-weight: bold;
}

#etap3 th, #etap3 td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
}

#etap3 tr th:last-child,
#etap3 tr td:last-child {
  border-right: none;
}

#etap3 tbody tr:last-child td {
  border-bottom: none;
}

#etap3 h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

#etap3 .table-container {
  overflow-x: auto;
}

#etap3 table {
  width: 100%;
  min-width: 700px;
}

#lvlup{
  border: 3px solid red;
  
}

#etap3 tbody tr:nth-child(6) {
  border-bottom: 3px solid red;
}


@media((max-width: 768px)){
  #etap3{
    max-width: 100%;
    margin: 0px auto;
    padding: 0 0px;
  }

  #etap3 th, #etap3 td {
  padding: 10px;
  }

  #etap3 table {
  width: 100%;
  min-width: 400px;
  }
}


/* ----------[ Zadania ]---------- */

#zad{
  display: flex;
}

.check{
  border: 2px solid black;
  border-radius: 50px;
  max-width: 10px;
  min-width: 15px;
  min-height: 15px;
}

.uczestnik {
  background-color: rgba(255, 255, 255, 0.162);
  display: flex;
  flex-direction: column;
  align-items: center; /* wyśrodkowanie zawartości */
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px;
  width: 800px;
}

.punkty {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* zadania będą zaczynały się od lewej, ale całość wycentrowana */
  max-width: 800px;
  width: 100%;
}

.c1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

@media((max-width: 768px)){
  .uczestnik{
    max-width: 300px;
  }
}

.img{
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}
