body {
  font-size: 15px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: white;
  margin: 0;
  /* Puedes darles estilo si quieres que se vean como en tu imagen */
  text-align: center;
}

h1 {
  color: #333;
}

h2 {
  font-size: 22px;
  background-color: rgba(248, 5, 5, 0.466);
  /* Fondo rojo con 30% de transparencia */
}

.errores {
  text-align: right;
  padding-right: 85px;
  font-size: 25px;


}

main {
  padding-top: 1px;
  padding-bottom: 25px;
  background-image: url(imagenes/texture-1048860_1280.jpg);
  background-size: cover;
  /*ocupa todo el main automaticamente*/
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 150px);
  gap: 40px;
  justify-content: center;
  /* margin-top: 20px; */
}

.card {
  width: 150px;
  height: 150px;
  cursor: pointer;
  border: 2px solid #ee1616;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.matched {
  border-color: rgb(238, 45, 45);
}

.flipped {
  transform: scale(1.05);
}

footer {
  background-color: white;
  text-align: center;
  color: black;
  font-size: 20px;
}

@media (max-width: 768px) {
  .game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 20px;
    justify-content: center;
  }

  .card {
    width: 100px;
    height: 100px;
  }
}
