:root {
  --chord-font: Kalam, "Patrick Hand", "Comic Sans MS", cursive;
}

body {
  margin: 0;
  padding: 24px;
  background: #f5f5f5;
  color: #111;
  font-family: Arial, sans-serif;
}

.app {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
}

h1 {
  margin: 0 0 16px;
  font-size: 24px;
}

textarea {
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
}

button {
  margin-top: 12px;
  padding: 9px 16px;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid #aaa;
  background: white;
  border-radius: 3px;
}

button:hover {
  background: #f0f0f0;
}

.error {
  margin-top: 12px;
  color: #b00020;
  font-weight: bold;
}

.score-output {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #ddd;
  overflow-x: auto;
  background: white;
}

.mini-score-wrap {
  width: 100%;
  margin-bottom: var(--score-pace-down, 0px);
  overflow-x: auto;
  overflow-y: visible;
}

.mini-score-svg {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  background: white;
}

.score-chord-html,
.score-chord-html * {
  font-family: var(--chord-font);
  font-weight: 600;
  line-height: 1;
}

.score-chord-html {
  font-family: var(--chord-font, Kalam, sans-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.score-chord-html .root {
  font-size: 28px;
  font-weight: 600;
}

.score-chord-html .qualifier {
  font-size: 22px;
  font-weight: 600;
}

.score-chord-html .superscript {
  font-size: 0.85em;
  vertical-align: super;
}

.score-chord-html .bass {
  font-size: 23px;
}

.score-chord-html .flat,
.score-chord-html .sharp {
  font-size: 1em;
}

.score-chord-html .raised-symbol {
  font-size: 1.05em;
}

.score-chord-html .slash-chord {
  display: inline-flex;
  align-items: flex-start;
}

.score-chord-html .bass {
  font-size: 17px;
  transform: translateY(4px);
}


.score-chord-html {
  font-family: var(--chord-font, Kalam, sans-serif);
}

.score-chord-html .petaluma-symbol {
  font-family: "Petaluma", "Bravura", serif;
}