/* Contenido FINAL para loteria-styles.css */

body {
    margin: 0; /* Aseguramos que el body no tenga m¨¢rgenes */
}

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

#loteria-viewport-wrapper {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: #0d2f1c;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#loteria-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 1vw;
    width: 100%;
    height: 100%;
}

/* --- Nuevas reglas para ocultar/mostrar elementos --- */
#loading-message {
    color: white;
    font-size: 20px;
}
#lotterytable, #controles-loteria {
    display: none; /* Ocultos por defecto */
}

/* --- Estilos de la tabla y celdas (sin cambios) --- */
table#lotterytable {
    border-collapse: collapse;
    width: auto;
    height: 80vh;
    max-height: 80vh;
    aspect-ratio: 1 / 1.585;
    max-width: 100%;
}
td {
    border: 2px solid #bba153;
    cursor: pointer;
    position: relative;
    background-size: cover;
    background-position: center;
}
.selected::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* --- Estilos para los botones (sin cambios) --- */
#controles-loteria {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
    justify-content: center;
    width: 100%;
    max-width: 700px; 
}
#controles-loteria button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #c52d2f;
    border: 2px solid #bba153;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-grow: 1; 
    flex-basis: 160px;
    text-align: center;
}
#controles-loteria button:hover { background-color: #a12123; }
#controles-loteria button:disabled { background-color: #666; cursor: not-allowed; }