* {
    margin: 0;
    padding: 0;
  }

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

.desc {
	position: absolute;
	top: 30px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	overflow: hidden;
}

#canvas {
	position: absolute;
	top: 100px;
	left: 0;
	right: 0;
    visibility: hidden;
	margin: 0 auto;
	overflow: hidden;
}
  
#container {/*游戏背景*/
    width: 343px;
    height: 480px; 
	margin: 0 auto;
	/* background-image: url(../img/bg.jpg); */
	background-image: url('https://i.niupic.com/images/2020/09/04/8CXx.jpg');
	position: relative;
	top: 100px;
	overflow: hidden;
}

#title {/*开始标题*/
    width: 236px;
    height: 77px;
	background-image: url('https://i.niupic.com/images/2020/09/04/8CXH.jpg');
    position: absolute; 
    left: 53px; 
	top: 100px;
	overflow: hidden;
	animation: titleMove 2s infinite;
	-webkit-animation: titleMove 2s infinite;
}

@keyframes titleMove {
	0% { top: 100px; }
	50% { top: 120px; }
	100% { top: 100px; }
}

@-webkit-keyframes titleMove {
	0% { top: 100px; }
	50% { top: 120px; }
	100% { top: 100px; }
}

#headBird {/*开始标题中的小鸟*/
	/* background-image: url(../img/bird0.png); */
	background-image: url('https://i.niupic.com/images/2020/09/04/8CXA.png');
	position: absolute; 
    right: 0; 
	top: 20px;
	width: 40px;
	height: 26px;
	animation: headBirdMove 2s linear infinite;
	-webkit-animation: headBirdMove 2s linear infinite;
}

@keyframes headBirdMove {
	from { background-image: url('https://i.niupic.com/images/2020/09/04/8CXC.png'); }
	to { background-image: url('https://i.niupic.com/images/2020/09/04/8CXA.png'); }
}

@-webkit-keyframes headBirdMove {
	from { background-image: url('https://i.niupic.com/images/2020/09/04/8CXC.png'); }
	to { background-image: url('https://i.niupic.com/images/2020/09/04/8CXA.png'); }
}

#startBtn {/*开始按钮*/
    width: 85px;
    height: 29px;
    padding: 0;
    margin: 0;
	background-image: url('https://i.niupic.com/images/2020/09/04/8CXI.jpg');
    position: absolute;
    left: 129px;
    top: 300px;
}

#grassLand1 {/*草地1 为了动起来*/
    height: 14px;
	width: 343px;
	background-image: url('https://i.ibb.co/rt9tRcX/banner.jpg');
	/* background-image: url(../img/banner.jpg); */
    position: absolute;
	top: 423px;
	animation: grassMove1 2s linear infinite;
	-webkit-animation: grassMove1 2s linear infinite;
}

#grassLand2 { /*草地2*/
    height: 14px;
	width: 343px;
	background-image: url('https://i.ibb.co/rt9tRcX/banner.jpg');
	/* background-image: url(../img/banner.jpg); */
    position: absolute;
	top: 423px;
	right: 200px;
	animation: grassMove2 2s linear infinite;
	-webkit-animation: grassMove2 2s linear infinite;
}

@keyframes grassMove1 {
	0% { left: 0; }
	100% { left: calc(50%); }
}

@-webkit-keyframes grassMove1 {
	0% { left: 0; }
	100% { left: calc(50%); }
}

@keyframes grassMove2 {
	0% { left: -50%; }
	100% { left: 0px; }
}

@-webkit-keyframes grassMove2 {
	0% { left: -50%; }
	100% { left: 0px; }
}