How to Build a Gravity switch with HTML and CSS