grouped code in css for the hover before, since they were exactly the same, thereby shortening the amount of code