Core concepts
Flexbox makes more sense when you separate the container from the items and keep the axes in mind.
Flexbox works in one dimension: it organizes content as a row or a column.
The container defines the direction, spacing and alignment rules, while the children become flexible items that respond to those rules.
Two axes control almost everything: the main axis and the cross axis.
- Main axis: the primary direction, usually controlled by `flex-direction`.
- Cross axis: the perpendicular direction.
- Container properties affect the group; item properties affect a specific element.