Improve display on small screens

* Move CSS from template.php to external file, fix coding style
* Add media query to improve visualization on small displays (tablet, phone)