`flex` property is short-hand for `flex-grow`, `flex-shrink` and `flex-basis`. Setting `flex: 1;` is same as doing `flex: 1 1 0;`.
`justify-content` is used to align items across the main axis.
`align-items` is used to align items across the cross axis.