https://codepen.io/ankit-a-aggarwal/pen/oepovr - Not working
https://codepen.io/barmar/pen/PqagNw - working
https://codepen.io/ankit-a-aggarwal/pen/oepovr - Not working
https://codepen.io/barmar/pen/PqagNw - working
At the moment they both appear to work.
btw I would change button’s cursor to pointer so its more obvious that its a button
.button{
cursor: pointer;
}
Good luck