Restructured markup to use main element around nav, content and aside.
This way is possible to apply flexbox to container and main elements.

Also ta layout rules was rewritten to handle the new structure.
The debug class is just for visually helping find the right rules.