/* ======== ESTILOS GENERALES ======== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

header {
    background: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
}

/* ======== MENÚ PRINCIPAL ======== */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #333;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
    padding: 15px;
    color: white;
    cursor: pointer;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li:hover {
    background-color: #575757;
}

/* ======== MENÚ DESPLEGABLE ======== */
.dropdown {
    display: none;
    position: absolute;
    background: #222;  /* Fondo oscuro para que se vea bien */
    list-style: none;
    padding: 0;
    border: 1px solid #ccc;
    left: 100%; /* Mueve el submenú hacia la derecha */
    top: 0; /* Alinea al top del elemento principal */
    min-width: 150px;
    z-index: 1000; /* Asegura que se muestre por encima */
}

.dropdown li {
    padding: 10px;
    white-space: nowrap; /* Evita que los elementos se corten */
    color: white; /* Texto en blanco */
}

.dropdown li:hover {
    background: #444; /* Un gris oscuro para resaltar */
}

/* Permite que el submenú permanezca visible cuando pasas el mouse */
nav ul li:hover > .dropdown {
    display: block;
}

/* ======== ESTILOS PARA TABLAS ======== */
.resultados, .tabla-posiciones, .tabla-goleadores {
    margin: 20px auto;
    width: 80%;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th, td {
    padding: 10px;
    text-align: center;
}

th {
    background: #555;
    color: white;
}

/* ======== FOOTER ======== */
footer {
    background: #333;
    color: white;
    padding: 10px;
    position: relative;
    margin-top: 20px;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

button:hover {
    background-color: #0056b3;
}
