Even though you are getting closer to the sun as you ascend into the troposphere, why does the temperature drop?

the lower atmosphere is heated by the ground
warm air stays below cold air
the troposphere is a stable layer
ozone blocks the sunlight