html, body, .screen, .layout {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	width: 100%;
	height: 100%;
	background-color: white;
	color: black;
	font-family: Calibri, Helvetica;
	padding: 0;
	margin: 0;
	text-align: center;
	border: 0px;
	border-collapse: collapse;
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer */
	-webkit-user-select: none; /* Chrome, Safari, and Opera */
	-webkit-touch-callout: none; /* Disable Android and iOS callouts*/
}

body {
	font-size: 20px;
}

fieldset { padding: 10px; margin: 5px; }
legend { padding: 0 10px; font-weight: bold; }
ul { margin-top: 0px; }
li { margin: 20px; }
h1 { font-size: 60px; }
h2 { font-size: 40px; }

.sublayout { margin: auto; }
.textblock { display: inline-block; text-align: left; margin: auto; }

input[type=button] {
	-webkit-appearance: none;
	display: inline-block;
	border: 3px outset gray;
	background-color: #ddd;
	padding: 20px;
	font-size: x-large;
	border-radius: 10px;
	margin: 10px;
}
input:disabled { background-color: #f5f5f5; border: 3px outset #ddd; }
input:focus { outline: none; }
input[type=radio] { display: none; }
input[type=radio]:checked+label {
	background: rgb(230,255,230); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(230,255,230,1) 0%, rgba(220,255,220,1) 38%, rgba(210,255,210,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(230,255,230,1)), color-stop(38%,rgba(220,255,220,1)), color-stop(100%,rgba(210,255,210,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(230,255,230,1) 0%,rgba(220,255,220,1) 38%,rgba(210,255,210,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(230,255,230,1) 0%,rgba(220,255,220,1) 38%,rgba(210,255,210,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(230,255,230,1) 0%,rgba(220,255,220,1) 38%,rgba(210,255,210,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(230,255,230,1) 0%,rgba(220,255,220,1) 38%,rgba(210,255,210,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6ffe6', endColorstr='#d2ffd2',GradientType=0 ); /* IE6-9 */
}

input[type=button].small,
input[type=radio]+label {
	-webkit-appearance: none;
	display: inline-block; 
	border: 2px outset gray;
	padding: 5px 10px;
	font-size: x-large;
	border-radius: 10px;
	margin: 5px;
	background: rgb(242,242,242); /* Old browsers */
	background: -moz-linear-gradient(top,  rgba(242,242,242,1) 0%, rgba(230,230,230,1) 38%, rgba(220,220,220,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(242,242,242,1)), color-stop(38%,rgba(230,230,230,1)), color-stop(100%,rgba(220,220,220,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(230,230,230,1) 38%,rgba(220,220,220,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(230,230,230,1) 38%,rgba(220,220,220,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(242,242,242,1) 0%,rgba(230,230,230,1) 38%,rgba(220,220,220,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(242,242,242,1) 0%,rgba(230,230,230,1) 38%,rgba(220,220,220,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f2f2', endColorstr='#dcdcdc',GradientType=0 ); /* IE6-9 */
}

input[type=radio].small+label {
	padding: 2px 4px;
	font-size: large;
	margin: 3px;
}

.cacheText { font-size: small; }
.versionText { font-size: small; }
.offline .versionText { background-color: #f99; }




#memonaco_home table { margin: auto; }
#memonaco_home h1 { font-size: 10vh; margin: 0; font-style:italic; }
#memonaco_home h2 { font-size: 5vh; margin: 1vh 0; }
#memonaco_home h3 { font-size: 3vh; margin: 1vh 0; }
#memonaco_home h5 { font-size: 1vh; margin: 0; color: black; position: absolute; right: 1vh; bottom: 1vh; }
#memonaco_10gph { height: 40vh; width: auto; }
.memonaco_logo { height: 10vh; width: auto; }
#memonaco_home td input[type=button] { font-size: 6vh; padding: 2vh 4vh; }

#memonaco_game { display: none; width: 100%; height: 100%; font-size: 3vh; background-color: red; }
#memonaco_game h1 { margin:0 }
#memonaco_game canvas {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	margin: 0px;
	padding: 0px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

#memonaco_car { pointer-events:none; }

#memonaco_startlight { position: absolute; }
#memonaco_infos {
	position: absolute;
	left: 25vw;
	bottom: 0;
	width: 15vw;
	height: 10vh;
	padding: 2vh;
	line-height: 3vh;
	font-size: 2vh;
	background-color: white;
	border: 3px double black;
}
#memonaco_popupLost {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 40vw;
	height: 30vh;
	border: 11px double black;
	display: none;
	padding: 1vh;
	text-align: center;
	background-color: #fdd;
	line-height: 6vh;
	font-size: 3vh;
}

#memonaco_answers { text-align: center; }
#memonaco_answersPic { width: 20vw; height: auto; position: relative; transition: top 1s linear; }
#memonaco_answersTitle { color: gray; font-size: 9vh; margin-top: 0; position: relative; transition: top 1s linear; }
.memonaco_answer {
	position: absolute;
	font-size: 6vh;
	color: red;
	font-weight: bold;
	transition: left 1s linear;
}
.memonaco_answer.memonaco_checked { border: 4px solid #005; }

#memonaco_results h2 { font-size: 6vh; margin-top: 0; color: gray; }
#memonaco_results h3 { font-size: 4vh; margin-top: 5vh; }
#memonaco_results input { font-size: 4vh; padding: 1vh 2vh; }
#memonaco_results canvas { width: 100%; height: 100%; }
.memonaco_memory-good { color: green; }
.memonaco_memory-bad { color: red; }
.memonaco_memory-correct { color: green; font-weight: normal; }