body {
  background: url("./background.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  text-align: center;
  margin: 0;
}

#scoreboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px auto;
  width: 450px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 15px 25px;
  border-radius: 15px; /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow effect */
}

#scoreboard h2 {
  margin: 0;
  color: #fff; /* White text */
}

#scoreboard span {
  color: #f39c12; /* Gold-colored text for score and timer */
  font-size: 22px;
}

#board {
  width: 450px;
  height: 450px;
  background-color: lightblue;
  border: 5px solid slategray;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
}

#board img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

#gameOver {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 10px;
  color: white;
  text-align: center;
  z-index: 999;
}

#restartButton {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #ff4757;
  border: none;
  border-radius: 5px;
  color: white;
}

#restartButton:hover {
  background-color: #e84118;
}

.hidden {
  display: none;
}

/* Animation Styles */
.tile {
  transition: transform 0.3s ease-in-out;
}

.tile:hover {
  transform: scale(1.2);
}

@keyframes crushAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(0);
  }
}

.crushed {
  animation: crushAnimation 0.3s ease forwards;
}
