/* 🎮 General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  font-family: "Poppins", sans-serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow-x: hidden;
}

/* 🌟 Main Container */
.container {
  text-align: center;
  padding: 20px;
}

/* ✨ Headings */
.title {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
  color: #00e0ff;
  /* text-shadow: 0 0 15px #00e0ff; */
}

.subtitle {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/*initial view of game page*/
/* .initial{
  background-image: url("./assets/images/frontImage.png");
} */

/* 🟩🟥🟨🟦 Game Board */
/* 💤 Default Blurred State (Before Start) */
.game-board {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: repeat(2, 130px);
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);

  /* 👇 Blur and dim effect before start */
  filter: blur(6px);
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.4s ease;
}

/* 🚀 Active Game Board (After Start Button Clicked) */
.game-board.active {
  filter: blur(0);
  opacity: 1;
  pointer-events: all;
}


.btn {
  width: 130px;
  height: 130px;
  border-radius: 25%;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* 🎨 Colors */
.green { background: #4caf50;  }
.red { background: #f44336;}
.yellow { background: #ffeb3b;  }
.blue { background: #2196f3; }

/* ▶️ Start Button */
#start-btn {
  margin-top: 25px;
  background: #00e0ff;
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px #00e0ff;
  transition: 0.3s;
}

#start-btn:hover {
  background: #00bfff;
  transform: scale(1.05);
}

/* 🧩 Level Display */
.level-track {
  margin-top: 20px;
  font-size: 2rem;
  color: #ccc;
}

/* ❤️ Footer */
footer {
  position: absolute;
  bottom: 10px;
  font-size: 0.9rem;
  color: #aaa;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .title { font-size: 2rem; }
  .game-board {
    grid-template-columns: repeat(2, 110px);
    grid-template-rows: repeat(2, 110px);
  }
  .btn {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .title { font-size: 1.8rem; }
  .subtitle { font-size: 0.9rem; }
  .game-board {
    grid-template-columns: repeat(2, 90px);
    grid-template-rows: repeat(2, 90px);
    gap: 12px;
  }
  .btn {
    width: 90px;
    height: 90px;
  }
  #start-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 💥 Game Over Effect */
.game-board.game-over {
  animation: gameOverFlash 0.6s ease;
  filter: grayscale(100%) brightness(0.4);
  pointer-events: none;
}

/* 🔄 Flash Animation */
@keyframes gameOverFlash {
  0% { background: rgba(255, 0, 0, 0.4); }
  50% { background: rgba(255, 0, 0, 0.8); }
  100% { background: rgba(255, 0, 0, 0.4); }
}

.pressed {
  box-shadow: 0 0 20px white;
  background-color: grey;
}

.htp-btn{
  margin-top: 25px;
  background: #00e0ff;
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 20px #00e0ff;
  transition: 0.3s;
}