.message { position: relative; bottom: 800px; width: 800px; height: 800px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.5); } .message span { display: block; text-align: center; color: rgb(255,255,255); font-weight: bold; font-size: 50px; } #canvas { width: 800px; height: 800px; image-rendering: pixelated }