
.flip-timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IranSansWebFaNum', sans-serif;
  direction: ltr;
  padding: 0;
  background: transparent;
}

.flip-unit-group {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.flip-unit {
  position: relative;
  width: 12px;
  height: 20px;
  perspective: 300px;
  margin: 0;
  overflow: hidden;
}

.flip-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #00A693;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  backface-visibility: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.flip-card.current {
  z-index: 2;
  transform-origin: top;
}

.flip-card.current .top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  background: #00A693;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 90%);
  overflow: hidden;
}

.flip-card.current .bottom {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 50%;
  background: #00A693;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  clip-path: polygon(0 10%, 100% 10%, 100% 100%, 0 100%);
  overflow: hidden;
}

.flip-unit.flipping .flip-card.current {
  transform: rotateX(90deg);
}

.flip-card.next {
  z-index: 1;
  transform: rotateX(0deg);
}

.flip-card.next .top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  background: #00A693;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 90%);
  overflow: hidden;
}

.flip-card.next .bottom {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 50%;
  background: #00A693;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  clip-path: polygon(0 10%, 100% 10%, 100% 100%, 0 100%);
  overflow: hidden;
}

.flip-unit.flipping .flip-card.next {
  z-index: 3;
}

.separator {
  color: #fff;
  font-size: 12px;
  margin: 0 4px;
}