Rewrite using HTML/CSS - fixes #1