* {
  padding: 0;
  margin: 0;
  font-family: "Gill Sans", sans-serif;
  box-sizing: border-box;
}

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

.clock {
  height: 40vw;
  width: 40vw;
  background-color: rgb(32, 39, 45);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 1px 2px 10px rgba(15, 142, 3, 0.406), -1px -2px 10px rgba(4, 152, 11, 0.8);
}

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

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

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

.digital {
  width: 30%;
  height: 10%;
  bottom: 27%;
  position: absolute;
  background: 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: 2vw;
  color: white;
}

.hour {
  color: aqua;
}

.min {
  color: rgb(0, 255, 98);
}

.sec {
  color: rgb(166, 255, 0);
}

.hour-hand,
.min-hand,
.sec-hand {
  position: absolute;
  background-color: black;
  border-radius: 20%;
  transform-origin: bottom;
}

.hour-hand {
  height: 25%;
  width: 2%;
  top: 25%;
  background-color: aqua;
}

.min-hand {
  height: 30%;
  width: 1.5%;
  top: 20%;
  background-color: rgb(0, 255, 98);
}

.sec-hand {
  height: 35%;
  width: 1.2%;
  top: 15%;
  background-color: rgb(166, 255, 0);
}

/* Responsive design for mobile screens */
@media (max-width: 760px) {
  .clock {
      height: 80vw;
      width: 80vw;
  }

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

  .digital {
      font-size: 4vw;
      bottom: 20%;
  }

  .hour-hand {
      height: 25%;
      width: 2.5%;
  }

  .min-hand {
      height: 30%;
      width: 2%;
  }

  .sec-hand {
      height: 35%;
      width: 1.8%;
  }
}
