@charset "utf-8";
/* This stylesheet is based on the CSS Preset at https://codepen.io/bofrede/pen/qBaroyQ
and divided into sections as defined by SMACSS. http://smacss.com/ */

/** || Load WebFonts **/

@font-face {
  font-family: 'Segment7Standard';
  src: local('Segment7Standard'), url('/fonts/Segment7Standard.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

#lcd {
  font-family: 'Segment7Standard', Monospaced;
  font-size: 200%;
  color: #DD0000;
  position: relative;
  width: 3ch;
  text-align: right;
  padding: 0.2em 0.2em 0 0.2em;
}
#lcd::before {
  position: absolute;
  left: 0;
  top: 0;
  content: '888';
  z-index: -1;
  color: #300;
  background-color: #111;
  padding: 0.2em 0.2em 0 0.2em;
  border-radius: 0.2em;
}

:root {
  --base-color: #848593;
}

/** || Base Rules **/
html {
  line-height: 1.15;
  scroll-behavior: smooth;
}

* {
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 10.5pt;
  margin: 0;
}

td, th, input, select, button {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

form {
  margin: 0;
}

datalist,
template {
  display: none;
}

summary {
  cursor: pointer;
  text-decoration: dotted underline;
}

h1 {
  font-size: 140%;
  text-wrap: balance;
}

h2 {
  font-size: 120%;
}

h3 {
  font-size: 100%;
}

p {
  margin: 0 0 1em 0;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
}

ol {
  margin: 1em 0; padding: 0 0 0 2em
}

ul {
  margin: 1em 0; padding: 0 0 0 1.2em
}
ol ol,
ol ul,
ul ol,
ul ul {
  margin: 0;
}

li {
  margin: 0.2em 0
}

hr {
  height: 1px;
  color: #ccc;
  background-color: #ccc;
  border: 0;
  margin: 2em 0;
}

a:link,
a:visited,
a:active {
  color: currentColor;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  font-style: italic;
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

a img {
  border: 0;
}

button,
[role="button"] {
  position: relative;
  color: #333;
  background-color: silver;
  display: inline-block;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 2px solid #333;
  border-radius: 4px;
  text-decoration: none;
  -webkit-box-shadow: 3px 3px 4px rgba(0,0,0,.175);
  box-shadow: 3px 3px 4px rgba(0,0,0,.175);
  margin: 0;
  line-height: 1;
}
button:empty,
[role="button"]:empty {
  height: 0.5em;
}

button:hover,
[role="button"]:hover {
}

button:active,
[role="button"]:active {
  border-width: 3px 2px 1px 2px;
}

input:not([type]),
input[type="text"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="password"],
select {
  background-color: #fff;
  border:1px solid #A0A0A0;
  border-radius: 3px;
  padding: 3px;
  margin: 2px 0;
}

button:disabled,
input:disabled,
select:disabled {
  background-color: #efefef;
  border: none;
  cursor: not-allowed;
}

select {
  cursor: pointer;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spinner-button,
input[type="number"]::-webkit-inner-spinner-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="checkbox"] {
  display: none;
}

input[type="radio"] {
  margin: 0 2px 3px 0;
  vertical-align: middle;
}

progress {
  width: 200px;
}

output {
}

abbr {
  text-decoration-style: dotted;
}

/** || Layout Rules **/

#container {
  width: fit-content;
  margin: 3em auto 0;
}

#synth,
#super_powers > div {
  display: flex;
  justify-content: center;
  padding: 0.5em 1em;
}

main h2,
aside h2 {
  text-align: center;
  margin-top: 0;
}

.switch {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  align-self: center;
  gap: 1em 0.5em;
}
.switch label {
  text-align: right;
  line-height: 90%;
}

section > div > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

section > div > div > div:has(datalist) {
  display: flex;
  gap: 0.3em;
}

#logoPanel {
  display: flex;
  justify-content: flex-end;
  gap: 0 1em;
  padding: 1em;
}
#power_led {
  margin: 0 auto 0 0;
}
#model {
  align-self: flex-end;
  font-size: 11pt;
}

#super_powers:not([open]) {
  padding: 0.2em 0.5em;
}
#super_powers summary {
  padding: 0.3em 1em;
}

#midi {
  margin-right: auto;
}

footer {
  padding: 1em 0;
}
footer > div {
  display: flex;
  justify-content: space-between;
}
footer > div > div:last-child {
  text-align: right;
}

/** || Module Rules **/

section {
  flex-shrink: 1;
  flex-grow: 0;
  padding: 1em;
}

section > div {
  display: grid;
  grid-template-rows: auto 1fr;
  grid-auto-flow: column;
  gap: 1em;
  justify-items: center;
}

.stacked {
  grid-auto-flow: row;
}

section#env > div {
  grid-template-columns: repeat(5, auto);
}

main input[type="range"],
aside input[type="range"] {
  direction: rtl;
  writing-mode: vertical-lr;
}

datalist {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

/** || State Rules **/

.led {
  display: inline-block;
  width: 15px;
  height: 6px;
  background-color: #500000;
}
.connected #power_led,
.led:has(~ input[type="checkbox"]:checked) {
  background-color: #e00;
  box-shadow: 0 0 5px 1px #e00;
}

/** || Theme Rules **/

body {
  background-color: #333;
  color: #fff;
}

select {
  color: #000;
}

main,
aside {
  position: relative;
}

main::after,
aside::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  filter: contrast(40%) brightness(80%);
  background: url(images/noise_bg.svg), var(--base-color);
}

#synth section + section,
#super_powers section + section {
  border-left: 1px solid #333;
}

#container > div {
  border: 5px outset;
}
