:root {
}

/* page */

html {
	height: 100vh;
}

body {
	--hue: 34; /* 34 = Surge orange */
	--scrollbar-size: 14px; /* 6px narrow; 24px standard */
}

body {
	background-color: hsl(var(--hue), 20%, 0%);
	color: hsl(120, 20%, 90%);
	padding: 0;
	margin: 0;
	height: 100vh;
	overflow: overlay;
	font-family: 'Segoe UI', 'sans', 'Arial';
}

body::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 var(--scrollbar-size) rgba(0, 0, 0, 0.3);
    background-color: transparent;
}

body::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
    background-color: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: hsla(var(--hue), 0%, 0%, 0.2);
}

/* Text content */

.textSection {
	margin-bottom: 0.2rem;
	padding: 0.6rem 1rem 0.3rem 1rem;
	background-color: hsl(var(--hue), 30%, 10%);
}

.title {
	margin-top: -0.2rem;
	font-size: 1.3rem;
	font-weight: 600;
	color: hsl(var(--hue), 90%, 50%);
}

.icon-logo {
	position: relative;
	top: 0.35rem;
	height: 1.5rem;
}
.icon-logo > path {
	fill: hsl(var(--hue), 90%, 50%);
}

a, a:visited {
	color: hsl(var(--hue), 20%, 80%);
}

p {
	margin: 0.3em 0 0.7em 0;
	padding: 0;
}

.subtle {
	opacity: 0.6;
}

.right {
	text-align: right;
}

h1 {
	font-size: 1.3rem;
	color: hsl(var(--hue), 50%, 70%);
}
h1:first-child, h2:first-child {
	margin-top: 0;
}

h2 {
	font-size: 1.2rem;
	color: hsl(var(--hue), 50%, 70%);
}

table {
}
td {
	padding: 0.6rem 1.0rem;
	background-color: hsl(var(--hue), 50%, 70%, 0.04);
	vertical-align: top;
}
td.head {
	font-weight: 700;
	white-space: nowrap;
}
td p:last-child {
	margin-bottom: 0;
}

table.property-form td {
	vertical-align: baseline;
}

hr {
	border: 1px solid hsl(var(--hue), 0%, 0%);
}

/* generic */
.hidden {
	display: none;
}
.warn {
	background-color: hsl(0, 50%, 10%);
	color: hsl(0, 50%, 70%);
	padding: 0.4rem 1rem;
	border: 1px solid hsl(0, 50%, 20%);
	border-radius: 0.5rem;
}

.prevent-select {
  -webkit-user-select: none;
  user-select: none;
}

/* Toolbar */
.toolbar {
	display: flex;
	align-items: center;
	background-color: hsl(var(--hue), 20%, 0%);
	min-height: 2rem;
	padding: 0.4rem 0.9rem;
}
.toolbar .item {
	display: flex;
	align-items: center;
}
.toolbar .item:not(:first-child) {
	margin-left: 1.1rem;
}
.toolbar select, .toolbar button {
	margin-right: 0.7rem;
}

.toolbar label {
	padding-right: 0.4rem;
}

.icon {
	position: relative;
	top: 0.0rem;
	width: 2.3rem;
	height: 2.3rem;
	margin-right: 0.4rem;
	padding: 0.2rem 0.2rem 0.0rem 0.2rem;
	border: 2px solid hsla(0, 0%, 0%, 1);
	border-radius: 0.2rem;
	background-color: hsla(240, 0%, 10%, 0.8);
	font-size: 1.1rem;
	color: white;
	cursor: pointer;
}

.icon.large {
	width: 5rem;
	height: 5rem;
}

.iconPath.active {
	background-color: hsl(var(--hue), 30%, 40%);
	fill: hsl(var(--hue), 90%, 50%);
}

.iconPath {
	fill: hsl(var(--hue), 20%, 70%);
}

button {
	padding: 0.3rem 0.8rem 0.4rem 0.8rem;
	color: white;
	font-family: 'Segoe UI';
	font-size: 1.1rem;
	border-radius: 0.3rem;
	border: 2px solid hsla(var(--hue), 70%, 70%, 0);
	background-color: hsl(var(--hue), 20%, 25%);
	cursor: pointer;
}
button:hover {
	background-color: hsl(var(--hue), 20%, 30%);
	border: 2px solid hsl(var(--hue), 70%, 70%);
	outline-offset: -2px;
}
button.active {
	background-color: hsl(var(--hue), 20%, 20%);
}

.toolbar button {
	font-size: 0.9rem;
	background-color: hsla(240, 0%, 10%, 0.8);
	color: hsl(var(--hue), 20%, 80%);
}

.button-stack {
	display: flex;
	flex-direction: row;
}

/* Help (and perhaps later UI )*/
.help.cols {
	display: flex;
	flex-direction: row;
}
.help.col {
	width: 50%;
	padding: 0.2rem 1rem 0.6rem 1rem;
}

/* Modal */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: hsla(var(--hue), 15%, 10%, 0.8);
	xbackdrop-filter: blur(2px); /* not using, because you might want to see */
}

.modal-content {
  margin: auto auto 0 auto; /* 15% from the top and centered */
  border: 2px solid hsl(var(--hue), 20%, 0%);
	box-shadow: 0 5px 20px 0px hsla(var(--hue), 0%, 0%, 0.4);
	background-color: hsl(var(--hue), 15%, 10%);
  max-width: 37rem; /* Could be more or less, depending on screen size */
}

.modal-content.config-edit {
	xmax-width: 60rem;
}

.modal-row {
	padding: 0.6rem 2rem 0.8rem 2rem;
}
.modal-row-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 2rem;
	padding: 1rem 2rem;
}

.modal-row.do-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 2rem;
}

.modal-row-header h2 {
	margin-top: 0.8rem;
}

