body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: black;
    color: #333;
    padding-bottom: 80px; /* Padding inferior agregado */
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: black;
}

.container {
    display: inline-flex; /* Centra el grupo horizontalmente */
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 20px; /* Espacio entre las imágenes y el título */
}

.logo {
    max-height: 100px; /* Tamaño de la imagen aumentado */
}

.title-img {
    max-width: 300px;
    margin: 0; /* Elimina el margen automático para pegar las imágenes */
}

.social-icons {
    display: flex;
    flex-direction: row; /* Enlaces en horizontal */
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.social-icons a {
    color: green;
    font-size: 1em; /* Tamaño de los iconos más pequeño */
}

.main-menu {
    background-color: rgb(103, 226, 140);
    text-align: center;
    padding: 10px 0;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.main-menu li {
    margin: 0 20px;
}

.main-menu a {
    text-decoration: none;
    color: green;
    font-size: 1.2em;
}

.regulations {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.regulation-item {
    background-color: rgb(103, 226, 140);
    border-radius: 8px;
    padding: 20px;
    margin: 10px;
    width: 80%; /* Reducido a 80% para que sea más pequeño */
    text-align: center;
    font-size: 1.2em; /* Reducimos el tamaño del texto */
}



/* Estilos para la tabla */
.tournament-table {
    width: 100%;
    border-collapse: separate; /* Cambiar a 'separate' para separar los bordes */
    border-spacing: 0; /* Eliminar el espacio entre las celdas */
    border-radius: 10px; /* Redondear los bordes exteriores de la tabla */
    overflow: hidden; /* Asegurar que los bordes redondeados se apliquen correctamente */
}

/* Bordes para las celdas de la tabla */
.tournament-table th,
.tournament-table td {
    border: none; /* Eliminar bordes entre celdas */
    border-bottom: 1px solid black;
    padding: 5px;
    font-size: 0.8em;
}

/* Estilo para los encabezados de la tabla */
.tournament-table th {
    background-color: #ddd;
}

/* Colores alternados para las filas */
.tournament-table tr:nth-child(odd) {
    background-color: rgb(103, 226, 140);
}

.tournament-table tr:nth-child(even) {
    background-color: rgb(177, 239, 194);
}

/* Borde exterior de la tabla */
.tournament-table {
    border: 3px solid black; /* Borde exterior */
}

.mobile-info-header,
.mobile-info {
    display: none;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: 4px solid black;
    color: black;
    background-color: rgb(103, 226, 140);

    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: white;
}

.info-button2 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: 4px solid black;
    color: black;
    background-color: rgb(103, 226, 140);

    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.info-button:hover {
    background-color: white; /* Cambia el color de fondo al pasar el ratón */
}

.info-box2 {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: black; /* Color de fondo negro */
    padding: 7.5px; /* Padding reducido a la mitad */
    border: 1.5px solid green; /* Borde reducido a la mitad */
    border-radius: 10px; /* Border-radius reducido a la mitad */
    z-index: 100;
    margin-top: 5px; /* Margen superior reducido a la mitad */
    width: 30%; /* Ancho reducido a la mitad */
    font-size: 1em; /* Tamaño de fuente reducido a la mitad */
}

.info-box2 table { /* Mantener el formato de tabla */
    width: 100%;
    border-collapse: collapse;
}

.info-box2 td {  /* Estilo para cada celda de la tabla */
    background-color: rgb(103, 226, 140); /* Color de fondo verde claro */
    padding: 5px; /* Padding reducido a la mitad */
    margin-bottom: 5px; /* Margen inferior reducido a la mitad */
    border-radius: 5px; /* Border-radius reducido a la mitad */
    color: rgba(0, 0, 0, 0.71); /* Color del texto dentro de las celdas */
    /* Ajustar el padding para acomodar el texto más grande */
}

footer {  /* Estilos para el pie de página */
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 10px; /* Nuevo tamaño de fuente más pequeño */
}

@media only screen and (max-width: 1075px) {
    body {
        font-size: 0.4em; /* Reducimos el tamaño general de la fuente */
    }

    header {
        padding: 20px; /* Reducimos el padding */
    }

    .logo {
        max-height: 50px; /* Disminuimos el tamaño del logo */
    }

    .title-img {
        max-width: 150px; /* Disminuimos el tamaño del título */
    }

    .social-icons a {
        font-size: 1.5em; /* Ajusta este valor */
        padding-top: 50px;
    }

    .main-menu {
        background-color: rgb(103, 226, 140);
        text-align: center;
        padding: 0.1px 0;
        font-size: 2em; /* Reducir el tamaño de fuente */
    }

    .main-menu ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .main-menu li {
        margin: 0 5px; /* Reducir el margen horizontal */
    }

    .main-menu a {
        text-decoration: none;
        color: green;
        font-size: 1em; /* Reducir el tamaño de fuente */
    }

    .news-item {
        width: 135px; /* O incluso menor si lo prefieres */
    }


    .tournament-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 7px; /* Ajusta este valor para cambiar el tamaño de la fuente */
    }


    .tournament-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0; /* Eliminar el espacio entre las celdas */
        border-radius: 10px; /* Redondear los bordes exteriores de la tabla */
        font-size: 14px;
        overflow: hidden;
    }


    .tournament-table th,
    .tournament-table td {
        border: none; /* Eliminar bordes entre celdas */
        border-bottom: 1px solid black;
        padding: 5px;
        font-size: 0.5em;
    }

    /* Borde exterior de la tabla */
    .tournament-table {
        border: 3px solid black; /* Borde exterior */
    }





    /* Oculta columnas en la versión móvil (excepto "Enlace al Torneo") */
    .tournament-table th:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:last-child),
    .tournament-table td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:last-child) {
        display: none;
    }

    /* Muestra la columna "Info" solo en la versión móvil */
    .mobile-info-header,
    .mobile-info {
        display: table-cell !important;
    }

    .hidden-info {
        display: none;
    }



    .info-box {
        display: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background-color: black; /* Color de fondo negro */
        padding: 15px;
        border: 3px solid green; /* Borde verde */
        border-radius: 20px;
        z-index: 100;
        margin-top: 10px;
        width: 60%;
        font-size: 4em; /* Aumentar el tamaño de la fuente */
    }

    .info-box table {
        width: 100%;
        border-collapse: collapse;
        display: flex;
        flex-direction: column; /* Apilamos los elementos en columna */
    }

    .info-box tr {
        display: flex;
        justify-content: space-between; /* Distribuimos las celdas con espacio entre ellas */
        width: 100%;
    }

    .info-box td {
        background-color: rgb(103, 226, 140);
        padding: 10px;
        border-radius: 0px;
        color: rgba(0, 0, 0, 0.71);
        flex: 1; /* Las celdas ocupan espacio disponible */
    }

    /* Centra el último elemento y asegura que no haya espacio transparente */
    .info-box tr:last-child {
        justify-content: center; /* Centra el último elemento */
        background-color: black; /* Fondo negro para la fila */
        margin-bottom: 0; /* Sin margen inferior */
        flex: 1; /* Asegura que la fila ocupe todo el espacio */
    }

    .info-box tr:last-child td {
        flex: 1; /* Evita que el último td se expanda */
    }


    .button {
        display: inline-block;
        padding: 5px 10px;  /* Reduced padding for a smaller button */
        font-size: 8px;  /* Smaller font size */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 3px solid black;
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Adjust the width to fit the content */
        line-height: 1; /* Adjust line height to center text vertically */
    }
    .button:hover {
        background-color: white; /* Cambia el color de fondo al pasar el ratón */
    }



    .info-button {
        display: inline-block;
        padding: 5px 10px;  /* Reduced padding for a smaller button */
        font-size: 8px;  /* Smaller font size */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 3px solid black;
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Adjust the width to fit the content */
        line-height: 1; /* Adjust line height to center text vertically */
    }

    .info-button:hover {
        background-color: white; /* Cambia el color de fondo al pasar el ratón */
    }
}

