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(main.jpeg);
	opacity: 1
}

#load.hide {
	display: none
}
.logo{
	position: absolute;
    top: 0rem;
    margin-left: -1rem;
}
.logo:hover{
	cursor: pointer;
}
#ctrl img{
	width: 200px;
}
#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: "➩";
} */

#fs img{
	width: 20px;
    background: #bfb8b8b0;
    border-radius: 4px;
    padding: 2px;
}
a {
	display: inline-block;
	width: 70px;
	line-height: 48px;
	font-weight: 700;
	color: #000;
	text-shadow: 1px 1px 1px #fff;
	background-image: url(button.gif);
	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
}
#hud div:first-child, #ctrl div:first-child {
    -ms-flex-item-align: center;
    align-self: center;
}
#hud div:nth-child(2), #ctrl div:nth-child(2) {
    -ms-flex-item-align: center;
    align-self: center;
}

* {
	-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
}


@media only screen and (max-width: 380px) {
	a{
	font-size: 12px;
    width: 50px;
	}
  }


@media only screen and (max-width: 583px) {
	#ctrl img {
		width: 160px;
	}
  }

  
@media only screen and (max-width: 340px) {
	#ctrl img {
		width: 150px;
	}
	#hud div:first-child, #ctrl div:first-child {
		margin-top: 1.5rem !important;
	}
  }

  @media screen and (max-width: 920px) and (orientation: landscape){
	#hud div:first-child, #ctrl div:first-child {
		margin-top: 5rem;
	}
	#hud div:nth-child(2), #ctrl div:nth-child(2) {
		margin-top: -5rem;
	}
  }
  @media screen and (max-width: 583px) and (orientation: landscape){
	#hud div:first-child, #ctrl div:first-child {
		margin-top: 3rem;
	}
	#hud div:nth-child(2), #ctrl div:nth-child(2) {
		margin-top: -4rem;
	}
  }