The header should be a flex container with all items center both vertically and horizontally. code example
Example: css flex center horizontally and vertically
display: flex;
align-items: center;
justify-content: center;
display: flex;
align-items: center;
justify-content: center;