body {
  font-family: Arial, sans-serif;
  background-image: url(/cultura/img/fondo\ memorama.jpg);
  background-size: 1750PX;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #ff8c42;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.selector {
  margin-bottom: 20px;
}

.selector button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 1rem;
  background-color: #ffffff;
  border: 2px solid #ff8c42;
  color: #ff8c42;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.selector button:hover {
  background-color: #ff8c42;
  color: white;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 15px;
  justify-content: center;
  margin: 0 auto;
}

.card {
  width: 100px;
  height: 100px;
  perspective: 1000px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  background-color: #ffbb5c;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-front {
  color: #5c2a00;
}

.card-back {
  transform: rotateY(180deg);
  overflow: hidden;
  background-color: white;
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.win-message {
  font-size: 1.5rem;
  color: #1e824c;
  margin-top: 20px;
}
