.frame {
  background-color: #e8e8e8;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0em -1.2em 1.2em rgba(255, 255, 255, 0.06),
    inset 0em -1.2em 1.2em rgba(255, 255, 255, 0.06),
    0em 1.2em 1.2em rgba(0, 0, 0, 0.3), inset 0em 1.2em 1.2em rgba(0, 0, 0, 0.3);
}

.clock {
  width: 250px;
  height: 250px;
  color: #000;
  border-radius: 50%;
  position: relative;
}

.hand {
  position: absolute;
  right: 50%;
  bottom: 50%;
  width: 2%;
  height: 40%;
  background-color: var(--primary-color);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  transform: translate(50%);
  transform-origin: bottom;
}

.hour {
  width: 3%;
  height: 30%;
  background-color: black;
  transform: rotate(60deg);
}

.minute {
  transform: rotate(90deg);
}

.second {
  width: 1%;
  height: 45%;
  background-color: var(--secondary-color);
  transform: rotate(290deg);
}

.pin {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: black;
  border: 2px solid var(--secondary-color);
  right: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.number {
  font-size: 2rem;
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  transform: rotate(calc(var(--count) * 30deg));
  color: var(--main-text-color);
}

.number span {
  display: block;
  transform: rotate(calc(var(--count) * -30deg));
}

/* miscellaneous styles */

:root {
  --main-bg-color: #e5e5e5;
  --main-text-color: #828282;
  --primary-color: #3a3a3a;
  --secondary-color: #30bced;
}
 

.digital-clock {
  margin-top: 4rem;
  font-size: 2rem;
  font-weight: 300;
}
