body {
	overflow-x: hidden;
}

.main-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.jod-overlay-container {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
	pointer-events: none;
}

.jod-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ffffff;
	opacity: 0;
	pointer-events: none;
}

.jod-overlay.overlay-visible {
	pointer-events: all;
	background-color: #0a000a;
	opacity: 0.8;
}

.save-form {
	display: flex;
	gap: 10px;
}

.select-box {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 2px;
}

.text-input { 
	background-color: #02081f;
  color: #fff;
  text-shadow: 0 0 5px #cfeaff;
  font-size: medium;
	border: 1px solid #2f4c6f;
  border-radius: 4px;
}

.name-editor {
	position: absolute;
	margin: -21px 0 0 -100px;
	height: 50px;
}

.joddaw-body, .synth-toolbar {
	display: flex;
}
.main-panel {
	display: flex;
	flex-direction: column;
}

.fx-container, .global-fx-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 20px;
	background-color: #010a1d;
}

.fx-param {
	display: grid;
	grid-template-columns: 113px 1fr;
	gap: 5px;
	align-items: center;
	margin: 5px 0;
}

.synth-toolbar {
	gap: 5px;
}

.oscillators-container {
	flex-grow: 1;
	margin: 20px;
	background-color: #010a1d;
}

.oscillator-container {
	padding: 20px;
	background-color: #04152e;
}

.controls-container {
	display: grid;
	grid-template-columns: 300px 300px 300px;
}
.control {
	margin: 10px;
}

.envelope {
	position: relative;
	display: block;
	width: 800px;
	height: 100px;
	margin: 20px 0;
	background-color: #010a1d;
	border: 1px solid #020307;
}
.envelope-node {
	position: absolute;
	width: 12px;
	height: 12px;
	background-color: #2977af;
	border-radius: 20px;
	border: 2px solid #fff;
}
.envelope-canvas {
	width: 100%;
	height: 100%;
}
.tooltip {
	position: absolute;
	width: 110px;
	height: 40px;
	background-color: #35a;
	z-index: 3;
}

.help-icon {
	width: 26px;
	height: 26px;
	border: 2px solid #2977af;
}

.help-box {
	position: absolute;
	left: calc(50vw - 300px);
	width: 600px;
	max-height: 85vh;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 1px 1px 12px 2px #000;
	overflow-y: auto;
	background-color: #04152e;
	color: #cfeaff;
	line-height: 1.6em;
	z-index: 999;
	pointer-events: all;
}

.help-box .key {
	padding: 2px 5px;
	background-color: #00278f;
	color: #dfdfdf;
	border-radius: 5px;
	border: 1px solid #dfdfdf;
	font-size: 0.75rem;
}

.help-box .sandwich-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-button);
	color: var(--color-contrast);
}

.help-box .sandwich-btn.enabled {
	background-color: var(--color-enabled);
	color: var(--color-enabled-contrast);
}

.help-box .help-header {
	cursor: pointer;
}

.help-box .help-header::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 10px;
	margin-right: 20px;
	background-color: var(--color-button);
	transition: all 80ms ease-in-out;
}

.help-box .help-header.expanded::before {
	content: '';
	height: 20px;
	background-color: var(--color-active);
}

.help-box .help-header:hover::before {
	content: '';
	display: inline-block;
	height: 15px;
}

.help-box-section {
	overflow: hidden;
	height: 0;
	margin-left: 40px;
	transition: height 80ms ease-in-out;
}
.help-box-section.expanded {
	height: auto;
	margin-bottom: 3em;
}

.clickable {
	background-color: var(--color-button);
}

.circle {
	display: flex;
	border-radius: 50%;
	justify-content: center;
	align-items: center;
}

.small {
	width: 20px;
	height: 20px;
}

.drag-handle {
	width: 20px;
	height: 20px;
	background-color: var(--color-button);
}

.detune {
	width: 40px;
}
.phase {
	width: 80px;
}

.hidden {
	visibility: hidden;
}
.invisible {
	display: none;
}

button.active {
	background-color: var(--color-active);
	color: var(--color-active-contrast);
}

.epilepsy-warning {
	display: inline-block;
	padding: 6.9px;
	font-weight: 666;
	animation: epilepsy 420ms ease-in-out 0s infinite;
}

@media (prefers-reduced-motion) {
	.epilepsy-warning {
		animation: unset;
	}
}


@keyframes epilepsy {
	from {
		translate: 0 0;
		color: #fff;
	}
	20% {
		translate: -0.1em -0.2em;
		color: #f11;
	}
	40% {
		translate: 0.2em -0.02em;
		color: #ff1;
	}
	60% {
		translate: -0.2em -0.02em;
		color: #1ff;
	}
	80% {
		translate: 0.1em -0.2em;
		color: #11f;
	}
	to {
		translate: 0 0;
		color: #fff;
	}
}