From elementary physics I recall that light incident at a transparent boundary layer is ether reflected, refracted or transmitted. For a greenhouse the transmitted light going through glass eventually transforms to heat energy and that heat trapped by the same glass boundary layer. So, where in the atmosphere is the carbon dioxide boundary layer?
Fill a balloon with CO2 and see where it goes. Theres your answer.