/* FROM: https://codepen.io/ninjascribble/pen/DRPwQY */

@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:200,300,400);
@font-face{font-family:Barlow-Medium;src:url(/fonts/Barlow-Medium.ttf)}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  font-family: 'Yanone Kaffeesatz', sans-serif;
}

body {
  padding: 1rem;
}

.timer-group {
  height: 20rem;
  margin: 0 auto;
  position: relative;
  width: 20rem;
}

.timer {
  border-radius: 50%;
  height: 5rem;
  overflow: hidden;
  position: absolute;
  width: 5rem;
  transform: rotate(180deg);  /*ADDED */
}

.timer:after {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  display: block;
  height: 4rem;
  left: 0.5rem;
  position: absolute;
  width: 4rem;
  top: 0.5rem;
}

.timer .hand {
  float: left;
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 50%;
}

.timer .hand span {
  border: 3.125rem solid rgba(101, 138, 179, .7);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  display: block;
  height: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(225deg);  /* formerly 225deg */
  width: 0;
}

.timer .hand:first-child {
  transform: rotate(180deg); /* formerly 180deg */
}

.timer .hand span {
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.timer .hand:first-child span {
  animation-name: spin1;
}

.timer .hand:last-child span {
  animation-name: spin2; 
}

.timer.hour {
  background: rgba(180, 180, 180, .1);
  height: 20rem;
  left: 0;
  width: 20rem;
  top: 0;
}

.timer.hour .hand span {
 /* animation-duration: 3600s; */
  border-top-color: rgba(101, 138, 179, .7);
  border-right-color: rgba(101, 138, 179, .7);
  border-width: 10rem;
}

.timer.hour:after {
  height: 18rem;
  left: 1rem;
  width: 18rem;
  top: 1rem;
}

.timer.minute {
  background: rgba(180, 180, 180, .2);
  height: 17.5rem;
  left: 1.25rem;
  width: 17.5rem;
  top: 1.25rem;
}

.timer.minute .hand span {
  animation-duration: 60s; 
  border-top-color: rgba(74, 109, 150, .9);
  border-right-color: rgba(74, 109, 150, .9);
  border-width: 8.75rem;
}

.timer.minute:after {
  height: 15.5rem;
  left: 1rem;
  width: 15.5rem;
  top: 1rem;
}

.face {
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  height: 14.8rem;
  left: 2.6rem;
  padding: 10.3125rem 2.5rem 0;
  position: absolute;
  width: 14.8rem;
  text-align: center;
  top: 2.6rem;
}

.face h6 {
  font-weight: 300; 
  margin: 0;
}

.face p {
  border-radius: 1rem;
  font-size: 2.8rem;
  font-weight: 400;
  position: absolute;
  top: 0.85rem;
  width: 13rem;
  left: 1rem;
  margin-top:4rem;
  font-family: "Barlow-Medium";
}

.paused_gone{
    -webkit-animation-play-state:paused !important;
    -moz-animation-play-state:paused !important;
    -o-animation-play-state:paused !important; 
    animation-play-state:paused !important;
    display:none;
}



/* ORIGINAL
@keyframes spin1 {
  0% {
    transform: rotate(225deg);
  }
  50% {
    transform: rotate(225deg);
  }
  100% {
    transform: rotate(405deg);
  }
}

@keyframes spin2 {
  0% {
    transform: rotate(225deg);
  }
  50% {
    transform: rotate(405deg);
  }
  100% {
    transform: rotate(405deg);
  }
}

*/

@keyframes spin1 {
  0% {
    transform: rotate(405deg);
  }
  50% {
    transform: rotate(405deg);
  }
  100% {
    transform: rotate(225deg);
  }
}

@keyframes spin2 {
  0% {
    transform: rotate(405deg);
  }
  50% {
    transform: rotate(225deg);
  }
  100% {
    transform: rotate(225deg);
  }
}
