Refactor the CSS rules for the overlayContainer