html, body { overflow: hidden; margin: 0; font-family: 'Space Mono', monospace; background-color: #0c0c1c; height: 100%; width: 100%; } /* Background */ canvas { display: block; vertical-align: bottom; } .starBackground { position: absolute; z-index: 1; width: 100%; height: 100%; } /* Content */ .contentWrapper { position: relative; height: 100%; width: 100%; } .content { position: absolute; text-align: center; color: #fff; font-size: 1.5vh; max-width: 85%; top: 50%; left: 50%; transform: translate(-50%, -50%); } .character { font-weight: 900; } @media only screen and (max-width: 600px) { .content { width: 95%; } } @media only screen and (max-width: 400px) { .content { font-size: 1.5vh; } } /* Whale falling down */ .fallingObject { position: absolute; display: none; width: auto; height: 30vw; } .dropObject { display: block; z-index: 1; bottom: 0; animation: drop 3s ease-in forwards; } @keyframes drop { from { transform: translate(0, -100vh) rotate(0deg); } to { transform: translate(0, 200vh) rotate(360deg); } }