I want to align the nextButton and previousButton at the bottom right of the mainBody. This works now. But the elements between .mainBody and buttons are not stable when expanded. How can I do it? I want my elements to be like the picture and remain stable when expanded or not. I am not so familiar with flex-box.