 
body {
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  color: white;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 20px;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

h3 {
  margin-bottom: 20px;
}

.memory-game {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-gap: 10px;
  max-width: 600px;
  margin: auto;
  perspective: 1000px;
}

.memory-card {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  backface-visibility: hidden;
}

.memory-card .front-face {
  transform: rotateY(180deg);
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.memory-card .back-face {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(0deg);
}

.memory-card:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

#timerDisplay {
  font-size: 20px;
  margin-top: 20px;
}

#gameButton {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  font-size: 18px;
  color: white;
  background-color: #555;
  border: none;
  cursor: pointer;
}


@media (max-width: 768px) {
  .memory-card {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 576px) {
  .memory-card {
    width: 60px;
    height: 60px;
  }
}




