The light coming from the sun is made of many colors, each of which has a different wavelength. The atmosphere affects how each color of light passes through, as the light waves encounter molecules, small water droplets and bits of dust.
Blue light has a short wavelength, and the particles in the air scatter it around, making the sky appear blue. Red light has a longer wavelength, which acts more strongly and is not scattered as much.
For the rest of the story: http://www.lifeslittlemysteries.com/3205-what-will-happen-when-the-milky-way-collides-with-the-andromeda-galaxy.html