Fixed indentation problems and added general animation to the CSS, rather than just webkit.