@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #d2dae2;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.analog-clock {
  width: 500px;
  height: 500px;
  background-color: white;
  border-radius: 50%;
  border: 15px ridge #485460;
  position: relative;
}

.analog-clock::before {
  content: "MUKESH__offll";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Bebas Neue", cursive;
  font-size: 25px;
  color: #485460;
}

.analog-clock::after {
  content: "";
  position: absolute;
  background-color: #485460;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.number {
  --degrotation: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 35px;
  transform: rotate(var(--degrotation));
}

.number-1 { --degrotation: 30deg; }
.number-2 { --degrotation: 60deg; }
.number-3 { --degrotation: 90deg; }
.number-4 { --degrotation: 120deg; }
.number-5 { --degrotation: 150deg; }
.number-6 { --degrotation: 180deg; }
.number-7 { --degrotation: 210deg; }
.number-8 { --degrotation: 240deg; }
.number-9 { --degrotation: 270deg; }
.number-10 { --degrotation: 300deg; }
.number-11 { --degrotation: 330deg; }
.number-12 { --degrotation: 0deg; }

.needle {
  --needle_rotation: 0;
  position: absolute;
  transform: translate(-50%) rotate(calc(var(--needle_rotation) * 1deg));
  transform-origin: bottom;
  z-index: 8;
  border: 2px solid black;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}

.hrs {
  background-color: black;
  width: 15px;
  height: 30%;
  left: 50%;
  bottom: 50%;
}

.min {
  background-color: black;
  width: 12px;
  height: 35%;
  left: 50%;
  bottom: 50%;
}

.sec {
  background-color: red;
  width: 6px;
  height: 45%;
  left: 50%;
  bottom: 50%;
}

@media (max-width: 576px) {
  .analog-clock {
    width: 400px;
    height: 400px;
  }
}
