* {
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-image:
    linear-gradient(145deg, rgba(2, 9, 14, 0.88), rgba(8, 26, 36, 0.55)),
    url("../../../98.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  text-align: center;
  margin: 0;
  padding: 30px;
}

h1 {
  margin-bottom: 20px;
}

button {
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

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

.card {
  width: 100px;
  height: 100px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

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

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  backface-visibility: hidden;
}

.front {
  background: #edf2f7;
  color: #2d3748;
  transform: rotateY(180deg);
}

.back {
  background: #1a202c;
}
