html { overflow: hidden; } main { position: fixed; top: 0; right: 0; bottom: 0; left: 0; } #battlefield { position: fixed; translate: -50% -50%; pointer-events: none; transition: scale .2s; } .grabbing { cursor: grabbing !important; } #color-bar { position: fixed; right: 1em; bottom: 1em; left: 1em; display: flex; align-items: center; padding: 1em; border-radius: 1em; background-color: transparent; } #color-picker { position: absolute; visibility: hidden; } label[for="color-picker"] { width: 2em; height: 2em; border-radius: .5em; cursor: pointer; } .color { margin-left: .5em; width: 2em; height: 2em; border-radius: .5em; cursor: pointer; }