This is a fork of Benjamin Réthorés Pen http://codepen.io/bnthor/pen/WQBNxO with the addition of the background changing colour to match the AM or PM