Instead of centering your div with "align-items: center;", you could use the "flex-start" values of the same property instead. Better still, make use of "position: relative", to have full control over the position of the div, without making it overflow