/* ------------------------------
   GLOBAL RESET + TYPOGRAPHY
--------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: #ffffff;
  color: #111111;
  padding: 40px 20px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ------------------------------
   HEADER
--------------------------------*/
header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
}

/* ------------------------------
   MAIN LAYOUT
--------------------------------*/
main {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ------------------------------
   HINTS
--------------------------------*/
/* old hint
.hint {
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
  min-height: 24px;
  font-size: 16px;
  opacity: 0.6;
}
*/
#hints {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  row-gap: 20px; /* super clean */
}

.hint {
  display: grid;
  grid-template-columns: 1fr 300px; /* left grows, right stays tight */
  align-items: left;
  column-gap: 80px; /* adjust to taste */
}
/* user guesses */
.hint::after {
  content: attr(data-guess);
  opacity: 0.7;
  font-size: 0.9rem;
  font-style: italic;
  align-items: right;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 70%, transparent);
  min-width: 240px; /* keeps a stable right column */
  width: 100%;
}

/* When a hint becomes active, JS will add this class */
.hint.active {
  opacity: 1;
  font-weight: 500;
}

.hint-text {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  flex-shrink: 0; /* prevents wrapping */
  min-width: 0;
  white-space: nowrap; /* prevents wrapping */
}

.subgenres {
  display: block;
  margin-top: 4px;
  font-size: 0.9em;
  opacity: 0.8;
  font-style: italic;
}

#hint5 {
  display: grid;
  grid-template-columns: auto 300px; /* left = canvas, right = guess */
  align-items: center;
  column-gap: 120px; /* match your spacing */
}

#hint5 canvas {
  display: block;
}

#hint5::after {
  grid-column: 2;
  justify-self: end;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 70%, transparent);
  width: 100%;
}


/* ------------------------------
   BUTTONS
--------------------------------*/
button {
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  background: #111111;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.85;
}

button:disabled {
  background: #cccccc;
  cursor: default;
}

/* Secondary button (Next Hint) */
button.secondary {
  background: #f2f2f2;
  color: #111111;
}

/* ------------------------------
   GUESS INPUT + DROPDOWN
--------------------------------*/
#guessSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#guessInput {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #dddddd;
  border-radius: 4px;
}

/* Dropdown container */
#dropdown {
  border: 1px solid #dddddd;
  border-radius: 4px;
  background: white;
  display: none;
  flex-direction: column;
  max-height: 180px;
  overflow-y: auto;
}

/* Dropdown item */
.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* ------------------------------
   FINAL REVEAL
--------------------------------*/
#reveal {
  text-align: center;
  margin-top: 20px;
}

#finalCover {
  width: 200px;
  margin: 20px 0;
  border-radius: 4px;
}
