.table-header-profile {
  /* display: flex; */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  /* width: 100%; */
}
.rectangulo {
  width: 100%;
  height: 340px;
  background-color: #232B36;
  z-index: 1;
  position: relative;
  border-radius: 20px;
}

.rectangulo-pequeno {
    width: 95%;
    height: 94%;
    border-radius: 47px 47px 0px 0px;
    background-color: #75154D;
    z-index: 2;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, 0%);
}

.columnas {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 25px;
  left: 25px;
  right: 25px;
  bottom: 25px;
}


.left > .columna:first-child::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 16px solid #fff;
    position: absolute;
    left: 5px;
}

.right > .columna:last-child::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 16px solid #fff;
  position: absolute;
  right: 0px;
}

.profile-container {
  display: flex;
  width: 100%;
  max-width: 870px;
}

.profile-container .box-left {
  flex: 1;
  color: white;
  line-height: 123px;
}

.profile-container .box-left .row:first-child{
  display: flex;
  align-items: center;
  justify-content: center;
}

.dorsal-header-container{
  font-size: 7vw;
  font-family: Arial;
  margin: 0;
  padding: 0;
  line-height: normal;
}

.nombre-header-container{
  font-size: 30px;
  font-family: Arial;
  margin-left: 10px;
  line-height: 1;
}

.rectangulo-pequeno .box-right {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
}

.row {
   /* Ajusta la altura según tus necesidades */
}

.rectangulo-pequeno .photo {
    display: flex;
    justify-content: space-evenly;
    position: relative;
    width: 223px;
    height: 223px;
    overflow: hidden;
    border-radius: 50%;
    align-items: center;
}
.container-flag{
    display: flex;
    align-items: center;
    /*background-color: black;*/
    width: 290px;
    height: 45px;
    border-radius: 10px;
    margin: 0 auto;
}

.flag{
  width: 50px;
}

.rectangulo-pequeno .photo img{
  max-width: 225px !important;
  border-radius: 100%;
  height: auto;
  width: 225px !important;
}

.column-flag-image{
      display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    margin-right: 20px;
}

.name-country{
  font-family: Arial;
  font-size:25px;
}

.table-info-profile {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 95%;
}

.table-info-profile .row {
  display: flex;
  border: 1px solid white;
  background-color: #75154D;
}

.table-info-profile .column {
  flex: 1;
  padding: 30px 10px;
  border-top-width: 1px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-left-width: 2px;
  border-top-color: white;
  border-bottom-color: white;
  border-left-color: white;
  border-right-color: white;
  border-left-style: solid;
  border-right-style: solid;
  border-top-style: solid;
}

.table-info-profile .column + .column  h2{
  margin-left: 15px;
}

.table-info-profile .column + .column + .column h2 {
  margin-left: 15px;
}

.table-info-profile .row:first-child .column.hand p{
  text-align: center;
  margin-left: 0;
}

