body {
	margin: 0;
	font-family: Montserrat;
	font-size: 1em;
}

body.light {
	background-color: white;
	color: black;
}

body.dark {
	background-color: black;
	color: white;
}

body {
	display: flex;
	flex-direction: row;
	justify-content: start;
	overflow: hidden;
}


#screen {
	width: 100%;
	height: max-content;
}

#slider-container {
	position: fixed;
	bottom: 50px;
	right: 50px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all ease .5s;
}

body.curves-mode #slider-container {
	right: 65%;
}

#head {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;

	display: flex;
	align-items: center;
	justify-content: center;

	background-color: var(--grey0);
}

body.dark #head {
	background-color: var(--grey4);
}

.mode {
	cursor: pointer;
	transition: all ease .3s;
	border-radius: 5px;
	display: flex;
	margin: 0 30px 0 30px;
	width: 90px;
	height: 40px;
	justify-content: center;
	align-items: center;
}
.mode > span {
	padding: 10px;
	transition: all ease .3s;
}
.mode:hover {
	background-color: white;
}
body.dark .mode:hover {
	background-color: var(--grey3);
}
.mode:hover > span {
	scale: .9;
}

#select-rect {
	position: absolute;
	width: 90px;
	height: 40px;
	border: 1px solid black;
	border-radius: 5px;
}

#circles {
	position: fixed;
	max-width: var(--graph-size-padding);
	max-height: 600px;
	left: 0;
	top: 100px;

	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: start;

	overflow-x: hidden;
	background-color: var(--orange0);
	opacity: .5;

	transition: all ease .3s;
}

body.dark #circles {
	background-color: var(--orange3);
}

#circles:hover {
	opacity: 1;
	max-width: 400px;
}

body.curves-mode #circles {
	transform: translateX(-410px);
}

.harmonic {
	display: flex;
	justify-content: start;
	align-items: center;
	padding: 5px 10px 5px 10px;
	min-width: 100%;
	font-family: monospace;
}

.harmonic:hover {
	background-color: var(--orange1);
}
body.dark .harmonic:hover {
	background-color: var(--orange2);
}

.harmonic.pause {
	display: none;
}

.graph {
	width: var(--graph-size);
	height: var(--graph-size);
	overflow: hidden;
}

.graph .value {
	display: inline-block;
	width: 100%;
	max-height: 0px;
	text-overflow: visible;
	text-align: center;
	top: var(--graph-size);
	transition: all ease .3s;
}

.graph svg { background-color: white; }
/* body.dark .graph svg { background-color: rgb(180, 180, 180); } */

.harmonic:hover .value {
	transform: translateY(-30px);
}

.harmonic .infos {
	display: flex;
	flex-direction: column;
	margin: 0 10px 0 15px;
}

svg {
	overflow: visible;
}

#screen line:not(.coord) { stroke: #00000000; }
.graph line  { stroke: #aaa; }
#screen line.show, .graph line.show {
	stroke: var(--orange1);
	stroke-width: 2;
}
svg circle {
	stroke: #aaa;
	stroke-width: 1;
}
body.dark svg circle {
	stroke: #888;
}
svg circle.show, body.dark svg circle.show {
	stroke: var(--orange1);
	stroke-width: 2;
}

svg polyline.hide {
	opacity: .2;
}

#screen, #screen svg {
	transition: all ease .5s;
}

body.curves-mode #screen {
	width: 40%;
}
body.curves-mode #screen svg {
	width: 100%;
}
line.coord {
	opacity: 0;
	transition: all ease .5s;
}
body.curves-mode line.coord {
	opacity: 1;
}


#graph-curves {
	width: 60%;
	transform: translateX(100%);
	transition: all ease .5s;
}

body.curves-mode #graph-curves {
	transform: translateX(0);
}

#help {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	display: flex;
	justify-content: center;
	align-items: center;

	font-family: Caveat;
	font-size: 4em;

	pointer-events: none;
	transition: all ease .5s;
}

body.curves-mode #help {
	width: 40%;
}

.hide {
	opacity: 0;
	pointer-events: none;
}

#dark-light {
	position: fixed;
	top: 5px;
	right: 10px;
	width: 50px;
	height: 50px;
	cursor: pointer;
}

:root {
	--graph-size: 100px;
	--graph-size-padding: 120px;
}