.flipdown {
  /* font-size: 8rem; */
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 8px;
  border-radius: 8px;
  perspective: 1000px; /* Enable 3D effect */
  gap: 5px; /* Add spacing between digits */
}

.flipdown .digit {
  position: relative;
  display: inline-block;
  width: 1.15ch; /* Fixed width based on digit size */
  height: 1.5em; /* Adjust height for a more proportional look */
  overflow: hidden;
  border-radius: 16px;
  margin: 4px;
}

.flipdown .digit span {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  line-height: 1.5em; /* Vertically align text */
  text-align: center;
  backface-visibility: hidden;
  transform-origin: top;
  font-weight: bold;
}

.flipdown .digit .top {
  border-bottom: 1px solid #ddd;
  z-index: 1;
  transform: rotateX(0);
  transition: transform 0.4s ease-in-out;
}

.flipdown .digit .bottom {
  transform: rotateX(90deg);
  transition: transform 0.4s ease-in-out;
}
