You are adding your styles with this
which means that your function will run in the admin when acf does it’s admin_head stuff. But your targeting
.main-content, which is not a class that appears in the admin. I’m not sure where you’re trying to make this style appear.
Where exactly do you want to add this background?