body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #000;
  position: relative;
}

h1, #timer {
  color: #ffd700; /* Gold text */
  text-shadow: 2px 2px 4px #000; /* Black drop shadow */
}

.description {
  margin-top: 10px; /* Slight spacing under the timer */
  margin-bottom: 20px; /* Spacing above the grid */
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ffd700; /* Gold text */
  text-shadow: 2px 2px 4px #000; /* Black drop shadow */
  padding: 10px;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  border-radius: 10px;
  max-width: 80%;
  margin: 10px auto; /* Center align */
}


.background-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/Dreaming.jpg') no-repeat center center fixed;
  background-size: 100% 100%; /* Forces the background to stretch and fit the iframe */
  filter: blur(8px);
  -webkit-filter: blur(8px);
}

.content {
  position: relative;
  z-index: 1;
}

.game-container {
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  justify-content: center;
  margin: 20px auto;
  max-width: 420px;
}

.card {
  background-color: #add8e6;
  border: 2px solid #ffd700;
  border-radius: 5px;
  width: 100%;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.card.flip .front {
  display: block;
}

.card.flip .back {
  display: none;
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.front {
  display: none;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
}

.back {
  background: url('images/backing.jpg') no-repeat center center; /* Add your image */
  background-size: cover; /* Ensure it covers the entire card */
  border-radius: 5px;
}


.hidden {
  display: none;
}

#reward {
  margin-top: 20px;
}