@media only screen and (max-width: 430px) {
    body {
        font-size: 0.4em; /* Reducimos el tamaño general de la fuente */
    }

    header {
        padding: 20px; /* Reducimos el padding */
    }

    .logo {
        max-height: 50px; /* Disminuimos el tamaño del logo */
    }

    .title-img {
        max-width: 150px; /* Disminuimos el tamaño del título */
    }

    .social-icons a {
        font-size: 1.5em; /* Ajusta este valor */
        padding-top: 50px;
    }

    .main-menu {
        background-color: rgb(103, 226, 140);
        text-align: center;
        padding: 0.1px 0;
        font-size: 2em; /* Reducir el tamaño de fuente */
    }

    .main-menu ul {
        list-style: none;
        display: flex;
        justify-content: center;
        padding: 0;
    }

    .main-menu li {
        margin: 0 5px; /* Reducir el margen horizontal */
    }

    .main-menu a {
        text-decoration: none;
        color: green;
        font-size: 1em; /* Reducir el tamaño de fuente */
    }

    .news-item {
        width: 135px; /* O incluso menor si lo prefieres */
    }


    .tournament-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 7px; /* Ajusta este valor para cambiar el tamaño de la fuente */
    }


    .tournament-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0; /* Eliminar el espacio entre las celdas */
        border-radius: 10px; /* Redondear los bordes exteriores de la tabla */
        font-size: 7px;
        overflow: hidden;
    }


    .tournament-table th,
    .tournament-table td {
        border: none; /* Eliminar bordes entre celdas */
        border-bottom: 1px solid black;
        padding: 1px;
        font-size: 0.8em;
    }

    /* Borde exterior de la tabla */
    .tournament-table {
        border: 3px solid black; /* Borde exterior */
    }





    /* Oculta columnas en la versión móvil (excepto "Enlace al Torneo") */
    .tournament-table th:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:last-child),
    .tournament-table td:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:last-child) {
        display: none;
    }

    /* Muestra la columna "Info" solo en la versión móvil */
    .mobile-info-header,
    .mobile-info {
        display: table-cell !important;
    }

    .hidden-info {
        display: none;
    }



    .info-box {
        display: none;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background-color: black; /* Color de fondo negro */
        padding: 15px;
        border: 3px solid green; /* Borde verde */
        border-radius: 20px;
        z-index: 100;
        margin-top: 10px;
        width:80%;
        font-size: 2em; /* Aumentar el tamaño de la fuente */
    }

    .info-box table {
        width: 100%;
        border-collapse: collapse;
        display: flex;
        flex-direction: column; /* Apilamos los elementos en columna */
    }

    .info-box tr {
        display: flex;
        justify-content: space-between; /* Distribuimos las celdas con espacio entre ellas */
        width: 100%;
    }

    .info-box td {
        background-color: rgb(103, 226, 140);
        padding: 5px;
        border-radius: 0px;
        color: rgba(0, 0, 0, 0.71);
        flex: 1; /* Las celdas ocupan espacio disponible */
    }

    /* Centra el último elemento y asegura que no haya espacio transparente */
    .info-box tr:last-child {
        justify-content: center; /* Centra el último elemento */
        background-color: black; /* Fondo negro para la fila */
        margin-bottom: 0; /* Sin margen inferior */
        flex: 1; /* Asegura que la fila ocupe todo el espacio */
    }

    .info-box tr:last-child td {
        flex: 1; /* Evita que el último td se expanda */
    }


    .button {
        display: inline-block;
        padding: 2.5px 5px;  /* Reduced padding for a smaller button */
        font-size: 4px;  /* Smaller font size */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 1.5px solid black;
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 2.5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Adjust the width to fit the content */
        line-height: 1; /* Adjust line height to center text vertically */
    }
    .button:hover {
        background-color: white; /* Cambia el color de fondo al pasar el ratón */
    }

    .button2 {
        display: inline-block;
        padding: 2.5px 5px;  /* Reduced padding for a smaller button */
        font-size: 7px;  /* Smaller font size */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 1.5px solid black;
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 2.5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Adjust the width to fit the content */
        line-height: 1; /* Adjust line height to center text vertically */
    }
    .button2:hover {
        background-color: white; /* Cambia el color de fondo al pasar el ratón */
    }




    .info-button {
        display: inline-block;
        padding: 2.5px 5px;  /* Reduced padding for a smaller button */
        font-size: 4px;  /* Smaller font size */
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        border: 1.5px solid black;
        color: black;
        background-color: rgb(103, 226, 140);
        border-radius: 2.5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: auto; /* Adjust the width to fit the content */
        line-height: 1; /* Adjust line height to center text vertically */
    }

    .info-button:hover {
        background-color: white; /* Cambia el color de fondo al pasar el ratón */
    }
}




