Modified from https://css-tricks.com/of-course-we-can-make-a-css-only-clock-that-tells-the-current-time/