re factored css rules