body {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

* {
  box-sizing: border-box;
}
:root {
  --clock-width: 50px;
  --needle-height: 25px;
  --needle-width: 4px;
}

#box {
  display: flex;
  flex-direction: row;
  background-color: rgb(240, 240, 240);
  box-shadow: 10px 10px 20px rgb(0, 0, 0, 0.5),
    2px 2px 10px rgb(0, 0, 0, 0.5) inset;
  padding: 50px;
  border-radius: 10px;
}

#number {
  width: calc((var(--clock-width) * 4));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
}

.clock {
  height: var(--clock-width);
  width: var(--clock-width);
  background: radial-gradient(transparent 0 65%, rgba(0, 0, 0, 0.3) 40% 100%), linear-gradient(315deg, #cacaca, #f0f0f0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 50%;
  box-shadow: -20px -20px 46px #aaaaaa, 20px 20px 46px #ffffff;
}

.clock::after{
  content: '';
  position: absolute;
  height: 5px;
  aspect-ratio: 1;
  background-color: tomato;
  border-radius: 50%;
  z-index: 1000;
} 

.follower-clock{
  height: var(--clock-width);
  width: var(--clock-width);
  background: radial-gradient(transparent 0 65%, rgba(0, 0, 0, 0.3) 40% 100%), linear-gradient(315deg, #cacaca, #f0f0f0);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 50%;
  box-shadow: -20px -20px 46px #aaaaaa, 20px 20px 46px #ffffff;
}

.follower-clock .needle{
  transition: 0.5s ease;
}

.needle {
  position: absolute;
  z-index: 100;
  height: var(--needle-height);
  width: var(--needle-width);
  background-color: #000;
  transform-origin: bottom;
  border-radius: 10px;
  translate: 0 -50%;
  transition: 0.75s ease-in transform;
}

.needle:nth-child(1) {
  transform: rotate(-90deg);
}

.needle:nth-child(2) {
  transform: rotate(0deg);
}

#center{
  height: 10px;
  width: 10px;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
}


/* tablet View */


@media (max-width: 1024px) {
  :root {
    --clock-width: 17px;
    --needle-height: 10px;
    --needle-width: 3px;
  }
}
/* Mobile view */
@media (max-width: 600px) {
  :root {
    --clock-width: 10px;
    --needle-height: 5px;
    --needle-width: 2px;
  }
}
