/* Cleaned up: removed duplicate/unused rules, grouped button styles, and ensured all button and background styling is handled here. */
body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

#waveCanvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.btn-group {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.btn-group button,
#whiteBtn {
  border: none;
  outline: none;
  padding: 10px 18px;
  margin: 0 4px 0 0;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  background: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-group button:last-child {
  margin-right: 0;
}
.btn-group button.active-btn,
#whiteBtn.active-btn {
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  filter: brightness(1.08);
  z-index: 1;
}
#whiteBtn {
  display: block;
  margin: 16px auto 0 auto;
  background: #222 !important; /* Ensure matches other buttons */
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  border: none; /* Explicitly remove border */
}
#whiteBtn.active-btn {
  background: #fff !important;
  color: #222;
  border: none; /* Explicitly remove border for active state */
}
#redBtn { color: #ff4444; }
#orangeBtn { color: #ff9900; }
#yellowBtn { color: #ffe066; }
#greenBtn { color: #00ff99; }
#blueBtn { color: #00aaff; }
#indigoBtn { color: #4b5cff; }
#violetBtn { color: #a259ff; }
/* Infrared button with thermal camera gradient */
#infraredBtn {
  background: #222;
  color: #fff;
  font-weight: 700;
  position: relative;
}
#infraredBtn .thermal-text {
  background: linear-gradient(90deg, #1976d2 0%, #ff9900 50%, #ff4444 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
#infraredBtn.active-btn {
  background: linear-gradient(90deg, #1976d2 0%, #ff9900 50%, #ff4444 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
