Atmosphere of Earth
Some parts of the atmosphere are hot or cold, depending on height. Starting from the surface and climbing straight up, the air gets colder in the troposphere, but then it becomes hotter, higher in the stratosphere. These changes of temperature are divided into layers. These are like layers of an onion. The difference between the layers is the way the temperature changes.