How does carbon dioxide make the atmophere get warmer?
When solar energy hits Earth, a small part of it is absorbed by the ground. Most of it is reflected. If there was no atmosphere, that energy would just go out into space, and earth would be much colder. What greenhouse gases like carbon dioxide do is reflect that energy back to earth, keeping much more heat stay inside. The problem is that lately too much carbon dioxide has led to too much heat.