justify-content aligns items along the main axis (set by flex-direction), align-items aligns along the cross axis, perpendicular to the main one. With `flex-direction: row`, justify-content controls horizontal alignment and align-items vertical, in `column` the two swap.