Stars are gigantic balls of hot gases that emit electromagnetic radiation. Their color indicates temperature, from coolest red stars to hottest white or blue-white stars. The Sun is an average-sized yellow star that is the closest star to Earth and the brightest object in the sky. It is a fiery ball of hot gases composed of layers including the photosphere, chromosphere, and corona. Solar flares and prominences are linked to the sunspot cycle and can last from minutes to months. A star is born in a nebula and dies when it runs out of hydrogen fuel.