/* ------------------ Body & Layout ------------------ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #1b1b2f;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* Main game container */
.game-container {
  flex: 1; /* grow to fill remaining space */
  background: #222;
  padding: 20px 30px;
  margin: 40px auto 20px auto;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* ------------------ Headings ------------------ */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* ------------------ Buttons ------------------ */
button {
  background: #3a3a75;
  border: none;
  padding: 12px 20px;
  margin: 8px;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background: #5c5ca8;
}

button:disabled {
  background: #666;
  cursor: not-allowed;
}

/* ------------------ Clues Section ------------------ */
#foundClues {
  margin-top: 10px;
  padding: 10px;
  background: #2c2c3c;
  border-radius: 10px;
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
}

/* ------------------ Score Panel ------------------ */
#scorePanel {
  margin-top: 20px;
  background: #2a2a50;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
}

#scoreBreakdown {
  margin-top: 10px;
  text-align: left;
}

/* ------------------ Next Case Button ------------------ */
#nextCaseBtn {
  display: block;
  margin: 15px auto 0 auto;
}

/* ------------------ Hidden Elements ------------------ */
.hidden {
  display: none;
}

/* ------------------ Footer ------------------ */
footer {
  text-align: center;
  padding: 15px;
  color: #aaa;
  background: #1a1a3b;
  border-radius: 10px 10px 0 0;
  margin-top: auto; /* sticks to bottom */
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
}

/* ------------------ Scrollbar Styling for clues ------------------ */
#foundClues::-webkit-scrollbar {
  width: 8px;
}

#foundClues::-webkit-scrollbar-track {
  background: #2c2c3c;
  border-radius: 10px;
}

#foundClues::-webkit-scrollbar-thumb {
  background: #5555aa;
  border-radius: 10px;
}

#foundClues::-webkit-scrollbar-thumb:hover {
  background: #8888ff;
}
