fixed responsiveness onresize, added styles, and cleaned code