* { 
  padding: 0; 
  margin: 0;
}

html,body{
  height: 100%;
  width: 100%;
}

canvas {
  display: none;
}

body{
  /*background: #e7e7e7;*/
  color: #fff;
  font-family: Verdana,Arial, sans-serif;
  font-size: 18px;
}
h1{
	font-size: 30px;
}

a{
	color: #fff;
	text-decoration:none;
}
a:hover{
	text-decoration: underline;
}
.button{
  background: #185da8;
  border-radius: 5px;
  display: block;
  font-size: 18px;
  margin: 20px auto;
  border: none;
  padding: 10px;
  width: 100%;
  color: #fff;
}
.button:hover{
	background: #2488f5;
	color: #fff;
	text-decoration: none;
}
#game{
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(-180deg, #040024 0%, #07165C 97%);
}

.game-panel {
  width: 100%;
	position: absolute;/* 将UI置于画布之上 */
}
.game-ui{
  display: none;
  padding: 10%;
  padding-top: 300px;
  box-sizing: border-box;
}
.game-level {
  margin-top: 10px;
  font-size: 18px;
}
.game-desc {
  font-size: 14px;
  margin-top: 10px;
}
.result-desc {
  font-style: italic;
  color: #f6d31f;
}
.score {
  color: #f6d31f;
  font-weight: 600;
}

audio {
  position: absolute;
  width: 0;
  height: 0;
  font-size: 0;
}

[data-status="start"] .game-intro {
  display: block;
  background: url(./img/bg-start.png) no-repeat center 10%;
  background-size: 200px;
}
[data-status="playing"] .game-panel{
  display: none;
}
[data-status="playing"] .game-info {
  display: block;
  position: absolute;
  top:0;
  left:0;
  padding:20px;
}
[data-status="playing"] #canvas{
  display: block;
}
[data-status="all-success"] .game-all-success{
  display: block;
  background: url(./img/bg-end-1.png) no-repeat center 10%;
  background-size: 250px;
}


