@import url('https://fonts.googleapis.com/css?family=Merriweather:700');
@import url('https://fonts.googleapis.com/css?family=Bangers&display=swap');

*, *:before, *:after {
  box-sizing: border-box;
}
body {
  margin: 0px;
  background-color: black;
  color: #bae536;
  background-image: url("bg_kermit.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
}
h1 {
  font-size: 48px;
}
h1.title {
  font-size: 72px;
  letter-spacing: 3px;
  font-family: 'Bangers', cursive;
}
div.main {
  height:100vh;
  padding-top: 5vh;
  text-align: center;
  font-family: 'Merriweather', serif;
}


.clock {
  border-radius: 50%;
  background: #fff url(ios_clock.svg) no-repeat center;
  background-size: 88%;
  height: 20rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 20rem;
}

.clock.simple:after {
  background: #000;
  border-radius: 50%;
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5%;
  height: 5%;
  z-index: 10;
}

.minutes-container, .hours-container, .seconds-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hours {
  background: #000;
  height: 25%;
  left: 48.75%;
  position: absolute;
  border-radius: 10px;
  top: 25%;
  transform-origin: 50% 100%;
  width: 2.5%;
}

.minutes {
  background: #000;
  height: 35%;
  left: 49%;
  position: absolute;
  top: 15%;
  transform-origin: 50% 100%;
  border-radius: 10px;
  width: 2%;
}

.seconds {
  height: 45%;
  left: 49.5%;
  position: absolute;
  top: 14%;
  transform-origin: 50% 80%;
  width: 1%;
  background-color: red;
  z-index: 8;
}

@keyframes rotate {
  100% {
    transform: rotateZ(360deg);
  }
}
.hours-container {
  animation: rotate 43200s infinite linear;
}
.minutes-container {
  transition: transform 0.3s cubic-bezier(.4,2.08,.55,.44);
}
.seconds-container {
  transition: transform 0.2s cubic-bezier(.4,2.08,.55,.44);
}