refactored the generation of legend of heat maps
fixed legend for comparison page
made new legends responsive
corrected main.css