:root {
	--accent: blue;
	--darkAccent: navy;
}

* {
	margin: 0px;	
	padding: 0px;
	box-sizing: border-box;
	font-family: sans-serif;
	z-index: 1;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
	
}

main {
	display: grid;
	width: 100%;
	height: 100%;
	grid-template-columns: min-content 1fr;
}

h1 {
	font-weight: normal;
	color: var(--darkAccent);
	text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.8);
	margin: 10px 0px 10px 14px;
	user-select: none;
}

h2 {
	color: rgba(0, 0, 0, 0.4);
	font-weight: normal;
	user-select: none;
}

#controls {
	overflow: auto;
	/* resize: horizontal; */
	grid-column: 1;
	min-width: 300px;
}

section {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 8px;
	margin: 4px 4px 0px 4px;
	padding: 10px;
}

section p {
	margin-top: 10px;
}

section p label {
	display: inline-block;
	margin-top: 4px;
}

section p input,
section p span {
	margin-top: 4px;
}

canvas {
	grid-column: 2;
	width: 800px;
	height: 450px;
	border-radius: 4% / 16%;
	margin: 4px 0px 0px 0px;
}

input[type=number],
input[type=text] {
	height: 26px;
	padding: 2px 4px;
}

#input-baseHue {
	width: 100%;
	background-color: white;
	margin-top: 20px;
	height: 4px;
	padding: 0px;
	border-radius: 4px 4px 0px 0px;
}

#input-baseHue::-webkit-slider-thumb,
#input-baseHue::-moz-range-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 30px;
	height: 30px;
	border-radius: 15px 15px 0px 0px; 
	border: 2px solid white;
	background: var(--accent);
	cursor: pointer;
}

#baseHueSquare {
	width: 100%;
	padding: 8px 2px 8px 2px;
	text-align: center;
	border-radius: 0px 0px 4px 4px;
	background-color: white;
	display: inline-block;
	z-index: 1;
	color: white;
	border-style: solid;
	border-width: 0px 2px 2px 2px;
	border-color: white;
}

#baseHueRGB,
#baseHueHSL {
	display: inline-block;
	color: white;
	font-size: .8em;
	padding: 0px 4px;
}

.optionRadioWrapper {
	display: inline-block;
	padding: 0px 1px;
	background-color: white;
	border: 1px solid #aaa;
	border-radius: 100vh;
	--rest: #eee;
}

.optionRadioWrapper button {
	padding: 2px 8px;
	margin: 2px;
	border: 0px;
	border-radius: 100vh;
	color: var(--darkAccent);
	background-color: var(--rest);
	border: 1px solid var(--rest);
}

.optionRadioWrapper .selected {
	color: white;
	background-color: var(--darkAccent);
	border: 1px solid var(--darkAccent);
}

.optionRadioWrapper .rest:hover {
	cursor: pointer;
	border: 1px solid var(--darkAccent);
}

#selectedColors {
	margin-top: 10px;
}

.color {
	display: grid;
	height: 2em;
	grid-template-columns: 1fr 20px;
	margin: 1px 4px 0px 0px;
	width: 100%;
	border-radius: 2px;
}

.color textarea {
	margin: 8px 2px 8px 8px;
	font-family: monospace;
	background-color: transparent;
	border: 0;
	resize: none;
	color: white;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9);
}

.color div {
	user-select: none;
	width: 100%;
	height: 2em;
	line-height: 2em;
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4);
}

.color div:hover {
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9);
	cursor: pointer;
}