In the first layer, the trotosphere, the temperature decreases with elevation. On Earth's surface the temperaute could be about 17°C, but it would decrease to -60°C by the end of the layer. The tropopause maintains itself at a constant of -60°C. However, in the next layer, in the stratosphere, the temperature increases with elevation, reversing the process. The atmospheric abruptly starts increasing because in this layer is where the Ozone absorbs most of the dangerous ultraviolet radiation coming towards Earth. However, in the mesosphere the temperature drops as the elevation increases again. Although, this layer might be the most mysterious to mankind it has the lowest temperature out of all the layers (-90°C). Once again, the pattern repeats and the temperature climbs steadly within the mesosphere due to the unprotective proximity it has to the sun.
Unlike the unregular atmospheric temperature, the atmospheric pressure decreases with elevation steadly. The reason being, that more solar energy reaches the atmosphere than to Earth thus making the molecules in the atmosphere extra excited. Excited by the high temperatures of the solar energy the molecules start bouncing off each other trying to expand. If those same molecules were inside a closed container, like a pot, the pressure would increase rather than decrease since the molecules would be compressed rather than expanding inside the container. However, since such molecules aren't inside a pot but in space, the circumstances are the total opposites. The atmospheric pressure decreases since there is less gravity and pressure pulling the molecules towards Earth's surface thus letting them to freely expand into space.