body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    overflow-y: hidden;
  
}
.card img {
    display: none;
    width: 90%;
    height: 90%;
    object-fit: cover;
    
  }

  .card.flipped img {
    display: block;
  }
.container {
    position: relative;
    bottom: -70px;
    text-align: center;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(5, 130px);
    grid-template-rows: repeat(5, 130px);
    gap: 10px;
    justify-content: center;
    
}

.card {
    width: 130px;
    height: 130px;
    background-color: #007BFF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.card.flipped {
    background-color: #28a745;
    pointer-events: none;
}

.card.matched {
    background-color: #ffc107;
    pointer-events: none;
}
/* Estilos para pantallas pequeñas (hasta 480px) */

  
  /* Estilos para pantallas grandes (más de 768px) */
  @media (min-width: 450px) and (max-width: 768px) {
    .card {
      font-size: 2rem;
      
    }
    .card img {
        display: none;
        width: 90%;
        height: 90%;
        object-fit: cover;
        
      }
    .game-board {
        display: grid;
        grid-template-columns: repeat(5, 80px);
        grid-template-rows: repeat(5, 80px);
        gap: 10px;
        justify-content: center;
        
    }
    
    .card {
        width: 80px;
        height: 80px;
        background-color: #007BFF;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }
    
  }
  @media (min-width: 280px) and (max-width: 450px) {
    .card {
      font-size: 2rem;
      
    }
    .card img {
        display: none;
        width: 90%;
        height: 90%;
        object-fit: cover;
        
      }
    .game-board {
        display: grid;
        grid-template-columns: repeat(5, 40px);
        grid-template-rows: repeat(5, 40px);
        gap: 10px;
        justify-content: center;
        
    }
    
    .card {
        width: 40px;
        height: 40px;
        background-color: #007BFF;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        color: white;
        border-radius: 5px;
        cursor: pointer;
    }
    
  }