body {
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  background: linear-gradient(to right, #fceabb, #f8b500);
  margin: 0;
  padding: 20px;
}

h1 {
  margin-bottom: 10px;
  color: #333;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.message-box {
  font-size: 20px;
  margin-bottom: 15px;
  color: white;
  padding: 8px 16px;
  background-color: #333;
  display: inline-block;
  border-radius: 8px;
  min-height: 30px;
}

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

.card {
  width: 100px;
  height: 100px;
  background-color: #444;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  border-radius: 10px;
}

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

.card .front, .card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: bold;
}

.card .front {
  background-color: #fff;
  color: #111;
  transform: rotateY(180deg);
}

.card .back {
  background-color: #666;
  color: #fff;
}

.hidden {
  display: none;
}

#win-message {
  font-size: 24px;
  margin-top: 20px;
  color: darkgreen;
}
