Replace unnecessary ids with classes in html and update css