First: thanks for responding.
Second: I need to adjust my question a bit, consider the #overlay is not positioned at 50% but relative to the container, so for example
margin : 0 auto;
PS. I didn’t know you could use a left and right position at the same time, thanks ;)