Moved CSS to stylesheet.
Made the alert a function, added font color to alert.