/* Game Container Styling */
.form_container {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 1rem;
}

.game-header h2 {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.2rem;
}

.game-instructions {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #6c757d;
}

/* Word Board (Wheel of Fortune Style) */
#current_word {
  display: flex !important;
  flex-direction: row !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 1rem 0;
  width: 100%;
  font-weight: bold;
  letter-spacing: 5px;
  font-size: 1.5rem;
}

#current_word li {
  width: 45px;
  height: 60px;
  background-color: var(--bg-body);
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  box-shadow: 2px 2px 0px rgba(44, 62, 80, 0.2);
  text-transform: uppercase;
}
.word-display-field {
  display: block !important; /* Break out of the 2-column grid */
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #f1f3f5;
}

/* Form Layout */
.formField {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.formField:last-of-type {
  border-bottom: none;
}

.formField label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
}

/* Inputs & Buttons */
#guess_letter {
  width: 50px;
  padding: 10px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  transition: border-color 0.2s;
}

#guess_letter:focus {
  border-color: var(--accent-primary);
  outline: none;
}

#guess_count {
  width: 60px;
  background: #e9ecef;
  border: 1px solid #ced4da;
  padding: 5px;
  text-align: center;
  font-family: monospace;
  font-weight: bold;
  border-radius: 4px;
}

.submitField {
  padding: 1.5rem 0;
  text-align: center;
}

#guess_button {
  background-color: var(--bg-header);
  color: #ffffff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#guess_button:hover {
  background-color: var(--bg-footer);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Guess History Pills */
#guesses {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

#guesses li {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  border: 1px solid #bbdefb;
}

/* Notifications */
#notifications {
  text-align: center;
  font-weight: 600;
  min-height: 1.5rem;
  margin-bottom: 1rem;
}

.success-msg {
  color: #2e7d32;
}
.error-msg {
  color: #c62828;
}
