body {
  font-family: Arial, sans-serif;
  background-color: #1a1f33; /* Dark blue background */
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 80%;
  max-width: 1200px;
}

.clock {
  background-color: #2a3550; /* Slightly lighter blue background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  width: 100%;
  max-width: 300px;
  flex-grow: 1;
}

h2 {
  margin-top: 0;
  font-size: 20px;
  color: white; /* Bright blue for headings */
}

p {
  font-size: 36px;
}

/* Media queries */
@media (min-width: 768px) {
  .container {
    justify-content: center;
  }

  .clock {
    width: calc(33.333% - 20px);
  }
}

@media (min-width: 1024px) {
  h2 {
    font-size: 30px;
  }

  p {
    font-size: 48px;
  }
}
.loader {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.hand {
  position: absolute;
  width: 50%;
  height: 2px;
  background: #3e81ff;
  top: 50%;
  transform-origin: 100%;
  animation: spin 1.5s linear infinite;
}

.hand:nth-child(2) {
  animation-duration: 3s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Added fade-in animation */
.time-display {
  opacity: 0;
  animation: fade-in 1.5s forwards;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* ... Existing CSS code ... */

.flip-effect {
  display: inline-block;
  transform-origin: center;
  animation: flip 0.1s linear;
}

@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}