body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
}

h1 {
  font-size: 3em;
  margin: 0.3em 0;
  text-align: center;
}

/* Countdown */
/* Smaller timer for control page */
.countdown {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  margin: 0.5em 0;
  text-align: center;
}


.blinds {
  font-size: 3em;
  color: #0f0;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.2em;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.control-btn {
  background: #222;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 100px;
}

.control-btn:hover:not(:disabled) {
  background: #444;
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* specific visual states */
.start-btn.running {
  background: #e53935;
  color: #fff;
  box-shadow: 0 0 10px rgba(229,57,53,0.6);
}

.pause-btn.active {
  background: #ffb300;
  color: #000;
  font-weight: 700;
}

.adjust-btn {
  background: #333;
}

.adjust-btn:hover {
  background: #4caf50;
}

.reset-btn {
  background: #1976d2;
}

.skip-btn {
  background: #8e24aa;
}


button {
  font-size: 1.2em;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #333;
  color: white;
  transition: background 0.2s;
}
button:hover { background: #555; }

.flash { animation: flash 0.5s alternate 6; }
@keyframes flash { from { background:#000; } to { background:#333; } }

/* Red pulse for final 10s */
@keyframes pulseRed {
  0%   { background-color: #300; }
  50%  { background-color: #900; }
  100% { background-color: #300; }
}
.pulse-red { animation: pulseRed 1s infinite; }

/* Control page layout */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}
.grid {
  display: grid;
  gap: 12px;
}
.card {
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
}
label { display:block; margin: 6px 0 2px; }
input, textarea {
  width: 100%;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  font-size: 16px;
  box-sizing: border-box;
}
.small { font-size: .95em; color: #bbb; }

/* ===== AUDIO BUTTONS ===== */
.audio-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.sound-btn {
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  transition: all 0.15s ease-in-out;
}

.sound-btn:hover {
  background: linear-gradient(145deg, #333, #222);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.sound-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.6) inset;
  background: linear-gradient(145deg, #111, #000);
}

/* Make sure they’re easy to hit on touch devices */
@media (max-width: 600px) {
  .sound-btn {
    font-size: 1rem;
    padding: 14px;
  }
}

@media (max-width: 600px) {
  .soundboard-link {
    width: 90%;
    margin-bottom: 60px;
  }
}


/* --- Soundboard QR layout --- */
.soundboard-link {
  text-align: center;
  background: #111;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  margin: 20px auto 40px auto; /* ⬅ added extra bottom margin */
  max-width: 500px;
}

.soundboard-link h2 {
  margin-top: 0;
  color: #6ef598;
}

.soundboard-url {
  display: inline-block;
  margin: 8px 0 10px 0;
  color: #6ef598;
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}

.soundboard-link .qr-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px auto 40px auto; /* ⬅ spacing below QR */
}

.soundboard-link .qr-box canvas {
  border-radius: 6px;
  width: 160px !important;  /* a little larger for mobile visibility */
  height: 160px !important;
}