changed display and flex-direction

supports safari and firefox now