Your going to have a lot of issues by directing setting a z-index value on every<section> element in your markup, what you should instead be doing is targeting ONLY the elements you need to sit higher in the DOM as that will eliminate the current issues you're having.