@import url("https://fonts.googleapis.com/css?family=Droid+Sans+Mono");
.colock-container * {
  box-sizing: border-box;
}


.colock-container {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;

}


.flipClock {
  display: flex;
  justify-content: start;
  width: 100%;
}

.flipUnitContainer {
  display: block;
  position: relative;
  width: 55px;
  height: 75px;
  -webkit-perspective-origin: 50% 50%;
          perspective-origin: 50% 50%;
  -webkit-perspective: 300px;
          perspective: 300px;
  background-color: #74bb3f;
  border-radius: 3px;
  box-shadow: 0px 10px 10px -10px grey;
  margin-right: 10px;
}

.counter-label{
  margin-right: 10px;
  display: block;
  margin-bottom: 5px;
  text-align: center;
}
.upperCard, .lowerCard {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border: 1px solid #74bb3f;
}
.upperCard span, .lowerCard span {
  font-size: 25px;
  font-family: "Droid Sans Mono", monospace;
  font-weight: lighter;
  color: white;
}

.upperCard {
  align-items: flex-end;
  border-bottom: 0.5px solid #74bb3f;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  box-shadow: inset 0 1px #aad789, inset 0 1px 0 #8fca63;
}
.upperCard span {
  -webkit-transform: translateY(50%);
          transform: translateY(50%);
}

.lowerCard {
  align-items: flex-start;
  border-top: 0.5px solid #74bb3f;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.lowerCard span {
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.flipCard {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
.flipCard span {
  font-family: "Droid Sans Mono", monospace;
  font-size: 25px;
  font-weight: lighter;
  color: white;
}
.flipCard.unfold {
  top: 50%;
  align-items: flex-start;
  -webkit-transform-origin: 50% 0%;
          transform-origin: 50% 0%;
  -webkit-transform: rotateX(180deg);
          transform: rotateX(180deg);
  background-color: #74bb3f;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border: 0.5px solid #74bb3f;
  border-top: 0.5px solid #74bb3f;
}
.flipCard.unfold span {
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.flipCard.fold {
  top: 0%;
  align-items: flex-end;
  -webkit-transform-origin: 50% 100%;
          transform-origin: 50% 100%;
  -webkit-transform: rotateX(0deg);
          transform: rotateX(0deg);
  background-color: #74bb3f;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border: 0.5px solid #74bb3f;
  border-bottom: 0.5px solid #74bb3f;
}
.flipCard.fold span {
  -webkit-transform: translateY(50%);
          transform: translateY(50%);
}

.fold {
  -webkit-animation: fold 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s 1 normal forwards;
          animation: fold 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s 1 normal forwards;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

.unfold {
  -webkit-animation: unfold 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s 1 normal forwards;
          animation: unfold 0.6s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0s 1 normal forwards;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}

@-webkit-keyframes fold {
  0% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
  100% {
    -webkit-transform: rotateX(-180deg);
            transform: rotateX(-180deg);
  }
}

@keyframes fold {
  0% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
  100% {
    -webkit-transform: rotateX(-180deg);
            transform: rotateX(-180deg);
  }
}
@-webkit-keyframes unfold {
  0% {
    -webkit-transform: rotateX(180deg);
            transform: rotateX(180deg);
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}
@keyframes unfold {
  0% {
    -webkit-transform: rotateX(180deg);
            transform: rotateX(180deg);
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}


.late-counter .flipCard.fold {
  background-color: #800000;
  border: 0.5px solid #800000;
  border-bottom: 0.5px solid #800000;
}

.late-counter .flipCard.fold {
  background-color: #800000;
  border: 0.5px solid #800000;
  border-bottom: 0.5px solid #800000;
}


.late-counter .flipUnitContainer {
  background-color: #800000;
}
.late-counter .upperCard, .late-counter .lowerCard {
  border: 1px solid #800000;
}
.late-counter .upperCard {
  border-bottom: 0.5px solid #800000;
  box-shadow: inset 0 1px #bb0505, inset 0 1px 0 #920b0b;
}
.late-counter .lowerCard {
  border-top: 0.5px solid #800000;
}

.late-counter .flipCard.unfold {
  background-color: #800000;

  border: 0.5px solid #800000;
  border-top: 0.5px solid #800000 ;
}