When you heat things up, they emit specific wavelengths of light, right? Like when you heat up sodium, it emits yellow. But don't things emit shorter wavelengths of light at higher temperatures? Like how hotter stars are blue and colder stars are yellow. Since stars are mostly hydrogen, shouldn't they be a mixture of just the colors we see in Hydrogen's emission spectrum? When we see an absorption spectrum of sunlight, there are black gaps for the different elements. But those same elements are heated up in the sun, so they should be emitting light too, right? Is it that the outer layers of stars are cooler? So the inner layers emit the light, and the outer layers block specific wavelengths of light by absorbing and then scattering them? But surely even the outer layers would be hot enough to be emitting their own light, right? Please help!