Here's how it works:
* Sunlight is made up of all colors of the rainbow. These colors have different wavelengths, with blue light having a shorter wavelength than red light.
* When sunlight enters the Earth's atmosphere, it interacts with the tiny molecules of air. These molecules are much smaller than the wavelengths of visible light.
* Short-wavelength light (like blue) gets scattered more easily than long-wavelength light (like red). This is because the smaller molecules are better at interacting with the shorter wavelengths.
* This scattered blue light reaches our eyes from all directions in the sky, making it appear blue.
Here's a simple analogy: Imagine shining a flashlight through a jar of water with tiny particles suspended in it. The blue light will be scattered more than the red light, making the water appear blue.
Therefore, the blue color of the sky is a result of sunlight being scattered by the air molecules, with the shorter wavelengths of blue light scattering more effectively.