body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1, h2 {
    text-align: center;
    color: #2d3b55;
}

.rifa-numeros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.numero {
    width: 100px;
    height: 100px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
}

.numero span {
    display: block;
}

.libre {
    background-color: #28a745;  /* Verde */
    color: white;
}

.ocupado {
    background-color: #dc3545;  /* Rojo */
    color: white;
}

.numero:hover {
    opacity: 0.8;
}

.numero .comprador {
    font-size: 12px;  /* Fuente más pequeña */
    color: white;
    margin-top: 5px;
}

.agregar-numeros-form {
    margin-top: 30px;
    text-align: center;
}



.agregar-numeros-form input {
    width: 100px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.agregar-numeros-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.agregar-numeros-form button:hover {
    background-color: #0056b3;
}

.form-container {
    margin-top: 20px;
    display: none;
}

.form-container input, .form-container select {
    padding: 8px;
    margin-bottom: 10px;
    width: 250px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.form-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #218838;
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
}

/* Estilos para el cuadro flotante con los datos del comprador */
.cuadro-flotante {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 1000;
    display: none;
}

.cuadro-contenido h4 {
    margin-bottom: 15px;
}

.cuadro-contenido p {
    margin: 5px 0;
}

.cuadro-contenido .cerrar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 20px;
}

.cuadro-contenido .cerrar:hover {
    background-color: #c82333;
}

/* Formulario flotante */
.form-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    display: none;
    z-index: 999;
}

/* Botón de cerrar para el formulario */
.form-container .cerrar {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 20px;
}

.form-container .cerrar:hover {
    background-color: #c82333;
}

/* Estilo para los números disponibles */
.numero {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 40px;
    text-align: center;
    margin: 10px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
}

.numero.libre {
    background-color: green;
    color: white;
}

.numero.ocupado {
    background-color: red;
    color: white;
}

.numero .comprador {
    font-size: 12px;
    margin-top: 5px;
}

/* Estilo del botón "Cerrar sesión" */
.button.center {
    display: block;
    margin: 20px auto; /* Centrar el botón */
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

.button.center:hover {
    background-color: #0056b3;
}

#numeroSeleccionado {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Estilo para el mensaje de resultado */
.mensaje {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8d7da; /* Color de fondo predeterminado */
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    width: 80%;
    max-width: 500px;
    z-index: 1000;
    display: none; /* Ocultamos el mensaje inicialmente */
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para la página de login */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #218838;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

/* Estilo para el modal */
#modal-cambiar-contrasena {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contenido del modal */
.modal-contenido {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 400px; /* Ajusta el tamaño del modal según sea necesario */
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botón de cerrar dentro del modal */
.cerrar {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}

.cerrar:hover,
.cerrar:focus {
    color: black;
    cursor: pointer;
}

/* Estilo para el formulario de cambio de contraseña */
#modal-cambiar-contrasena form {
    display: flex;
    flex-direction: column;
}

#modal-cambiar-contrasena input[type="password"] {
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#modal-cambiar-contrasena button {
    padding: 10px;
    background-color: #4CAF50; /* Estilo similar al botón de cerrar sesión */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

#modal-cambiar-contrasena button:hover {
    background-color: #45a049;
}

/* Estilo para el botón de "Cambiar Contraseña" */
.button {
    display: inline-block;
    background-color: #4CAF50;  /* Mismo estilo que el botón de cerrar sesión */
    padding: 10px 20px;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background-color: #45a049;
}

.center {
    display: block;
    margin: 0 auto;
}

/* Centrar todo el contenido */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h3 {
    text-align: center;
}

p {
    text-align: center;
    font-size: 18px;
}

form {
    margin-top: 20px;
    text-align: center;
}

input[type="number"] {
    padding: 10px;
    width: 50%;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

/* Añadir un estilo para los botones y los enlaces */
a {
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
}

button.btn {
    width: 100%;
}

   /* Estilos para centrar los números */
   body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: 20px;
    font-size: 2em;
    color: #333;
}

h3 {
    margin-top: 20px;
    color: #333;
}

.numeros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.numero {
    background-color: #eee;
    padding: 10px;
    border-radius: 8px;
    width: 80px;
    height: 80px;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer; /* Cambia el cursor al pasar sobre el número */
    position: relative;
}

.numero[data-estado="libre"] {
    background-color: green;
}

.numero[data-estado="ocupado"] {
    background-color: red;
}

/* Estilo para el comprador */
.comprador {
    font-size: 0.8em;
    color: #fff;
    position: absolute;
    bottom: 5px; /* Coloca el nombre del comprador justo debajo del número */
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 0;  /* Elimina el margen superior para que esté justo debajo */
}

/* Reducir el espacio entre los números */
.numeros {
    gap: 5px;
}