/* === Microbe Ninja CSS === */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;

  /* 📸 FIXED: Full background that fills and clips like you wanted */
  background: url('hospital_bg.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #fff;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

#scoreDisplay, #timer {
  position: absolute;
  top: 20px;
  font-size: 24px;
  color: white;
  font-weight: bold;
  text-shadow: 2px 2px 4px black;
  z-index: 10;
}

#scoreDisplay {
  left: 20px;
}

#timer {
  right: 20px;
}

#startScreen, .modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  z-index: 20;
}

#startBtn, #restartBtn {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  background: #ff69b4;
  border: none;
  border-radius: 8px;
  color: white;
}

.hidden {
  display: none;
}

/* ➕➖ Floating score animation */
#floatingScores {
  position: absolute;
  pointer-events: none;
  z-index: 100;
}

.floating-score {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  animation: floatToScore 1.2s ease-out forwards;
  transition: transform 0.3s ease-out;
}

@keyframes floatToScore {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  50%  { transform: translateY(-40px) scale(1.2); opacity: 0.8; }
  100% { transform: translateY(-60px) scale(0.8); opacity: 0; }
}

/* 💥 Bomb or slice glow effect */
.bomb-effect {
  animation: screenFlash 0.3s ease-in-out;
}

@keyframes screenFlash {
  0%   { background-color: rgba(255, 0, 0, 0.4); }
  100% { background-color: transparent; }
}