XXX and YYY should be on separate lines and not overlap, i.e. the height of .flex should not be 0.

XXX
YYY