Atheists have been around as long as has the Church. Can’t believe that they are the reason for any decline.
In the post-Renaissance world, and picking up much speed since the French Revolution, the dominant view has become: "Atheists! They are wise! They are educated! They are not taken in by the lies of the clergy! Everyone should heed their words!"
That's a change, and it has brought us to where we are today.