/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction:     column  ;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    background-image: url(fondo.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    text-align: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 33px;
    margin-bottom: 10px;
    font-weight: 700;
    color:  #f0f8ff ;
}

p {
    font-size: 11px;
}

.bola {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #1a1a2e, #0f3460);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
}

.bola:hover {
    transform: scale(1.10);
    transition: transform 0.3s;
}

.pregunta {
    font-size: 16px;
    padding: 10px;
    color: #fff;
}

.respuesta {
    margin-top: 30px;
    font-size: 30px;
    font-weight: bold;
    color: seagreen;
    text-shadow: 0.1em 0.1em #333
}


/* Animación de agitación */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-2px);
    }
}

/* Clase para activar la agitación */
.shaking {
    animation: shake 0.25s infinite; /* La animación dura 0.5s y se repite */
}


@media (max-width: 600px) {

  body {
    justify-content: flex-start;
    padding-top: 10vh;
  }

  p {
    margin-bottom: 45px;
  }

  h1 {
    font-size: 27px;
    padding-inline: 9px;
  }

  .respuesta {
    padding-inline: 15px;
    font-size: 25px;
    margin-bottom: 15px;
  }

}
