/* Main */

:root {
  --fg: white;
  --bg: #002451;
  --accent: #2b8aff;
  --accent-hover: #0060d5;
}

/* Layout */

html {
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  font-family: 'Inter', sans-serif;
  /*font-family: sans-serif;*/
  scroll-behavior: smooth;
  /*padding: 1rem;*/
}

body {
  width: 100%;
  margin: 0;

  /*padding: 1rem;*/
  /*display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;*/
}

.flow {
  max-width: 72ch;
  margin: auto;
  padding: 0 1rem;
}

section, header, footer {
  padding: 0;
}

footer {
  margin-top: 4rem;
  border-top: 1px solid var(--accent);
}

/*h1, h2, h3, h4, h5, h6, p, ol, li, dl {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}*/

/* Text */

h1, h2, h3 {
  border-bottom: 1px solid var(--accent);
}
h1 {
  margin-bottom: 1.5em;
}
h2, h3, h4, h5, h6 {
  padding-top: 1.5em;
}
dt {
  font-weight: bold;
}
dd {
  margin-bottom: 1em;
}
a, a:visited {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Controls */

button {
  padding: 12px 24px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background-color: var(--accent-hover);
}
.button-group {
  display: block;
  margin: 2em auto;
  text-align: center;
}

/* Images */

svg {
  display: block;
  box-sizing: border-box;
  padding: 10px 0;
  width: 100%;
  height: auto;
}

svg text {
  pointer-events: none;
  user-select: none;
}

img, object {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0px;
}

.video-responsive {
  width: 100%;
  aspect-ratio: 16 / 9; /* Matches standard YouTube widescreen */
}

.bandcamp {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Tables */

.table-container {
  max-width: 100%;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  margin: auto;
}
th, td {
  padding: 0.4em 0.6em;
}
th + th,
td + td {
  border-left: 1px solid var(--accent);
}
thead tr {
  border-bottom: 2px solid var(--accent);
}

/* playPitch */
.playPitch_active {
  background-color: var(--accent-hover);
  color: var(--fg) !important;
  fill: var(--accent) !important;
}
.playPitch {
  position: relative;
  text-decoration: underline;
  text-decoration-style: dotted !important;
  /*cursor: pointer;*/
  /*display: inline-flex;
  align-items: center;*/
  /*gap: 8px;*/ /* Spaces the text from the icon */
}
/*.playPitch::after {
  content: " \23F5";
}*/




/* From scale and chord chart explorer */

.controls {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  max-width: 100%;
}
.controls label {
  font-weight: bold;
}
.controls select,
.controls input[type="text"],
.controls input[type="number"] {
  padding: 8px;
  width: 500px;
  max-width: 100%;
  font-size: 1em;
  border: 1px solid var(--accent);
  color: var(--accent);
  background-color: var(--bg);
  border-radius: 4px;
  box-sizing: border-box;
}
.controls select {
  cursor: pointer;
}
.controls input[type="number"] {
  width: 4em;
}
.controls button {
  padding: 10px 15px;
  font-size: 1em;
  background-color: var(--accent);
  color: var(--fg);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.controls button:hover {
  background-color: #45a049;
}
.error-message {
  color: red;
  font-size: 0.9em;
  min-height: 1.2em;
}
#errorMessage {
  display: none;
}
#currentScaleDisplay {
  display: none;

}
#fretboardSVG {
  background-color: white;
}

#scalePresetSelector option,
#scalePresetSelector optgroup {
  display: none;
}

#scalePresetSelector option.shown, #scalePresetSelector.show-advanced option,
#scalePresetSelector optgroup.shown, #scalePresetSelector.show-advanced optgroup {
  display: unset;
}



/* From note-finder */

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.controls {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 100%;
}

.note-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.save-button {
  display: block;
  margin: 30px auto 20px;
}

label {
  font-weight: bold;
  font-size: 14px;
}

select {
  padding: 8px 12px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s;
}

select:focus {
  outline: none;
  border-color: var(--marker-color);
}

.fretboard-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  overflow-x: auto;
}

.fretboard-svg {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
  max-width: 100%;
}