Use more accurate class name
Minimize selectors to follow best practices
Replace window.alert with a styled overlay
Update overlay class usage for future DRYness
Minimize selectors and add styles for overlay
Modularize CSS colors