I sort of understand it but I am not sure if my understanding is correct.
So what I understand of the CMB is:
When the universe was created it was very hot, too hot for matter to form.
When matter tried to form a photon would smash the electron away.
This would scatter the electron and photon in random directions.
Over time the universe expanded and cooled. This means that the photons no longer had enough energy to break apart matter, this was the last time photons got scattered. After that the photons went in a straight line.
These photons were red shifted to be in the microwave band, these microwaves are what we now see as the CMB.
I have a few questions:
How did the photons lose energy, i get how as the universe expanded there would be less photons per km2 but wouldnt the photons still have enough energy to break apart matter, if the photons lost energy wouldnt that violate the law of conservation of energy?
Is my understanding of the CMB correct?