body {
  background: #444;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(800px, 1fr));
  grid-gap: 5px;
  text-align: center;
}

#grid > div {
  font-size: 30px;
  padding: 0.5em;
  color: #ffffff;
  background: #1c87c9;
  text-align: center;
}

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

.countDown__cont {
  font-family: Lato, Arial, Gadget, sans-serif;
  font-size: 13px;
  display: flex;
  color: #333;
}
.countDown__interval_cont {
  display: flex;
  justify-content: space-around;
  width: auto;
}
.countDown__interval_cont:nth-child(n + 1):not(:last-child) {
  margin-right: 1em;
}
.countDown__interval_basic_cont {
  display: flex;
  flex-direction: column;
}
.countDown__interval_basic_cont_description {
  display: flex;
  margin-left: 0.3em;
  margin-top: 0.3em;
  font-size: 1.2em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0.1em 0.1em 0.1em #000;
}
.countDown__digit_cont {
  perspective: 1.6em * 2;
  box-shadow: 0.1em 0.1em 0.1em rgba(0, 0, 0, 0.2);
  width: 1em;
  height: 1.6em;
  position: relative;
  line-height: 1.6em;
  font-size: 5em;
  font-weight: 700;
  border-radius: 0.08em;
}
.countDown__digit_cont:nth-child(n + 1):not(:last-child) {
  margin-right: 0.05em;
}
.countDown__digit_last_placeholder,
.countDown__digit_new_placeholder {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  text-align: center;
  overflow: hidden;
}
.countDown__digit_last_placeholder {
  bottom: 0;
  background: #fff;
  border-radius: 0 0 0.08em 0.08em;
}
.countDown__digit_last_placeholder_inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 50%;
  position: absolute;
}
.countDown__digit_new_placeholder {
  top: 0;
  background: #f7f7f7;
  border-radius: 0.08em 0.08em 0 0;
}
.countDown__digit_last_rotate,
.countDown__digit_new_rotate {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 50%;
  font-weight: 700;
  position: absolute;
  top: 0;
  overflow: hidden;
  animation-duration: 0.4s;
  animation-timing-function: linear;
  border-radius: 0.08em 0.08em 0 0;
  animation-fill-mode: forwards;
  transform-origin: 100% 100%;
}
.countDown__digit_last_rotate:after,
.countDown__digit_new_rotate:after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-bottom: 0.01em solid rgba(0, 0, 0, 0.1);
}
.countDown__digit_last_rotate {
  animation-name: countDown_flip_1;
  background: #f7f7f7;
}
.countDown__digit_new_rotate {
  animation-name: countDown_flip_2;
  background: #fff;
}
.countDown__digit_new_rotated {
  transform: rotateX(180deg);
  width: 100%;
  height: 100%;
}
.countDown__digit_new_rotated_inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 50%;
  position: absolute;
}
@keyframes countDown_flip_1 {
  0% {
    transform: rotateX(0);
    z-index: 1;
  }
  100% {
    transform: rotateX(-180deg);
    z-index: 0;
  }
}
@keyframes countDown_flip_2 {
  0% {
    transform: rotateX(0);
    z-index: 0;
  }
  100% {
    transform: rotateX(-180deg);
    z-index: 1;
  }
}

#dates-hint {
  font-size: smaller;
  float: right;
  margin-right: 15px;
  position: relative;
  bottom: 10px;
}