.boardContainer {
  display: flex;
  justify-content: center;
}

.digitContainer {
  position: relative;
  margin: 0 7px;
  perspective: 300px;
}

.boardBg {
  width: 70px;
  height: 68px;
  object-fit: contain;
}

.boardShadow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54.73px;
  height: 0;
  box-shadow: 0px 0px 10px 0px rgb(248, 115, 76);
}

.digitFlipContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 31.38px;
  height: 49.87px;
  transform-style: preserve-3d;
}

.digit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgb(255, 215, 183);
  font-family: 'D-DIN';
  font-size: 50px;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
}

.prevDigit {
  transform: rotateX(0deg);
  animation: flipOut 0.5s forwards;
}

.flipIn {
  transform: rotateX(90deg);
  animation: flipIn 0.5s forwards;
  animation-delay: 0.15s;
}

@keyframes flipOut {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

@keyframes flipIn {
  0% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}

.leadingZero {
  opacity: 0.5;
} 