.table-info-profile .column h2 {
  text-align: left;
  color: black;
  margin-left: 94px;
  font-size: 20px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.table-info-profile .column p {
  color: white;
  font-size: 27px;
  margin-bottom: 0px;
}

.table-info-profile .row:first-child .column p {
  text-align: left;
  margin-left: 160px;
}

.table-info-profile .row:last-child .column p {
  text-align: center;
}

.table-info-profile .row:last-child {
  border-top: none;
}

.table-info-profile .rounded {
  border-bottom-left-radius: 45px;
  border-bottom-right-radius: 45px;
}


.container-ranking {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    margin: 0 auto;
}
.container-ranking > .tabs {
    display: flex;
    width: 380px;
}
.container-ranking > .tabs .tab {
    flex: 1;
    padding: 15px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-right: 10px;
    background-color: #CCC8C8;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    width: 171px;
}
.container-ranking > .tabs .tab:last-child {
    margin-right: 0; /* Eliminar margen del último tab */
}
.container-ranking > .tabs .tab:hover {
    background-color: #555;
}
.container-ranking > .tabs .tab.active {
    background-color: #721880;
}
.container-ranking > .content {
    flex: 1;
    color: #333;
    text-align: center;
}



table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th{
  background-color: rgba(0, 0, 0, 0) !important;
}

.table-rows-rank table {
      border-collapse: collapse;
      width: 100%;
    }
    

.table-rows-rank table tbody:before {
    /* This doesn't work because of border-collapse */
    line-height: 0em;
    content:"_";
    color:white;
    display:block;
}

.table-rows-rank table th {
  background-color: #721880;
  color: white;
  text-align: left;
  border: 0;
  border-block-start: 0px !important;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.table-rows-rank table th:first-child {
  border-left: 1px solid #721880;
  border-right: 0px solid #721880;
  text-align: center;
}

.table-rows-rank table th:last-child {
  border-left: 0px solid #721880;
  border-right: 1px solid #721880;
  text-align: center;
}


.table-rows-rank table tbody td:first-child {
  border-left: 1px solid black;
  vertical-align: middle;
  font-weight: 700;
  font-size: 21px;
  color: var(--e-a-color-txt);
}

.table-rows-rank table tbody td:first-child + td {
  text-align: left;
  width: 80%;
  vertical-align: middle;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.table-rows-rank table tbody td:first-child + td span{
    color: black;
    padding-left: 10px;
}

.table-rows-rank table tbody td:first-child + td + td {
  text-align: left;
  width: 25%;
}

.table-rows-rank table tbody td:last-child {
  border-right: 1px solid black;
  width: 25%;
}

.table-rows-rank table tbody tr:last-child{
  border-bottom: 0px solid transparent;
}

.table-rows-rank table tbody tr{
  border-bottom: 1px solid;
}

.table-rows-rank table tbody td {
  text-align: center;
  border-bottom: 0px solid transparent;
  border-left: 0px solid transparent;
  border-right: 0px solid transparent;
  border-top: 0px solid transparent;
}

.table-rows-rank table td:first-child {
  width: 25%;
}

.table-rows-rank table td:last-child {
}

.table-rows-rank table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 5px;
}

.table-rows-rank table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 5px;
}

.table-rows-rank .profile-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.table-rows-rank table tbody td:first-child + td + td > span{
  vertical-align: text-top;
  margin-left: 15px;
}

.table-rows-rank table tbody .player-name{
  cursor: pointer;
}

.event-box {
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    margin: 15px 25px;
    padding: 5px;
}

.event-box h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.event-box h2 {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 300;
}

.event-box a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    font-weight: 900; /* Extra Bold */
    font-style: italic; /* Italic */
    border-radius: 5px;
    transition: background-color 0.3s;
}

.event-box a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}


.event-container {
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.event-container .column {
  text-align: center;
  flex: 1;
  color: white;
}

.event-container .column h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.event-container .column .countdown, .event-container .column .event-dates {
  font-size: 1.7rem;
  font-weight: bold;
}

.event-container .column a {
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.event-container .column a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Flechas usando bordes */
.event-container .arrow {
  position: relative;
  height: 2px;
  background-color: white;
  width: 80px; /* Longitud de la flecha */
  margin: 0 20px;
}

.event-container .arrow::before, .event-container .arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px; /* Tamaño del "punta" de la flecha */
  height: 2px;
  background-color: white;
  transform: rotate(45deg);
}

.event-container .arrow::before {
  right: -4px;
  top: -7px;
}

.event-container .arrow::after {
  right: -4px;
  top: 7px;
  transform: rotate(-45deg);
}

.event-container .arrow-left {
  transform: rotate(180deg); /* Para la flecha de la izquierda */
}

@media (max-width: 1580px) {

  .event-container .column .event-dates {
    font-size: 1.49rem;
    font-weight: bold;
  }
}

@media (max-width: 1420px) {
  .title-countdown-event h2{
    font-size: 4rem !important;
  }

  .event-container .column .countdown, .event-container .column .event-dates  {
    font-size: 20px;
  }
}

@media (max-width: 1100px) {
  .title-countdown-event h2{
    font-size: 3rem !important;
  }

  .event-container{
    padding: 15px 20px;
  }

  .event-container .column .event-dates {
    font-size: 1rem;  /* Ajusta el tamaño para pantallas medianas */
        text-align: center; /* Mantén el texto centrado */
        word-wrap: break-word; /* Permite que las palabras largas se ajusten al ancho del contenedor */
  }
  .event-container .column .countdown {
    font-size: 1.5rem; /* Ajuste del tamaño del contador */
}

.event-container .column a {
  font-size: 1rem; /* Ajuste del tamaño del enlace */
}
.event-container .column h2 {
  font-size: 2rem; /* Ajuste de tamaño en pantallas medianas */
}

  .event-box h1{
    font-size: 15px;
    margin-bottom: 10px;
  }

  .event-box h2{
    font-size: 13px;
    margin-bottom: 10px
  }

  .event-box a {
    font-size: 20px;
  }
}

@media (max-width: 1000px) {
  .event-box{
    flex-direction: row;
    justify-content: space-between
  }
  .event-box h2 {
    font-size: 20px;
  }
  .event-container .column a{
    font-size: larger;
  }
}

/* Only Desktop */
@media only screen and (min-width: 1000px) {
    .only-desktop {
        /* Estilos que se aplican solo en pantallas de escritorio grandes */
        display: block !important; /* Ejemplo: Mostrar en pantallas grandes */
    }

    .only-mobile {
        display: none !important; /* Ocultar en pantallas grandes */
    }
}

/* Only Mobile */
@media only screen and (max-width: 999px) {
    .only-mobile {
        /* Estilos que se aplican solo en pantallas móviles */
        display: block !important; /* Ejemplo: Mostrar en pantallas pequeñas */
    }

    .only-desktop {
        display: none !important; /* Ocultar en pantallas pequeñas */
    }
}



/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
    .event-box {
        width: 90%;
        height: auto;
    }

    .event-box h1 {
        font-size: 14px;
    }

    .event-box h2 {
        font-size: 18px;
    }

    .event-box a {
        font-size: 20px;
    }

    .event-container {
      flex-direction: column;
    }

    .event-container .column {
        margin-bottom: 20px;
    }

    .event-container .arrow {
        display: none; /* Ocultar flechas en móviles */
    }

    .event-container .column h2 {
        font-size: 1.5rem; /* Reduce el tamaño del título */
    }

   .event-container .column .event-dates {
      font-size: 0.8rem;  /* Reduce el tamaño del texto */
      line-height: 1.2;   /* Mejora la separación de líneas */
      word-wrap: break-word; /* Permite que las palabras largas se ajusten al ancho del contenedor */
      max-width: 100%;   /* Asegura que el contenedor ocupe el ancho completo disponible */
      text-align: center; /* Centra el texto */
    }
    .event-container .column .countdown {
      font-size: 1rem; /* Ajusta el tamaño del contador */
  }

    .event-container .column a {
      font-size: 0.9rem; /* Ajusta el tamaño del enlace */
      padding: 6px 12px; /* Reduce el padding en pantallas pequeñas */
    }
}

