* { margin: 0; padding: 0; list-style: none; } body { width: 100%; height: 100vh; background-image: url("../img/back.png"); background-size: contain; position: relative; overflow: hidden; user-select: none; } .result { position: absolute; left: 50%; transform: translateX(-50%); top: 30px; z-index: 999; } .s_normal { font-size: 30px; color: aliceblue; } .s_hard { font-size: 30px; color: aliceblue; } .fanhui { font-size: 30px; color: aliceblue; } .pifu img { width: 34px; height: 24px; margin-left: 10px; } .ground { position: absolute; width: 100%; height: 112px; left: 0; right: 0; bottom: 0; z-index: 1000; } .ground img { position: absolute; width: 100%; height: 100%; } .bird { width: 34px; height: 24px; position: absolute; left: 100px; transition: all linear 0.15s; z-index: 999; } .up { transform: rotate(-38deg); } .down { transform: rotate(90deg); } .sg { width: 55px; position: absolute; } @keyframes birdShake { 0% { transform: translateY(0px); } 50% { transform: translateY(10px); } 100% { transform: translateY(0px); } } @keyframes birdOneMotion { 0% { background: url("../img/hn1.png"); } 50% { background: url("../img/hn2.png"); } 100% { background: url("../img/hn3.png"); } } @keyframes birdOneMotion2 { 0% { background: url("../img/hn4.png"); } 50% { background: url("../img/hn5.png"); } 100% { background: url("../img/hn6.png"); } } @keyframes birdOneMotion3 { 0% { background: url("../img/hn7.png"); } 50% { background: url("../img/hn8.png"); } 100% { background: url("../img/hn9.png"); } } .start { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -40%); display: flex; flex-direction: column; align-items: center; z-index: 999; } .start .play { width: 60px; margin-top: 20px; cursor: pointer; } .pause { position: absolute; left: 20px; top: 20px; cursor: pointer; z-index: 999; } .show { display: block; } .hidden { display: none; } audio { display: none; }