body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
  }
  
  .memory-game {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: 600px;
  }
  
  .memory-card {
    width: 100%;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s ease; /* Volteo suave */
    cursor: pointer;
    perspective: 1000px; /* Añade profundidad 3D para el efecto de volteo */
  }
  
  .memory-card.flip {
    transform: rotateY(180deg); /* Volteo de 180 grados */
  }
  
  .memory-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden; /* Oculta la cara trasera al voltear */
    border-radius: 10px;
  }
  
  .memory-card .front-face {
    background-color: #ADD8E6; /* Azul claro para el frente */
    transform: rotateY(180deg); /* Oculta el frente inicialmente */
  }
  
  .memory-card .back-face {
    background-color: #f8f9fa;
  }
  
  @media (max-width: 576px) {
    .memory-card {
      height: 120px; /* Ajuste de altura en pantallas pequeñas */
    }
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  p.lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  