html, #canvas, body {
	margin: 0;
	padding: 0;
}

body {
	color: #000;
	overflow: hidden;
	font-family: Arial,Helvetica,Verdana,sans-serif;
	font-size: 100%;
}

#dialog-wrapper {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.8);
	display: block;
	z-index: 1;
}

.dialog {
	width: 800px;
	min-width: 800px;
	max-width: 80%;
	margin: 10% auto 0 auto;
	background: white;
	padding: 15px;
	border: 1px solid #cccccc;
	display: table; /* so the dialog changes size when textarea is resized */
}

.dialog-title {
    width: 100%;
    display: inline-block;
    margin-bottom: 10px;
    font-size: 120%;
    font-weight: bold;
}

.dialog .controls {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.controls .confirm-button {
    font-weight: bold;
}

.controls button {
    flex-grow: 1;
}

.dialog button {
    background: #222;
    padding: 10px 20px;
    color: #fff;
}

.dialog button:active {
	background: #666;
	color: #000;
}

.dialog button:hover, .dialog button:focus {
	background: #333;
}

textarea#colorFunction {
	width: 98%;
	min-width: 98%;
	resize: both;
	margin-left: 1%;
	margin-right: 1%;
	height: 140px;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;
}

#checkSyntaxResult {
	display: inline-block;
	margin-top: 10px;
}

.dg.a {
	margin-right: 0 !important;
}

.wait {
	cursor: wait !important;
}

#floatingBox {
	background: #fff;
	color: #000;
	border: 1px solid;
	margin: 15px;
	padding: 5px;
	position: fixed;
	display: none;
}