I would like to cover the basics of this so that people have more than just denial when trying to argue against the science.
There doesn't seem to be much interest in learning the science, including from those who don't know it yet still insist it's wrong and that the scientists aren't credible.
Here's a bit more of the science :
These curves show the peak wavelengths of the sunlight being absorbed by the earth (about 0.5 microns) and the much larger infrared wavelength of the re-emitted heat (about 10 microns):
"Wien's displacement law states that the black body radiation curve for different temperature peaks at a wavelength is inversely proportional to the temperature." - Wiki
As you noted, the greenhouse gases are transparent to the former, but absorb (and re-emit) the longer infrared wavelengths, and continue to heat the atmosphere until the atmosphere is warm enough to emit as much energy into space as is coming in.
It's interesting what makes a molecule a greenhouse gas. Monoatomic (Ar) and diatomic atmospheric molecules (O2 and N2) are not greenhouse gases, but CO2, O3, CH4, N2O and H2O are. Diatomic molecules can translate, rotate, and stretch or contract, but not bend. It's this last action that allows for absorption in the infrared region.