apply display flex to PAGES
remove text-align and set margin 0.