flex-direction: column means the main axis is vertical, starts from the top, and ends at the bottom.

Make sure to type column.