*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 100%; height: 100%; overflow: hidden; background: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } #canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; will-change: transform; cursor: grab; } #canvas.panning { cursor: grabbing; }