What is the connection between more greenhouse gases in the Earth’s atmosphere and the temperature of the atmosphere?

The more greenhouse gases there are in the Earth's atmosphere, the more heat is trapped and retained in the atmosphere. This leads to an increase in the temperature of the atmosphere, which can cause various environmental and climate changes such as global warming, melting of glaciers and ice caps, rising sea levels, and more frequent and severe weather events. This is known as the greenhouse effect, and it is a natural process that keeps the Earth's climate habitable. However, human activities have increased the concentration of greenhouse gases in the atmosphere, intensifying the greenhouse effect and causing significant changes to the Earth's climate.