/* ?? FORCE FLEXIBLE CONTAINER TO PREVENT ALL VERTICAL SPILLING */
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Stops any rogue scrolling dead in its tracks */
  background: #111;
  color: #fff;
  font-family: -apple-system, Sans-Serif;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

input, button {
  width: 100%;
  padding: 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  border: none;
  margin-top: 10px;
  font-weight: bold;
  box-sizing: border-box;
}

input {
  background: #fff;
  color: #000;
  text-align: center;
}

/* ?? DYNAMICALLY SIZED BUZZER BUTTON TO FILL REMAINING SPACE CLEANLY */
.btn-buzz {
  flex: 1; /* Automatically shrinks if a wager box appears above it! */
  min-height: 40vh; /* Keeps it large enough to tap easily */
  margin-top: 15px;
  font-size: 3rem;
  background: #444;
  color: #888;
  pointer-events: none;
  text-transform: uppercase;
  border: 4px solid #333;
}

.btn-buzz.active {
  background: #dc3545;
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  border-color: #ffc107;
  box-shadow: 0 0 20px #dc3545;
}

.btn-buzz.win {
  background: #28a745;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 25px #28a745;
}

.status-text {
  font-size: 1.2rem;
  color: #aaa;
  margin: 10px 0 5px 0;
  font-style: italic;
}

.logout-link {
  display: inline-block;
  color: #007bff;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1rem;
}

/* ?? FINAL JEOPARDY PANEL LAYOUT STYLES */
.wager-box {
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #ff9900;
  background: #111;
  border-radius: 8px;
  text-align: center;
}

.wager-box h2 {
  color: #ff9900;
  margin-top: 0;
}

.wager-box p {
  font-size: 1.1rem;
  color: #fff;
}

#player-balance-display {
  font-weight: bold;
  color: #28a745;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  color: #bbb;
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group input {
  font-size: 1.5rem;
  width: 80%;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  border: 2px solid #ff9900;
  background: #000;
  color: #fff;
}

.input-group.font-large input {
  font-size: 1.3rem;
  text-transform: uppercase;
}

.btn-lock {
  font-size: 1.3rem;
  padding: 10px 30px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  width: 84%;
  cursor: pointer;
}

/* ?? HIDE SPIN BUTTON ARROWS FROM COMPATIBLE NUMBER INPUTS */
.wager-box input[type=number]::-webkit-inner-spin-button, 
.wager-box input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.wager-box input[type=number] { 
  -moz-appearance: textfield; 
}

@keyframes flash {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
