html, body { margin: 0; padding: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background: rgb(51, 51, 51); overflow: hidden; white-space: nowrap; } #root { background: rgb(31, 31, 31); position: relative; margin: 0; padding: 0; width: 100%; max-height: 100%; aspect-ratio: 16/9; overflow: hidden; } #root div { transform: translate(-50%, -50%); position: absolute; } .cloud-particle { border-radius: 50%; background: rgb(255, 255, 255); animation-name: cloud; animation-iteration-count: infinite; animation-direction: alternate; } .shooting-pad { background: red; } .bullet { background: yellow; width: 1px !important; } .raindrop { background: cyan; width: 1px !important; } .result { left: 50%; top: 50%; font-size: 108px; font-family: arial; color: white; } .result:after { content: 'Press any key to restart'; position: absolute; font-size: 48px; width: fit-content; top: 85%; left: 50%; transform: translate(-50%); } @keyframes cloud { from { transform: translate(-50%) scale(1.2); opacity: 0.7; } to { transform: translate(-50%) scale(0.2); opacity: 0.1; } }