

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 15px;
}

th.sticky-right, td.sticky-right {
    position: sticky;
    right: 0;
    z-index: 1; /* Asegura que esté encima del resto */
    padding: 5px 5px;
}

table {
    width: auto;
    margin: 0 auto;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    table-layout: fixed;
}

/* Fixed height for headers and cells */
thead th {
    padding: 12px 8px;
    height: 40px;
    text-align: center;
}

tbody td {
    height: 40px;
    padding: 8px 10px;
    text-align: center;
}

/* Styles for table headers */
thead th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

/* Rows in the table */
tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

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

/* Fixed cell height */
img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

tbody tr:hover {
    cursor: pointer;
}

td:nth-child(11) {
    font-weight: bold;
    color: #007bff; 
}

td:nth-child(2) {
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Toggle button styles */
.toggle-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Flexbox for team info */
.team-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el número y el escudo */
}

/* Descent styles */
tbody tr.descent {
    background-color: #ffcfcf; /* red color to descent */
    color: #a94442;
}

tbody tr.descent td:nth-child(11) {
    color: #a94442 !important;
    font-weight: bold;
}

tbody tr.descent:nth-child(even) {
    background-color: #ffe0e0; /* light red to even rows */
}

tbody tr.descent:hover {
    cursor: pointer;
}

/* To index.html */
.selection-container {
    text-align: center;
    padding: 20px;
}

.selection-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 15px;
    background-color: #007bff; 
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.selection-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.selection-button:active {
    background-color: #003373;
}