Центр всплывающего CSS
position: absolute;
left: calc(50vw - pop_up_width);
top: calc(50vh - pop_up_height);
Bright Bug
position: absolute;
left: calc(50vw - pop_up_width);
top: calc(50vh - pop_up_height);