
/* Rest of your existing CSS remains the same */
/* Flag waving animation */
.waving-flag {
  display: inline-block;
  animation: wave 2s infinite ease-in-out;
  transform-origin: bottom left;
}
@keyframes wave {
  0% { transform: rotateZ(0deg); }
  25% { transform: rotateZ(1.5deg); }
  50% { transform: rotateZ(-1.5deg); }
  75% { transform: rotateZ(1.5deg); }
  100% { transform: rotateZ(0deg); }
}



.time-box {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  color: #333;
  background: #f1f1f1;
  padding: 0.6rem 1.2rem;
  border-radius: 1rem;
  display: inline-block;
  animation: fade 0.5s ease-in-out;
}


.analog-clock {
  width: 200px;
  height: 200px;
  border: 6px solid #4169ed;
  border-radius: 50%;
  margin: 20px auto;
  position: relative;
  background: white;
}

.clock-center {
  width: 12px;
  height: 12px;
  background: #4169ed;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 10;
}

.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 2px;
}

.hour-hand {
  width: 6px;
  height: 50px;
  background: #ff901d;
  z-index: 3;
}

.minute-hand {
  width: 4px;
  height: 70px;
  background: #ff901d;
  z-index: 2;
}

.second-hand {
  width: 2px;
  height: 90px;
  background: #4169ed;
  z-index: 1;
}

/*
.number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  font-size: 14px;
  font-weight: bold;
}*/

.analog-clock .number {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 55%; /*55*/
  left: 0.7%; /*0.7*/   
  text-align: center;
  transform: rotate(calc(var(--n) * 30deg));
}

.analog-clock .number::after {
  content: attr(data-num);
  display: block;
  transform: rotate(calc(var(--n) * -30deg)) translateY(-105px);
  font-size: 1rem;
  font-weight: bold;
}



