body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a, #333333);
  margin: 0;
  padding: 20px;
}

h1 {
  color: #ffcc00;
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px #000;
}

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

.card {
  position: relative;
  width: 150px;
  height: 150px;
  perspective: 1000px;
}

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

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

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-front {
  transform: rotateY(180deg);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front img,
.card-back img {
  max-width: 90%;
  max-height: 90%;
}

.card-back {
  background: linear-gradient(135deg, yellow, #ff6600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back img {
  border-radius: 10px;
}

.timer-moves-container h2 {
  margin: 5px 0;
}

.timer-moves-container + .game-board {
  margin-top: 35px;
}

#timer,
#moves {
  font-weight: bold;
  font-size: 1.5rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #1e1e1e, #2a2a2a);
  color: #ffeb3b;
  text-shadow: 0 0 3px rgba(255, 235, 59, 0.6);
  box-shadow: 0 0 4px rgba(255, 235, 59, 0.3);
  display: inline-block;
}

.timer-label {
  color: #00e5ff;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.6), 0 0 6px rgba(0, 229, 255, 0.4);
}

.timer-value {
  color: #ff1744;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255, 23, 68, 0.6), 0 0 6px rgba(255, 23, 68, 0.4);
}
