body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #222;
  color: #0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  height: 100vh;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-gap: 15px;
  margin-bottom: 20px;
}

.card {
  width: 100px;
  height: 140px;
  background: #111;
  border: 2px solid #0f0;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  perspective: 600px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  user-select: none;
}

.card-front {
  background: #0f0;
  color: #111;
  transform: rotateY(180deg);
}

.card-back {
  background: #111;
  color: #0f0;
}

button {
  padding: 10px 20px;
  background: #0f0;
  border: none;
  border-radius: 8px;
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-right: 10px; /* espaçamento entre botões */
}

button:last-child {
  margin-right: 0;
}

button:hover {
  background: #0c0;
}
/* seu CSS atual aqui... */

.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
}
