html, body {
	padding: 0;
	margin: 0;
	height: 100%;
	font-family: sans-serif;
}

#spray-error {
	display: none;
	color: #fff;
	background: rgba(0,0,0,0.8);
	padding: 6px 8px;
	margin: 6px 0;
	border-radius: 4px;
	font-size: 22px;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

#options-container {
	position: absolute;
	width: 250px;
	top: 0;
	right: 0;
	margin: 0;
	padding: 12px;
	background-color: #333;
	color: #fff;
	z-index: 1;
	user-select: none;
	box-sizing: content-box;
}

#options-hider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 16px 20px;
	cursor: pointer;
	text-align: right;
	font-size: 18px;
}

#options-hider svg{
	position: relative;
	top: 2px;
	left: 2px;
}

#options-color-swatch {
	width: 24px;
	height: 22px;
	display: inline-block;
	border: 1px solid #777;
	border-radius: 3px;
	background: #000;
	position: relative;
	top: 4px;
	left: 6px;
}

#options-content {
	display: none;
}		

#options-content div {
	margin-top: 10px;
	font-size:16px;
}

#options-content h2{
	font-size:22px
}

#options-content input {
	width: 35px;
}

#options-content input[type=range] {
	width: 90%;
}

#options-content input[type=range]:focus{
    outline: none;
}

#options-content label {
	cursor: pointer;
	display: block;
}

#canvas-wrapper {	
	width: 90vw;
    height: 90vh;
    min-width: 90vw;
    min-height: 90vh;
    position: relative;
	overflow: hidden;
	background: #ccc;
    left: 50%;
    margin-left: -45vw !important;
    margin-top: 5vh;
    padding: 0;	
}

#gw-controls{
	position:absolute;
	top:0;
	left:0;
	margin: 0;
	padding: 12px;
	background-color: #333;
	color: #fff;
	z-index: 1;
	user-select: none;
	box-sizing: content-box;
	width: auto;
	height: 32px;
	color: #fff;
}

#gw-recenter, #gw-undo, #gw-redo{
	width: 28px;
	height: 28px;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor:pointer;
	background: none;
	z-index:5;
	padding: 0;
}

#gw-recenter:disabled, #gw-undo:disabled, #gw-redo:disabled{
	opacity: 0.3;
}

#gw-recenter svg, #gw-undo svg, #gw-redo svg{
	stroke:#fff;
	stroke-width:1px;
    position: relative;
    top: 2px;
}

#canvas {
	position: absolute;
	top: 0;
	left: 0;
	cursor: crosshair;
	background: url('../img/brick.jpg');
}

#canvas, #canvas-wrapper {
	touch-action: none;
}

#canvas-wrapper{
	position: relative;
}

#gw-loading-overlay{
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.35);
	z-index: 20;
	pointer-events: none;
}

#gw-loading-overlay.is-hidden{
	display: none;
}

.gw-spinner{
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gwspin 0.8s linear infinite;
}

@keyframes gwspin{
	from{transform: rotate(0deg);}
	to{transform: rotate(360deg);}
}