/* =============================
   PAGE RESET
============================= */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* =============================
   MAIN LAYOUT
============================= */

.main {
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: calc(100vh - var(--header-height));
}


/* =============================
   HEADINGS
============================= */

h1 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.8rem;
  text-align: center;
}

h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}


/* =============================
   ALPHABET CONTROL
============================= */

.controls-alphabet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.controls-alphabet select {
  font-size: 0.9rem;
  padding: 4px 6px;
}


/* =============================
   PROMPT
============================= */

#controls-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.char-box {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-color);
  border-radius: 6px;

  font-size: 1.8rem;
  font-weight: 600;
}


/* =============================
   ACTION BUTTONS
============================= */

#controls-buttons {
  display: flex;
  gap: 12px;
}

#controls-buttons button {
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}


/* =============================
   CANVAS
============================= */

#drawCanvas {
  background: var(--bg-color);   /* ← matches light/dark mode */
  border: 1px solid var(--border-color);
  touch-action: none;
}


/* =============================
   CANVAS CONTROLS
============================= */

#controls-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controls-row input {
  font-size: 0.9rem;
  padding: 4px 6px;
}


/* =============================
   EXPORT CONTROLS
============================= */

#export-controls {
  margin-top: 12px;
}

#export-controls button {
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

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