/* Base */
body {
    background-color: #000;
    color: #e0e0e0;
    font-family: 'Press Start 2P', monospace; /* estilo arcade */
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

h1 {
    font-size: 2em; /* Aumenté el tamaño base */
}

h2 {
    font-size: 1.5em; /* Aumenté el tamaño base */
}

/* Links */
a {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

a:hover {
    color: #ffffff;
}

/* Form & Filters */
form, .filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

input, select, button {
    font-size:1.2em;
    width: 100%;
    padding: 10px;
    font-family: 'Press Start 2P', monospace;
    background-color: #111;
    color: #e0e0e0;
    border: 2px solid #555;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

input::placeholder {
    color: #888888;
}

button:hover {
    background-color: #00bfff;
    color: #000;
    cursor: pointer;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th, td {
    padding: 10px;
    text-align: center;
    font-size: 1.2em; /* Aumenté el tamaño de las fuentes */
}

th {
    background-color: #111;
}

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

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

/* Top rankings */
tr.first-place {
    background: #000;
    color: gold;
    font-weight: bold;
    border: 2px solid gold;
}

tr.second-place {
    background: #000;
    color: silver;
    font-weight: bold;
    border: 2px solid silver;
}

tr.third-place {
    background: #000;
    color: #cd7f32; /* bronze */
    font-weight: bold;
    border: 2px solid #cd7f32;
}

/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

#pagination button {
    background: #111;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 5px 10px;
    margin: 2px;
    transition: all 0.2s ease;
}

#pagination button.active,
#pagination button:hover {
    background: #00bfff;
    color: #000;
}

/* Popups */
#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    color: #e0e0e0;
    border: 2px solid #555;
    padding: 20px;
    z-index: 1000;
    width: 300px;
    text-align: center;
}

.popup input {
    width: 90%;
    padding: 8px;
    margin-bottom: 10px;
}

.popup button {
    width: 90%;
    padding: 10px;
    margin: 5px 0;
}

/* Admin panel */
body.admin-panel {
    background-color: #000;
    color: #e0e0e0;
    font-family: 'Press Start 2P', monospace;
    padding: 20px;
    max-width: 1040px;
    margin: auto;
}

body.admin-panel table,
body.admin-panel th,
body.admin-panel td {
    border: 1px solid #555;
}

body.admin-panel a {
    color: #00bfff;
}

body.admin-panel a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    form, .filters {
        width: 100%;
        max-width: 90%;
    }

    table, th, td {
        font-size: 1.2em; /* Aumenté aún más el tamaño de las fuentes */
    }

    h1 {
        font-size: 2.2em; /* H1 más grande */
    }

    h2 {
        font-size: 1.7em; /* H2 más grande */
    }

    .popup {
        width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5em; /* H1 aún más grande */
    }

    h2 {
        font-size: 2em; /* H2 más grande */
    }

    table, th, td {
        font-size: 1.3em; /* Aumento significativo del tamaño de las fuentes */
    }

    .popup {
        width: 95%;
    }
}

.site-header {
    text-align: center;
    margin-bottom: 20px;
}

.site-logo {
    max-width: 400px;
    height: auto;
}