215 lines
3.1 KiB
CSS
215 lines
3.1 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
body {
|
|
width: 100%;
|
|
height: 100vh;
|
|
position: relative;
|
|
overflow: hidden;
|
|
user-select: none;
|
|
background-image: url(../img/back.png);
|
|
background-size: contain;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stop {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 10px;
|
|
z-index: 999;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.continue {
|
|
position: absolute;
|
|
left: 10px;
|
|
top: 10px;
|
|
z-index: 999;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.voice,
|
|
.Mute {
|
|
width: 28px;
|
|
height: 30px;
|
|
position: absolute;
|
|
left: 50px;
|
|
top: 10px;
|
|
z-index: 999;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
.score {
|
|
position: absolute;
|
|
z-index: 1000;
|
|
top: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.start {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
position: absolute;
|
|
top: 40%;
|
|
transform: translate(-50%, -50%);
|
|
left: 50%;
|
|
z-index: 999;
|
|
}
|
|
|
|
.start .play {
|
|
width: 70px;
|
|
margin-top: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.grade {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.grade div {
|
|
text-align: center;
|
|
display: flex;
|
|
width: 70%;
|
|
margin: 5px;
|
|
padding: 5px;
|
|
background: white;
|
|
border: 1px solid black;
|
|
border-radius: 4px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-shadow: 2px 1px 3px rgb(98 87 87 / 74%);
|
|
letter-spacing: 5px;
|
|
font-size: 17px;
|
|
box-shadow: 3px 2px 5px rgb(26 25 25 / 74%);
|
|
cursor: pointer
|
|
}
|
|
|
|
|
|
.color {
|
|
width: 100%;
|
|
height: 70px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 5px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.color div {
|
|
cursor: pointer
|
|
}
|
|
|
|
|
|
.ground {
|
|
position: absolute;
|
|
height: 112px;
|
|
width: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 999;
|
|
}
|
|
|
|
.ground img {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.bird {
|
|
width: 34px;
|
|
height: 24px;
|
|
position: absolute;
|
|
z-index: 999;
|
|
left: 100px;
|
|
transition: all linear 0.15s;
|
|
}
|
|
|
|
|
|
.up {
|
|
transform: rotate(-38deg);
|
|
}
|
|
|
|
.down {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* 黄色的鸟 */
|
|
@keyframes yelloBirdmove {
|
|
0% {
|
|
background-image: url(../img/hn1.png);
|
|
}
|
|
|
|
50% {
|
|
background-image: url(../img/hn2.png);
|
|
}
|
|
|
|
100% {
|
|
background-image: url(../img/hn3.png);
|
|
}
|
|
}
|
|
|
|
/* 蓝色的鸟 */
|
|
@keyframes blueBirdmove {
|
|
0% {
|
|
background-image: url(../img/bn1.png);
|
|
}
|
|
|
|
50% {
|
|
background-image: url(../img/bn2.png);
|
|
}
|
|
|
|
100% {
|
|
background-image: url(../img/bn3.png);
|
|
}
|
|
}
|
|
|
|
/* 红色的鸟 */
|
|
@keyframes redBirdmove {
|
|
0% {
|
|
background-image: url(../img/rn1.png);
|
|
}
|
|
|
|
50% {
|
|
background-image: url(../img/rn2.png);
|
|
}
|
|
|
|
100% {
|
|
background-image: url(../img/rn3.png);
|
|
}
|
|
}
|
|
|
|
@keyframes birdfly {
|
|
0% {
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
|
|
.waterpipe {
|
|
width: 55px;
|
|
position: absolute;
|
|
}
|
|
|
|
.hidden {
|
|
display: none;
|
|
} |