@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2f363e;
}

#time {
  display: flex;
  gap: 40px;
  color: #fff;
}

#time .circle {
  position: relative;
  width: 30vw; /* Base size */
  height: 30vw; /* Base size */
  max-width: 150px; /* Max size for larger screens */
  max-height: 150px; /* Max size for larger screens */
  display: flex;
  justify-content: center;
  align-items: center;
}

#time .circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(270deg);
}

#time .circle svg circle {
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke: #191919;
  stroke-width: 4px;
  transform: translate(5px, 5px);
}

#time .circle svg circle:nth-child(2) {
  stroke: var(--color);
  stroke-dasharray: 440;
}

#time div {
  position: absolute;
  text-align: center;
  font-size: 1.5rem; /* Base font size */
  font-weight: 500;
}

#time div span {
  position: absolute;
  transform: translate(-50%, 0);
  font-size: 0.5rem; /* Base span size */
  font-weight: 300;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

#time .ap {
  position: relative;
  font-size: 1rem; /* Base size */
  transform: translate(-20px);
}

.dots {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.dots::before {
  content: '';
  position: absolute;
  top: -3px;
  width: 15px;
  height: 15px;
  background: var(--color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color), 0 0 60px var(--color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #time {
    flex-direction: column; /* Stack circles vertically */
    gap: 20px;
  }

  #time .circle {
    width: 40vw; /* Adjust size for smaller screens */
    height: 40vw; /* Adjust size for smaller screens */
  }

  #time div {
    font-size: 1.2rem; /* Adjust font size */
  }
}

@media (max-width: 480px) {
  #time .circle {
    width: 50vw; /* Further adjust size for small screens */
    height: 50vw; /* Further adjust size for small screens */
  }

  #time div {
    font-size: 1rem; /* Further adjust font size */
  }

  #time div span {
    font-size: 0.4rem; /* Adjust span font size */
  }
}

@media (max-width: 320px) {
  #time .circle {
    width: 70vw; /* Increase size for very small devices */
    height: 70vw; /* Increase size for very small devices */
  }

  #time div {
    font-size: 0.8rem; /* Smaller font size for tiny screens */
  }

  #time div span {
    font-size: 0.3rem; /* Adjust span font size for very small screens */
  }
}

@media (max-width: 240px) {
  #time .circle {
    width: 80vw; /* Max size for ultra-small devices */
    height: 80vw; /* Max size for ultra-small devices */
  }

  #time div {
    font-size: 0.7rem; /* Further reduce font size */
  }

  #time div span {
    font-size: 0.25rem; /* Further reduce span font size */
  }
}
