added templates styles, separated media-queries