centering the main container and removing when screen narros or shrinks height with Media queries