@keyframes flip-top {
  to {
    transform: rotateX(90deg);
  }
}
@keyframes flip-bottom {
  to {
    transform: rotateX(0deg);
  }
}


main {
  display: flex;
  flex-direction: column;
  margin: 0;
}
main .cards-countDown {
  display: flex;
  gap: 15px;
}
main .cards-countDown .cardC{
  text-align: center;
  font-size: 25px;
}
main .cards-countDown .cardC p {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-family: 'poppins';
  font-weight: 700;
}
main .cards-countDown .cardC .flip-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0px 6px 8px #0000005c;
  position: relative;
  margin: 15px auto;
}
main .cards-countDown .cardC .top-half,
main .cards-countDown .cardC .bottom-half,
main .cards-countDown .cardC .top-flip,
main .cards-countDown .cardC .bottom-flip {
  color: #205aa8;
  font-size: 35px;
  height: 43px;
  width: 77px;
  padding: 23px 7px;
  overflow: hidden;
  text-align: center;
  will-change: transform !important;
  box-shadow: 0 3px rgba(71, 83, 115, 0.2) inset;
}
main .cards-countDown .cardC .top-half,
main .cards-countDown .cardC .top-flip {
  color: #205aa8;
  border-radius: 5px 5px 0 0;
  background-color: #fdfdfd;
  font-family: 'poppins';
  font-weight: 800;
}
main .cards-countDown .cardC .top-half::before,
main .cards-countDown .cardC .top-flip::before {
  content: "";
  background-color: #191a24;
  height: 10px;
  width: 10px;
  border-radius: 100%;
  position: absolute;
  bottom: -5px;
  left: -5px;
}
main .cards-countDown .cardC .top-half::after,
main .cards-countDown .cardC .top-flip::after {
  content: "";
  background-color: #191a24;
  height: 10px;
  width: 10px;
  border-radius: 100%;
  position: absolute;
  bottom: -5px;
  right: -5px;
}
main .cards-countDown .cardC .bottom-half,
main .cards-countDown .cardC .bottom-flip {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-radius: 0 0 5px 5px;
  background-color: #ffffff;
  box-shadow: 0 -2px 5px 0 rgb(71 83 115 / 22%) inset;
  font-family: 'poppins';
  font-weight: 800;
}
main .cards-countDown .cardC .bottom-half::before,
main .cards-countDown .cardC .bottom-flip::before {
  content: "";
  background-color: #191a24;
  height: 10px;
  width: 10px;
  border-radius: 100%;
  position: absolute;
  top: -5px;
  left: -5px;
}
main .cards-countDown .cardC .bottom-half::after,
main .cards-countDown .cardC .bottom-flip::after {
  content: "";
  background-color: #191a24;
  height: 10px;
  width: 10px;
  border-radius: 100%;
  position: absolute;
  top: -5px;
  right: -5px;
}
main .cards-countDown .cardC .top-flip {
  position: absolute;
  transform-origin: bottom;
  transform: rotateX(0deg);
  animation: flip-top 0.5s ease-in forwards;
}
main .cards-countDown .cardC .bottom-flip {
  position: absolute;
  bottom: 0;
  transform-origin: top;
  transform: rotateX(90deg);
  animation: flip-bottom 0.5s ease-out 0.5s;
}
@media screen and (min-width: 700px) {
  main h1 {
    font-size: 31px;
  }
  main .cards-countDown {
    gap: 25px;
  }
  main .cards-countDown .top-half,
main .cards-countDown .bottom-half,
main .cards-countDown .top-flip,
main .cards-countDown .bottom-flip {
  font-size: 52px !important;
  height: 42px !important;
  width: 101px !important;
  padding: 3px 5px !important;
  }
}