body,
canvas,
html,
li,
ul {
	width: 100%;
	height: 100%
}

#ctrl,
body,
canvas,
h1,
h2,
h3,
h4,
html,
li,
table,
td,
th,
tr,
ul {
	margin: 0;
	padding: 0
}

body,
html {
	overflow: hidden;
	background-color: #000;
	color: #fff;
	font: normal 14px Arial, Helvetica, sans-serif;
	text-align: center
}

#ctrl,
#game,
#hud,
#load,
#planet {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0
}

#load {
	background: url(space.gif);
	opacity: 1;
	    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: #000;

}

#ctrl
{

}
#load.hide {
	display: none
}

#hud,
#load {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-pack: justify;
	justify-content: space-between
}

#hud div,
#load div {
	width: 100%
}

#hud div:first-child,
#load div:first-child {
	-ms-flex-item-align: start;
	align-self: flex-start
}

#hud div:last-child,
#load div:last-child {
	-ms-flex-item-align: end;
	align-self: flex-end
}

ul {
	list-style: none
}

ul>li {
	position: absolute;
	letter-spacing: 3px;
	line-height: 60px;
	font-size: 24px;
	font-weight: 700
}

ul>li.hide {
	opacity: 0;
	transition: opacity 1s
}

h1 {
	font-size: 24px;
	letter-spacing: 5px;
	line-height: 80px
}

h2 {
	line-height: 30px
}

h2,
h3 {
	font-size: 18px
}

h3 {
	height: 40px
}

h4 {
	line-height: 20px;
	font-size: 14px
}

h4.title {
	line-height: 25px;
	font-size: 20px
}

h4.done {
	text-decoration: line-through
}

p {
	margin: 10px 0;
	padding: 0
}

table {
	min-width: 250px;
	margin: 5px auto 0
}

th {
	text-align: left;
	font-weight: 400
}

td {
	text-align: right
}

.total {
	font-weight: 700;
	font-size: 18px;
	line-height: 25px
}

#quest {
	padding: 10px 0;
	background: rgba(0, 0, 0, .7);
	opacity: 1;
	visibility: hidden
}

#ctrl {
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-ms-flex-align: end;
	align-items: flex-end;
	-ms-flex-pack: center;
	justify-content: center
}

#ctrl div {
	-ms-flex: 1 0 100%;
	flex: 1 0 100%
}

#keys.hide,
#touch.hide {
	display: none
}

i {
	position: absolute;
	display: block;
	top: 12px;
	width: 32px;
	line-height: 32px;
	font-size: 24px;
	font-style: normal;
	border-radius: 50%;
	cursor: pointer;
	color: #999
}

#sfx {
	right: 10px
}

#sfx:before {
	content: "♫"
}

#sfx.no:before {
	content: "♪";
	text-decoration: line-through
}

#sfx.sfx:before {
	content: "♪"
}

#fs {
	left: 10px
}

#fs:before {
	content: "☐"
}

a {
	display: inline-block;
	width: 50px;
	line-height: 48px;
	font-weight: 700;
	color: #000;
	text-shadow: 1px 1px 1px #fff;
	background-image: url(button.png);
	border: 2px solid #333;
	border-radius: 25px;
	padding: 0 20px;
	margin: 20px 5px;
	cursor: pointer
}

a.disabled {
	color: #999
}

.cyan {
	color: #2ff
}

.pink {
	color: #f2f
}

.red {
	color: #f22
}

.end #ctrl,
.play #ctrl,
.play a {
	visibility: hidden
}

.end #quest,
.play #quest {
	visibility: visible
}

.play #quest {
	opacity: 0;
	transition: opacity 1s;
	transition-delay: 2.5s
}

.play table {
	display: none
}

* {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none
}