.modal-row textarea {
	background: black;
	color: white;
	width: 100%;
	min-height: 12rem;
	height: 70%;
	border: 1px solid hsl(var(--hue), 15%, 40%);
	border-radius: 0.3rem;
}

.button-choices button {
	margin-right: 1rem;
}

.tags {
	display: inline;
}
.tag {
	display: inline;
	padding: 0.1rem 0.4rem;
	border-radius: 0.15rem;
	background-color: hsl(240, 0%, 60%);
	font-weight: 700;
	font-size: 0.8rem;
}
.tag-WIP {
	background-color: hsl(240, 30%, 60%);
	color: black;
}

/* Inputs */

select, input {
	background: hsl(var(--hue), 0%, 10%);
	color: hsl(var(--hue), 20%, 80%);
	padding: 0.4rem 0.4rem;
	border: 1px solid hsl(var(--hue), 20%, 30%);
	border-radius: 0.25rem;
}
select {
	cursor: pointer;
}

/* Surface */
.rows {
	display: flex;
	flex-direction: column;
}
.rows.center {
	align-items: center;
}
.rows.center button {
	margin-bottom: 0.5rem;
}

.columns {
	display: flex;
	flex-direction: row;
}

.column {
	background-color: hsl(var(--hue), 20%, 10%);
}

.surface.editMode .overlay {
	display: flex;
	position: absolute;
	margin: 0;
	z-index: 5;
}

.surface.editMode .column {
	min-height: 11rem;
}

.overlay-content {
	padding: 1.2rem 1.5rem 1.1rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: hsla(var(--hue), 25%, 0%, 0.9);
	box-shadow: 0 5px 20px 0px hsla(var(--hue), 0%, 0%, 0.4);
}

.overlay-content .info {
	padding: 0rem 1.5rem 0rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	xbackground-color: hsl(var(--hue), 25%, 0%);
}

.overlay-info {
	margin-left: 1rem;
}

.overlay-content h1 {
	margin: 0rem 0rem 0.5rem 1rem;
}

.overlay-content table {
	border-spacing: 0px 2px;
}

.overlay-content td {
	padding: 0.2rem 1.0rem;
	background-color: hsl(var(--hue), 50%, 70%, 0.15);
}

/* surface edit mode */
.column-separator, .row-separator, .overlay {
	display: none;
}

.surface.editMode .row-separator,
.surface.editMode .column-separator {
	display: flex;
	align-items: center;
	border-radius: 8px;
	background-color: hsl(var(--hue), 25%, 10%);
	border: 1px dashed hsl(var(--hue), 25%, 50%);
	xborder-right: none;
}

.surface.editMode .column-separator {
	flex-direction: column;
	item-spacing:
	margin: 4px;
	width: 48px; /* ref. [1] in code */
}
.surface.editMode .column-separator button {
	margin: 2px 0 0 0;
}
.surface.editMode .column-separator:first-child {
	margin-left: 0px;
}
.surface.editMode .column-separator:last-child {
	margin-right: 0px;
}

.surface.editMode .row-separator {
	justify-content: space-between;
	margin: 8px 0px 0px 0px;
	padding: 0 3.5rem;
	height: 40px; /* ref. [1] in code */
}
.surface.editMode .row-separator:first-child {
	margin-top: 0px;
}
.surface.editMode .row-separator:last-child {
	margin-bottom: 0px;
}
.surface.editMode .row-separator:not(last-child) {
	border-bottom: none;
	border-radius: 8px 8px 0px 0px;
}

.surface.editMode .component {
	opacity: 0.25;
}

/* Component */
.component {

}

.component-displayName {
	font-size: 0.8rem;
	fill: hsla(var(--hue), 100%, 60%, 0.6);
}
.component-value {
	font-size: 0.8rem;
	fill: hsl(var(--hue), 100%, 60%);
}
.parameter-displayName {
	font-size: 0.8rem;
	fill: hsl(var(--hue), 50%, 80%);
}
.parameter-value {
	font-size: 0.8rem;
	fill: hsl(var(--hue), 100%, 60%);
}

/* Component: Keyboard */
.key-inactive {
	fill: hsl(0,0%,60%);
	stroke-width: 1;
	stroke: hsla(0,0%,0%,0.2)
}

.key-black {
	fill: hsl(0,0%,20%);
}

.key-white {
	fill: hsl(0,0%,90%);
}

.key-mark-center {
	fill: hsl(var(--hue), 40%, 60%);
}

.keyCCMark {
	stroke-width: 1;
	stroke: hsla(var(--hue), 60%, 50%, 0.6);
}
.keyCCMarkW {
	stroke-width: 2;
	stroke: hsla(var(--hue), 50%, 6%, 0.2);
}
.keyCC {
	fill: hsla(var(--hue), 100%, 60%, 0.6);
}

/* Component: Sliders (cc) */
.cc-slider-back {
	stroke: hsla(var(--hue), 50%, 10%, 0.2);
	fill: hsl(var(--hue), 20%, 10%);
}
.cc-slider-groove {
	stroke: hsla(var(--hue), 50%, 50%, 0.2);
	fill: black;
	pointer-events: none;
}
.cc-mark {
	stroke: hsla(var(--hue), 50%, 60%, 0.2);
	stroke-width: 1;
	pointer-events: none;
}
.cc-mark-value {
	fill: hsl(var(--hue), 80%, 40%);
	stroke: hsla(var(--hue), 70%, 70%, 1);
	stroke-width: 1;
	pointer-events: none;
}
.cc-mark-middle {
	stroke: hsla(var(--hue), 50%, 60%, 0.5);
	stroke-width: 1;
	stroke-dasharray: 5;
	pointer-events: none;
}
.no-pointer-events {
	pointer-events: none;
}
