* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	text-decoration: none;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
	-moz-osx-font-smoothing: grayscale;
	line-height: inherit;
	outline: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

body {
	background: #fff;
	overflow-y: auto;
	overflow-x: hidden;
	color: #000;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.6em;
}

#output {
	position: fixed;
	z-index: 0;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	display: block;
	height: 100% !important;
	width: auto !important;
	image-rendering: pixelated;
}

h2 {
	font-size: 100%;
	margin-bottom: 0.5em;
}

h3 {
	margin-bottom: 0.5em;
}

#settings {
	position: absolute;
	left: 25px;
	top: 25px;
	width: 270px;
	z-index: 9;
}

#render {
	position: absolute;
	right: 25px;
	top: 25px;
	width: 270px;
	z-index: 9;
}


.group + .group {
	margin-top: 2em;
}



button {
	all: unset;
}

label,
input[type=range],
select,
button {
	display: block;
	width: 100%;
	cursor: pointer;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 10px;
	label {
		span {
			width: 100%;
		}
	}
}
.grid-twocols {
	grid-template-columns: 1fr 1fr;	
}
.with-image {
	display: grid;
	width: 100%;
	grid-template-columns: 20px 1fr;
	align-items: center;
	border: 1px solid #ccc;
	img {
		display: block;
		width: 20px;
		height: 20px;
	}
	span {
		border: none !important;
		height: 20px;
	}
	&:has(input:checked) {
		border-color: #000;
	}
}
.only-images {
	display: grid;
	width: 100%;
	grid-gap: 5px;
	grid-template-columns: repeat(7, 1fr);
	button {
		width: auto;
		display: inline-block;
	}
	img {
		width: 32px;
	}
}




.checkboxes {
}
input[type=checkbox] {
	display: none;
}
input[type=checkbox] + span {
	display: inline-block;
	border: 1px solid #ccc;
	text-align: center;
}
input[type=checkbox]:checked + span {
	border-color: #333;
}


.palettes {
	canvas {
		width: 20px !important;
		height: 20px !important;
	}
}



.radios {
}
input[type=radio] {
	display: none;
}
input[type=radio] + span {
	display: inline-block;
	border: 1px solid #ccc;
	text-align: center;
}
input[type=radio] + span:hover {
}
input[type=radio]:checked + span {
	border-color: #333;
}



.buttons {
}
button {
	border: 1px solid #ccc;
	text-align: center;	
	span {
		display: inline-block;
		width: 100%;
		text-align: center;
	}
}
button:active {
	border-color: #333;
}
button[active="true"] {
	background: rgb(30,255,0);
	border-color: rgb(30,255,0);
}



.ranges {
	label {
		margin: 0.5em 0;
	}
}
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  border-radius: 2px;
	display: inline-block;
	vertical-align: middle;
	margin: 0.7em 0 1.5em;
	background: #ccc;
	&:hover {
		background: #aaa;
	}
  &::-webkit-slider-thumb {
	  background: #000;
	  -webkit-appearance: none;
	  appearance: none;
	  width: 8px;
	  height: 8px;
	  cursor: pointer;
	}
	&::-moz-range-thumb {
	  background: #000;
	  width: 8px;
	  height: 8px;
	  background: #fff;
	  cursor: pointer;
	}
}