Refactor styles for elements and element overlays to achieve stretching of dynamic sections when text areas are resized