* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: black;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


.clock {
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background-color: rgb(32, 39, 45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 1px 2px 10px rgba(55, 167, 130, 0.8), -1px -2px 10px rgba(52, 171, 136, 0.8);
}

.num {
  position: absolute;
  color: white;
  inset: 20px;
  text-align: center;
  transform: rotate(calc(30deg*var(--v)))
}

.num b {
  transform: rotate(calc(-30deg*var(--v)));
  display: inline-block;
  font-size: 25px;
}

.dot {
  position: absolute;
  height: 8%;
  width: 8%;
  border-radius: 50%;
  background-color: rgb(32, 39, 45);
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.8), -1px -2px 10px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.digi-clock {
  position: absolute;
  background-color: yellow;
  width: 30%;
  height: 10%;
  bottom: 27%;
  background-color: transparent;
  box-shadow: inset 1px 2px 10px rgba(0, 0, 0, 0.8), -1px -2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8%;
  font-size: 22px;
  color: aliceblue;
}

.dh {
  color: rgb(72, 196, 218);
}

.dm {
  color: rgb(72, 218, 164);

}

.ds {
  color: rgb(218, 72, 121);

}


.hour-hand,
.min-hand,
.sec-hand {
  position: absolute;
  background-color: rgb(0, 0, 0);
  border-radius: 20px;
  transform-origin: bottom;
}

.hour-hand {
  width: 1%;
  height: 30%;
  top: 20.5%;
  background-color: rgb(72, 196, 218);
}

.min-hand {
  width: 1%;
  height: 35%;
  top: 15.5%;
  background-color: rgb(72, 218, 164);

}


.sec-hand {
  width: 1%;
  height: 40%;
  top: 10.5%;
  background-color: rgb(218, 72, 121);
}


@media (max-width:760px) {
  .clock {
    width: 80vw;
    height: 80vw;

  }

  .num b {
    font-size: 6vw;
  }

  .digi-clock {
    font-size: 3vw;
  }
}