Refactored #main styles