two divs side by side flexbox

The first step is to place the elements within .main, i.e.,