Added some css snippets
Moved light/dark functionality to functions