Move more styling into CSS and make it support RTL layout