body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #503232;
  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: 70px;            
  color: #9e7f3df1;
  margin-bottom: 30px;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.4);
  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(75, 19, 12);
  border: 3px solid rgb(180, 132, 42);
  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(148, 143, 136);
}

.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: #ffcc00;
  cursor: pointer;
  font-size: 22px; 
  transition: 0.3s;
}

button:hover {
  background-color: #e6b800;
  transform: scale(1.1);
}
