Due to different screen sizes, the image does not appear on top of another image exactly. It seems like a new function is needed. One that does not overlap with another image (by clicking the function for a few seconds), but rather replaces it for those few seconds.
I have attempted to use percentages, viewport width (vw), viewport height (vh), and pixels (px) to align the pictures precisely. Here is a link to the codepen: https://codepen.io/karolis-rusevicius/pen/KbEqqE
<html lang="en">
My expectation is for the image to be replaced during a button click function or for the image to align perfectly on top of the static image on any screen size.