Apply flex rules to shuffle container (Resolves issue #18)