updated css for fading in/out and mobile displays