fixed some errors and compatibility problems in main.css