/* style.css */
body {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(120deg, #2c3e50, #3498db);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

.game-container {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 800px;
  transition: transform 0.1s ease-in-out; /* For screen shake */
}

h1 {
  font-size: 2.5em;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.info-bar {
  display: flex;
  justify-content: space-around;
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 20px;
}

#game-area {
  position: relative;
  height: 400px; 
}

#message-box {
  font-size: 1.2em;
  font-weight: bold;
}

button#startButton {
  font-size: 24px;
  padding: 15px 30px;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 10px;
  transition: background-color 0.3s, transform 0.2s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

button#startButton:hover {
  background-color: #45a049;
  transform: translate(-50%, -50%) scale(1.05);
}

#numbersContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.hanging-number, .power-up, .bomb {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.5s;
  padding: 10px;
  border-radius: 50%;
  width: 30px; /* Fixed width */
  height: 30px; /* Fixed height */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base style for number */
.hanging-number {
  color: #ffcc00;
  animation: float 5s ease-in-out infinite, glow-number 1.5s infinite alternate;
}

.hanging-number:hover, .power-up:hover, .bomb:hover {
  transform: scale(1.2);
  animation-play-state: paused;
}

/* Power-up Style */
.power-up {
    color: #00ffdd;
    background-color: rgba(0, 255, 221, 0.2);
    border: 2px solid #00ffdd;
    animation: float 4s ease-in-out infinite, glow-powerup 1s infinite alternate;
}

/* Bomb Style */
.bomb {
    color: #ff4747;
    background-color: rgba(255, 71, 71, 0.2);
    border: 2px solid #ff4747;
    animation: float 6s ease-in-out infinite, glow-bomb 0.8s infinite alternate;
}

.correct-guess { animation: correct 0.5s ease-out !important; }
.incorrect-guess { animation: incorrect 0.5s ease-out !important; }

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}
@keyframes glow-number {
  from { text-shadow: 0 0 8px #ffcc00; }
  to { text-shadow: 0 0 20px #ffa500; }
}
@keyframes glow-powerup {
  from { box-shadow: 0 0 10px #00ffdd; }
  to { box-shadow: 0 0 25px #00ffdd, inset 0 0 5px #00ffdd; }
}
@keyframes glow-bomb {
  from { box-shadow: 0 0 10px #ff4747; }
  to { box-shadow: 0 0 25px #ff4747, inset 0 0 5px #ff4747; }
}
@keyframes correct {
  0% { transform: scale(1.1); background-color: rgba(76, 175, 80, 0.8); }
  100% { transform: scale(1); background-color: transparent; }
}
@keyframes incorrect {
  0% { transform: scale(0.9); background-color: rgba(244, 67, 54, 0.8); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
  100% { transform: scale(1); background-color: transparent; }
}
@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}