body {
	margin: 0;
}
#canvas-container {
	position: relative;
	aspect-ratio: 16 / 9;
	/*width: 100%;*/
	left: 0;
	top: 0;
	background-color: white;
	transition: left 0.5s ease-in-out, top 0.5s ease-in-out, width 0.5s ease-in-out, height 0.5s ease-in-out;
}
#teapotcanvas {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	display: block;
	/* border: 1px solid black; */
	cursor: move;
	z-index: 1;
}
h1 {
	/*
    margin: 0 0 0.3em 0;
    padding: 0px;
	*/
    text-align: left;
}
#controls-container {
	line-height: 1.2;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	overflow-y: auto;
	scrollbar-gutter: stable;
	padding: 0.5em;
	direction: rtl;
	z-index: 2;
}
#customSettings {
	background-color: #eee;
	border: 1px solid #aaa;
	overflow-y: hidden;
	transition: max-height 0.5s ease-in-out;
	max-height: 10em;
}
.control-column {
	line-height: 1.2;
	display: inline-block;
	vertical-align: top;
	margin: 0.5em 1.5em 0.5em 0.5em;
}
#controls {
	direction: ltr;
	user-select: none;
}
.control {
	display: block;
	margin-bottom: 0.5em;
}
label {
	display: inline-block;
	vertical-align: top;
}
input[type="checkbox"]:disabled + label {
	color: gray;
	cursor: not-allowed;
}
.radio {
	display: block;
}
#canvas-container input[type="image"] {
	width: 3em;
	display: inline-block;
	margin: 0.5em;
	filter: opacity(50%);
}
#canvas-container input[type="image"]:hover {
	filter: none;
}

#controls-container #customSettings {
	direction: ltr;
	background-color: transparent;
	border: none;
	max-height: 50em;
}
#controls-container .control-column {
	display: block;
}
#controls-container .radio {
	margin-left: 1em;
}

input[type="range"]:hover {
	filter: none;
}
input[type="checkbox"], input[type="range"], input[type="radio"], input[type="button"], input[type="image"], label {
	cursor: pointer;
}
input[type="checkbox"]:hover, label:hover {
	filter: brightness(2);
}
#resNumbers {
	display: block;
	min-height: 1.2em;
}
#forcustom {
	font-style: italic;
}

#top-right {
	position: absolute;
	top: 0;
	right: 0;
	text-align: right;
	padding: 0.5em;
	z-index: 3;
}

#downloadSettings {
	margin-bottom: 0.5em;
	overflow-y: hidden;
	max-height: 20em;
	transition: max-height 0.5s ease-in-out;
}

#downloadSettingsControls {
	border: 1px solid rgba(0,0,0,0.2);
	background-color: rgba(0,0,0,0.05);
	padding: 0.5em;
}

@media only screen and (max-width: 767px) {
	body {
		/*font-size: 10px;*/
	}
}