body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
}

.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px; /* Aumentamos el ancho */
    width: 90%;
}

h1 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* Estilo para el área de texto */
#listaNombres {
    width: 95%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical; /* Permite redimensionar verticalmente */
    font-size: 0.9em;
}

.contador-texto {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}

#sortearBtn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-bottom: 25px;
}

#sortearBtn:hover:not(:disabled) {
    background-color: #218838;
}

#sortearBtn:disabled {
    background-color: #90ee90; /* Gris más claro cuando está deshabilitado */
    cursor: not-allowed;
}

.resultado-box {
    border: 2px solid #007bff;
    padding: 20px;
    border-radius: 8px;
    background-color: #e9f7ff;
}

.resultado-box p {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

/* El nombre ganador ahora es más grande y puede ocupar más espacio */
.nombre-ganador {
    font-size: 1.8em; /* Un poco más pequeño para nombres largos */
    font-weight: bolder;
    color: #dc3545;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    display: block; /* Ocupa todo el ancho */
    min-height: 35px;
    transition: all 0.5s ease-in-out;
    word-wrap: break-word; /* Rompe palabras si son muy largas */
}