@charset "UTF-8";
/* Horloge crée par @Max, disponible sur CodePen : https://codepen.io/MyXoToD/pen/psLen */
body {
  background-color: #451B2C;
}

.clock {
  position: relative;
  height: 200px;
  width: 200px;
  background: #f2f2f2;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 100%;
  border: 10px solid #C3D973;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.clock .top {
  position: absolute;
  width: 3px;
  height: 8px;
  background: #07112D;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.clock .right {
  position: absolute;
  width: 8px;
  height: 3px;
  background: #07112D;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto 0;
}

.clock .bottom {
  position: absolute;
  width: 3px;
  height: 8px;
  background: #07112D;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
}

.clock .left {
  position: absolute;
  width: 8px;
  height: 3px;
  background: #07112D;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto 0;
}

.clock .center {
  height: 6px;
  width: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #07112D;
  border-radius: 100%;
}

.clock .shadow {
  height: 200px;
  width: 200px;
  position: absolute;
  left: 60px;
  top: 60px;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.1)));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.clock .hour {
  width: 3px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-animation: time 9s infinite linear;
  animation: time 9s infinite linear;
}

.clock .hour:before {
  position: absolute;
  content: "";
  background: #07112D;
  height: 45px;
  width: 3px;
  top: 45px;
}

.clock .minute {
  width: 1px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-animation: time 1s infinite linear;
  animation: time 1s infinite linear;
}

.clock .minute:before {
  position: absolute;
  content: "";
  background: #07112D;
  height: 60px;
  width: 2px;
  top: 30px;
}

.clock .second {
  width: 2px;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  -webkit-animation: time 0.016s infinite linear;
  animation: time 0.016s infinite linear;
}

.clock .second:before {
  position: absolute;
  content: "";
  background: #fd1111;
  height: 45px;
  width: 1px;
  top: 45px;
}

@-webkit-keyframes time {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes time {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
