updated main.css code refactor

spacing and code refactor for main.css