This seems kinda excessive. The legend uses z-index 10, maybe this can just use 11?