/* ============================= */
/* BingoBongo Start Menu CSS     */
/* ============================= */


/* ============================= */
/* 1. BODY & GLOBAL STYLING      */
/* ============================= */

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  padding-top: max(env(safe-area-inset-top), 20px);
  background-color: #121212;
  color: #eee;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;

}

/* FIX 3: Removed !important from every rule — normal specificity handles these fine.
   FIX 3: Removed outline:none — kills keyboard accessibility globally.
   FIX 4: Removed .card td, .card-preview td, #cardList, .preview-btn,
           .quick-pick-btn, #confirmSelectionBtn rules — those are playgame.html
           elements and have no effect on this page. They belong in playercard.css. */
body, button, div, span, label, table, tr, td, ul, li {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Re-enable selection for input fields */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}


/* ============================= */
/* 2. TITLE                      */
/* ============================= */

h1 {
  font-size: 3rem;
  color: red;
  margin: 0 0 16px 0;
  animation: glow 1.5s ease-in-out 3;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 4px #ff4d4d; }
  50%       { text-shadow: 0 0 12px #ff9999; }
}


/* ============================= */
/* 3. MENU BUTTONS               */
/* ============================= */

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}

.menu-buttons button {
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  min-width: 180px;
  background-color: #444;
  color: #eee;
  border: 1px solid #555;
  transition: background 0.3s;
}

.menu-buttons button:hover {
  background-color: #555;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FIX 3: Removed !important. Guard with :not(:disabled) so disabled buttons
   don't flash limegreen on tap. */
/* ============================= */
/* 4. HOW IT WORKS               */
/* ============================= */

.how-it-works {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px auto;
  text-align: left;
}

.how-it-works-btn {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #ccc;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: unset;
  transition: background 0.2s;
}

.how-it-works-btn:hover {
  background: #333;
}

.how-it-works-btn[aria-expanded="true"] .how-arrow {
  transform: rotate(180deg);
  display: inline-block;
}

.how-arrow {
  font-size: 11px;
  color: #666;
  transition: transform 0.2s;
  display: inline-block;
}

.how-it-works-body {
  background: #1e1e1e;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.55;
}

.how-it-works-body strong {
  color: #eee;
}

.how-it-works-body p {
  margin: 0;
}


/* ============================= */
/* 5. MENU ITEMS WITH SUBTITLES  */
/* ============================= */

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.btn-subtitle {
  font-size: 12px;
  color: #666;
}

.game-in-progress {
  font-size: 11px;
  color: #5cb85c;
  font-weight: 500;
}



