body {
	visibility: hidden;
}

div#overlay {
	z-index: 2;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	right: 0;
	display: none;
}

div#reader {
	position: absolute;
	width: 400px;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-webkit-transform: translateX(-50%) translateY(-50%);
}

div#overlay div#controls {
	z-index: 4;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
}

div#overlay div#controls div#inner {
	float: right;
	visibility: hidden;
	margin-top: 10px;
	margin-right: 10px;
}

div#overlay div#reader div#controls div#inner img {
	margin: 5px;
	cursor: pointer;
}

div#overlay div#loading {
	z-index: 5;
	position: absolute;
	width: 300px;
	height: 200px;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-webkit-transform: translateX(-50%) translateY(-50%);
	background: rgba(150, 150, 150, 0.8);
	border-radius: 8px;
	display: table;
}

div#overlay div#loading div#inner {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}

div#overlay div#loading div#inner img {
	margin-left: auto;
	margin-right: auto;
	margin-top: auto;
	margin-bottom: auto;
	vertical-align: middle;
}

div#overlay div#camera {
	z-index: 3;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;	
}

div#buttons {
	text-align: right;
}

div#buttons button {
	display: none;
	margin-top: 5px;
	margin-bottom: 5px;
}

img#progress_overlay {
	position: absolute;
	display: none;
	z-index: 2;
	width: 150px;
	height: 150px;
}

legend {
	text-align: center;
}

div#logo {
	text-align: center;
}
