.wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:5px 20px;
    background-color: #17203D;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
    width: 92em;
    font-family: 'Open Sans', sans-serif;
}

.intro_container{
    display: flex;
    justify-items: center;
    flex-grow: 1;
    width: 50vw;
}

.button{
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.button {
  background-color: #17203D;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #233673;
}

.intro{
    display: flex;
    flex-direction: column;
    width: 60vw;
    padding: 25px 15px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
    word-break: break-word;
    white-space: normal;
}

.personal_data{
    display: flex;
}

.content{
    display: flex;
    flex-direction: row;
    flex: 2 auto;
}

.contacts_container{
    display: flex;
    flex-direction: column;
}

.resutl{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* opzionale: spazio tra "Turn:" e il numero */
    font-family: 'Open Sans', sans-serif;
}

.bc_ad{
    display: flex;

}

.image_container{
    display: flex;
    flex: 1;
    align-items: stretch;
}

.index_image{
    display: flex;
    width: 90%;
    height: s;
}

.image, .image2{
    width: 100%;
    height: s;
}
.image2{
    width: 30em;
}

.form{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin:10px;
}

.data{
    display: flex;
    flex-direction:row;
    align-items: center;
    justify-items: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin:10px;
}

.propic{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.label{
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
}

.options{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.option{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 10%;
}

.propic_image{
    border-radius: 50%;
}

table {
      width: 100%;
      border-collapse: collapse;
      margin: 20px 0;
      font-size: 18px;
      text-align: left;
    }

    th, td {
      padding: 12px;
      border: 1px solid #ddd;
    }

    th {
      background-color: #f4f4f4;
      font-weight: bold;
    }

    tr:nth-child(even) {
      background-color: #f9f9f9;
    }

    tr:hover {
      background-color: #f1f1f1;
    }

.footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 20px;
    background-color: #17203D;
    color: #ffffff;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: 1;
    width: 92em;
    font-family: 'Open Sans', sans-serif;
    flex-shrink: 0; 
}

/* ==================== STATS FIX ==================== */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 10px auto;
  font-family: 'Open Sans', sans-serif;
}

.stat-item {
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 16px;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 600px) {
  .stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-item {
    width: 90%;
    font-size: 14px;
  }
}

/* ==================== TABLE FIX ==================== */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.results-table th,
.results-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  word-break: break-word;
}

.results-table th {
  background-color: #f4f4f4;
}

@media (max-width: 600px) {
  .results-table {
    font-size: 14px;
  }

  .results-table th,
  .results-table td {
    padding: 8px;
  }
}