/* Reseteo de algunos márgenes y padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo y estilo general del cuerpo */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Contenedor principal */
.container {
    text-align: center;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Estilo para el título principal */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px; /* Reducido para que quede más cerca del subtítulo */
}

/* Estilo para la leyenda "Jugar en familia es lo mejor" */
.subtitulo {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px; /* Se ajustó el espaciado entre la leyenda y el campo */
}

/* Estilo para el formulario */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px; /* Limita el ancho máximo del formulario */
}

/* Estilo para el campo de texto */
input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Establece que el input ocupe todo el espacio disponible */
    max-width: 350px; /* Limita el ancho máximo */
}

/* Estilo para el botón */
button {
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%; /* Hace que el botón ocupe todo el espacio disponible */
    max-width: 350px; /* Limita el ancho máximo */
}

button:hover {
    background-color: #2980b9;
}

/* Estilo para el resultado */
.resultado {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #27ae60;
    font-weight: bold;
}

.resultado p {
    margin-bottom: 10px;
}