body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;


    background: url(../images/memorama.webp);
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
  }
  
  h1 {
    margin-top: 20px;
  }

  h2{
    width: 100%;
  }
  
  .memory-game {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 15px;
    margin: 20px auto;
  }
  
  .card {
    width: 100px;
    height: 100px;
    background-color: #2a9d8f;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #f4a261;
    position: relative;
    transform: scale(1);
    transition: transform 0.5s;
  }
  
  .card.flip {
    background-color: #264653;
    color: #e9c46a;
  }
  
  @media (max-width: 600px) {
    .memory-game {
      grid-template-columns: repeat(3, 100px);
    }
  }
  
  .card {
    width: 100px; /* Ancho de la carta */
    height: 100px; /* Alto de la carta */
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.5s;
  }
  
  .icon {
    width: 100%; /* Ajusta la imagen al ancho completo de la carta */
    height: 100%; /* Ajusta la imagen al alto completo de la carta */
    object-fit: cover; 
    display: block;
  }
  

  .btn{
    border: none;
    background: #014b11;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: .5s;
    margin-top: 1rem;
}
.btn:hover{
    transform: scale(1.1);
}