body {
  text-align: center;
  font-family: Arial, sans-serif;
  background-color: #D7B49E;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 20px;
  color: #876b56;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

h1:hover {
  transform: scale(1.05);
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  transform: scale(1.05);
}

.score-panel {
  margin-top: 20px;
}

.grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 10px;
}

.card {
  width: 100px;
  height: 100px;
  position: relative;
  perspective: 1000px;
  border-radius: 5px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-in-out;
}

.card .card-inner {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-in-out;
}

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

.card .card-front {
  background-color: #b68d73;
  color: #333333;
  transform: rotateY(0);
}

.card .card-back {
  background-color: #ebc7b1;
  color: #333333;
  transform: rotateY(180deg);
}

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

.card.matched {
  cursor: default;
}

.restart {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.restart:hover {
  background-color: #000000;
  color: rgb(255, 255, 255);
}

.moves {
  font-size: 18px;
  margin-right: 10px;
}

.timer {
  font-size: 18px;
}

header {
  background-color: #D7B49E;
  padding: 20px;
  color: white;
}

header h1 {
  font-size: 24px;
  margin: 0;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

header nav ul li {
  margin: 0 10px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

header nav ul li a:hover {
  transform: scale(1.1);
}
