/* Enjoy!!🍓 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #081b29;
  overflow: hidden;
  user-select: none;
}

.wrapper {
  position: relative;
  width: 500px;
  height: 600px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  animation: colorful 30s linear infinite;
}

@keyframes colorful {
  100% {
    filter: hue-rotate(360deg);
  }
}

.bar-seconds,
.number-hours {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.bar-seconds span {
  position: absolute;
  transform: rotate(calc(var(--index) * 6deg));
  inset: -20px;
  text-align: center;
}

.bar-seconds span p {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: rgb(179, 255, 0);
  border-radius: 2px;
  box-shadow: 0 0 10px rgb(179, 255, 0);
}

.bar-seconds span:nth-child(5n) p {
  width: 6px;
  height: 15px;
  transform: translateY(1px);
}

.number-hours span {
  position: absolute;
  transform: rotate(calc(var(--index) * 30deg));
  inset: 6px;
  text-align: center;
}

.number-hours span p {
  font-size: 52px;
  color: rgb(179, 255, 0);
  text-shadow: 0 0 10px rgb(179, 255, 0);
  transform: rotate(calc(var(--index) * -30deg));
}

.hand-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hand-box .hand {
  position: absolute;
  border-radius: 50%;
  display: flex;
  justify-content: center;
}

.hand-box .hand i {
  display: inline-block;
  transform-origin: bottom;
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(179, 255, 0);
}

.hand-box .hours {
  width: 320px;
  height: 320px;
}

.hand-box .hours i {
  width: 8px;
  height: 160px;
  background: rgb(179, 255, 0);
}

.hand-box .minutes {
  width: 450px;
  height: 450px;
}

.hand-box .minutes::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background: rgb(179, 255, 0);
  border-radius: 50%;
  box-shadow: 0 0 5px rgb(179, 255, 0);
}

.hand-box .minutes i {
  width: 8px;
  height: 225px;
  background: rgb(179, 255, 0);
}

.hand-box .seconds {
  width: 480px;
  height: 480px;
}

.hand-box .seconds::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: rgb(179, 255, 0);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, -5);
}

.hand-box .seconds i {
  width: 4px;
  height: calc(240px + 70px);
  background: rgb(255, 255, 255);
}
