Fixed flexbox results breaking in Safari (and some general flexbox awkwardness). Fixes 12.