wrap elements + use flex css

Changed orientation of ace editor and output.
+ Use flex css property to fit the viewport