set height to auto for other media queries and added min-height property. Also made some other tweaks as well