body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #7db470;
  margin: 0;
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@keyframes aparecer {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.titulo {
  font-size: 90px;            
  color: #0a8a0ad0;
  margin-bottom: 30px;
  text-shadow: 4px 4px 6px rgba(14, 17, 219, 0.993);
  animation: aparecer 1s ease-out;
}

.contenedor {
  margin-top: 0;
}

.info {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 20px;
  margin-bottom: 10px;
}

.tablero {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  grid-gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.carta {
  width: 120px;
  height: 120px;
  background-color: rgb(11, 37, 77);
  border: 3px solid rgb(107, 190, 142);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.carta.volteada {
  transform: rotateY(180deg);
}

.cara, .dorso {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.dorso {
  background-color: rgb(143, 197, 152);
}

.cara {
  transform: rotateY(180deg);
}

.cara img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.acertadas {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.acertadas img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

button {
  margin-top: 20px;
  padding: 15px 40px;
  border: none;
  border-radius: 10px;
  background-color: #5cce58;
  cursor: pointer;
  font-size: 22px; 
  transition: 0.3s;
}

button:hover {
  background-color: #277988;
  transform: scale(2.2);
}

.game-info {
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
}

