* { margin: 0; padding: 0; } body { height: 100%; width: 100%; } canvas { width: 100%; height: 100%; } #switch { position: absolute; top: 20px; right: 20px; width: 210px; padding: 3px; background: #888; cursor: pointer; } #switch label { color: white; text-transform: uppercase; font-family: "Consolas", sans-serif; cursor: pointer; } #switch input[type=checkbox] { display: none; }