Fix css and add hit-testing math