@media(max-width: 1050px){
    
    .profile-container{
      width: auto;
    }

    .profile-container .box-left .row:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
      }

      .dorsal-header-container{
    margin: 0 0 10px 0;
  }

  .nombre-header-container{
    margin: 0 0 10px 10px;
    text-align: center;
  }

  .container-flag {
    margin: 10px auto 0px auto;
  }
}

@media(max-width: 850px){
    
  .container-ranking > .tabs{
    width: auto;
  }

}

@media(max-width: 740px){
  .profile-container {
    flex-direction: column;
  }
  .columnas {
    position: static;
  }

  .rectangulo-pequeno{
    margin: 0 auto;
    position: static;
    transform: inherit;
  }

  .rectangulo {
    height: 100%;
  }

  .profile-container .box-left{
    margin-top: 10px;
  }

  .rectangulo-pequeno .box-right {
    margin-bottom: 10px;
  }

  .columna:first-child::before{
    left: 20px;
  }
  .columna:last-child::after {
    right: 20px;
  }

  .table-info-profile .column h2, .table-info-profile .column h2{
    margin-left: 0;
    text-align: center;
  }

  .table-info-profile .row:first-child .column p {
    text-align: center;
    margin-left: 0;
  }
}

@media(max-width: 740px){

  .table-info-profile .column p {
    color: white;
    font-size: 18px;
    margin-bottom: 0px;
  }

  .table-info-profile .column h2 {
    font-size: 14px;
  }
}

@media(max-width: 540px){
  .table-info-profile .row{
    flex-direction: column;
  }
}


/* Estilos para pantallas medianas y pequeñas */
@media screen and (max-width: 540px) {
  .event-box {
    flex-direction: column;
  }
  .event-box h1 {
    font-size: 20px;
  }

  .table-rows-rank table {
  }
  
  .table-rows-rank table thead {
    display: none;
  }
  
  .table-rows-rank table tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
  }
  
  .table-rows-rank table tbody td {
    display: block;
    text-align: center;
    padding: 5px;
    font-size: 14px;
  }
  
  .table-rows-rank .profile-image {
    width: 40px;
    height: 40px;
  }
  
  .table-rows-rank table tbody td + td + td {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    text-align: center !important;
  }
  
  .table-rows-rank table tbody td:first-child + td {
    display: block;
    text-align: center;
  }

  .table-rows-rank table tbody td:first-child + td .profile-image {
    display: none;
  }
  
  .table-rows-rank table tbody td:first-child + td span {
    margin: 0;
    display: block;
    line-height: 1.3;
  }

  .table-rows-rank table tbody tr:last-child{
    border: 1px solid #d1d1d1;
    border-radius: 5px;
  }
}