:root{
  --bg-half-top: #000;
  --bg-half-bottom: #000;
  --number-color: #fff;
  --text-color: #000;
  --shadow-card: #97979758;
  --line-separation: #000;
  --font-family-number: 'Tipografia-principal','sans-serif';
  --font-family-text: 'Tipografia-principal','sans-serif';
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.title {
  color: var(--text-color) !important;
  font-size: .9rem !important;
  text-transform: uppercase;
  font-family: var(--font-family-text);
}

.countdown-block {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  margin: 20px;
}

.time-elem {
  color: var(--number-color);
  position: relative;
  position: relative;
  height: 90px;
  width: 100px;
  background-color: var(--bg-half-bottom);
  border-radius: 50%;
  text-align: center;
  font-size: 3.5rem;
  font-family: var(--font-family-number);
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 99px;
  box-shadow: 0px 3px 10px var(--shadow-card);
}

.time-elem > span {
  position: absolute;
  left: 0px;
  right: 0px;
}

.top {
  z-index: 3;
  background-color: var(--bg-half-top);
  transform-origin: 50% 100%;
  transform: perspective(200px);
}

.time-elem .top::after, .time-elem .bottom-back::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-bottom: 1px solid var(--line-separation);
}

.bottom {
  z-index: 1;
}

.bottom-back {
  z-index: 2;
  top: 0;
  height: 50%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-half-top); 
}

.bottom-back span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.top, .top-back {
  height: 50%;
  width: 100%;
  overflow: hidden;
  backface-visibility: hidden;
}

.top-back {
  z-index: 4;
  bottom: 0;
  transform-origin: 50% 0;
  background-color: var(--bg-half-bottom);
  transform: perspective(200px) rotateX(180deg);
}

.top-back span {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  margin: auto;
}

@media only screen and (max-width: 768px) {
  .countdown-block {
      margin: 10px;
  }

  .title {
      font-size: .6rem !important;
  }

  .time-elem {
      height: 40px;
      width: 40px;
      font-size: 1.5rem;
      line-height: 46px;
      margin-bottom: 17px;
  }
}