/* Estilo global */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

main {
  max-width: 600px;
  width: 100%;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Título */
h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 20px;
}

/* Bola 8 flotante */
.ball8 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #000000, #444444);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  animation: bounce 2s infinite;
}

.ball8-circle {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: black;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animación de rebote */
@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

/* Estilos de la pregunta */
.pregunta {
  margin-top: 20px;
}

input {
  margin-bottom: 20px;
  padding: 12px 20px;
  border: 1px solid #007aff;
  border-radius: 10px;
  width: 80%;
  font-size: 16px;
  background-color: #f8f8f8;
  color: #333;
}

input::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Botón */
button {
  font-weight: bold;
  padding: 12px 24px;
  background-color: #007aff;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.05);
}

button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

/* Respuesta */
.respuesta {
  background-color: #f0f0f5;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Disclaimer */
.disclaimer {
  margin-top: 40px;
  font-size: 12px;
  color: #777;
  text-align: center;
}
