@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeuePro-Bold.ttf") format('truetype');
  font-weight: normal;
}

:root {
  --clockheight: 54px;
  --rotationtime: 0.55s;
}

.countdown-timer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 12px;
  height: var(--clockheight);
  padding-bottom: 12px;
}
.countdown-timer .flipper {
  /*   border: 1px solid #c00; */
  position: relative;
  width: 100%;
  min-width: 37px;
  max-width: 37px;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1600px;
}
.countdown-timer .flipper .gear {
  position: absolute;
  top: 50%;
  width: 1px;
  height: calc(var(--clockheight) / 6);
  background: #4A4A4A;
  z-index: 99;
  transform-style: preserve-3d;
  transform: translateZ(10px) translate(0 , -50%);
  border-bottom-right-radius: 0.5px;
  border-top-right-radius: 0.5px;
}
.countdown-timer .flipper .gear:nth-child(2) {
  left: calc(100% - 1px);
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0.5px;
  border-top-left-radius: 0.5px;
}
.flipper-wrapper {
  position: relative;
}
.countdown-timer .flipper-wrapper span {
  font-family: 'Bebas Neue', sans-serif;
  color: #4A4A4A;
  font-size: 13px;
  line-height: 1em;
  font-weight: normal;
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translate(-50%, 0);
  text-transform: uppercase;
}
.countdown-timer .flipper .top,
.countdown-timer .flipper .bottom {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.countdown-timer .flipper .top {
  /*   border: 1px solid #c00; */
  position: relative;
  width: 100%;
  height: calc(50% - 1px);
  margin-top: 0;
  margin-bottom: 1px;
  background-image: url("../img/clock-top.jpg");
}
.countdown-timer .flipper .bottom {
  position: relative;
  /*   border: 1px solid green; */
  width: 100%;
  height: calc(50% - 1px);
  margin-top: 1px;
  margin-bottom: 0;
  background-image: url("../img/clock-bottom.jpg");
}
.countdown-timer .flipper .text {
  font-size: 30px;
  font-family: 'Bebas Neue', sans-serif;
  display: block;
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  line-height: 1.4em;
  letter-spacing: 0;
  text-align: center;
  color: #4A4A4A;
}
.countdown-timer .flipper .bottom .text {
  line-height: 0em;
}
.countdown-timer .flipper .top.new,
.countdown-timer .flipper .bottom.new {
  position: absolute;
  left: 0;
  z-index: 12;
  /*   background: green; */
}
.countdown-timer .flipper .top.new {
  top: 0;
  z-index: 1;
}
.countdown-timer .flipper .top.new .text {
  backface-visibility: hidden;
}

.countdown-timer .flipper .bottom.new {
  /*   background: red; */
  position: absolute;
  top: 0;
  height: calc(100%);
  margin-top: 0;
  transform: rotateX(0.5turn);
  /*   backface-visibility: hidden; */
  z-index: 1;
  opacity: 0;

  margin-bottom: 1px;
}
.countdown-timer .flipper.flipping .top.new {
  transform-origin: bottom center;
  /*   transform: rotateX(-180deg) translateY(-10px); */
  animation: rotate var(--rotationtime) 1 ease-in-out forwards;
}
.countdown-timer .flipper.flipping .bottom.new {
  animation: rotatebottom var(--rotationtime) 1 ease-in-out forwards;
}
@keyframes rotatebottom {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rotate {
  0% {
    transform: rotateX(0);
    top: 0;
  }
  25% {
    transform: rotateX(-90deg);
  }
  100% {
    transform: rotateX(-180deg);
    top: 1px;
  }
}

.coundown-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  margin-bottom: 15px;
}

@media (max-width: 991px) {
  .coundown-wrapper {
    justify-content: flex-start;
  }
}

.coundown-wrapper.centered {
  justify-content: center;
}

.coundown-title {
  font-family: 'PT Sans', sans-serif;
  color: #4A4A4A;
  font-size: 16px;
  font-weight: 700;
  margin-right: 20px;
  padding-bottom: 12px;
}

.flipper-wrapper:not(:last-child) .flipper:before, .flipper-wrapper:not(:last-child) .flipper:after {
  content: '';
  position: absolute;
  left: unset;
  right: -7px;
  width: 3px;
  height: 3px;
  background: #4A4A4A;
  border-radius: 50%;
}

.flipper:before {
  top: 35%;
  transform: translate(0, -50%);
}

.flipper:after {
  bottom: 35%;
  transform: translate(0, 50%);
}

/** 30.09.2021 **/
.header-info .countdown-timer {height: 28px;padding-bottom: 0;}
.header-info .countdown-timer .flipper {min-width: 27px;max-width: 27px;height: 28px;}
.header-info .countdown-timer .flipper .text {font-size: 22px;color: #ffffff;}
.header-info .countdown-timer .flipper .gear {background: #ffffff;}
.header-info .flipper-wrapper:not(:last-child) .flipper:before, 
.header-info .flipper-wrapper:not(:last-child) .flipper:after {background: #ffffff;}
.header-info .countdown-timer .flipper .top {background-image: url('../img/clock-bg-top.svg');}
.header-info .countdown-timer .flipper .bottom {background-image: url('../img/clock-bg-bottom.svg');}
.header-info .countdown-timer .flipper-wrapper {height: 28px;}
.header-info .countdown-timer .flipper-wrapper span {display: none;}

@media (max-width: 767px) {
    .header-info .countdown-timer {display: none;}
}