/**
 * The following styles get applied both on the front of your site
 * and in the editor.
 *
 * Replace them with your own styles or remove the file completely.
 */


.the-countdown {
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.tc-textCenter {
    text-align: center;
}

.tc-error {
    border: 1px solid #ffa601;
    border-left-width: 7px;
    padding: 15px;
    border-radius: 2px;
    text-align: initial;
}

.tc-label {
	display: block;
	font-size: small;
}

.tc-template-default {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	justify-content: center;
}
.tc-template-default > span {
	text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    line-height: normal;
}


.tc-template-scoreboard {
	padding: 0;
	margin: 0 auto;
	list-style: none;
	display: flex;
	justify-content: center;
}
.tc-template-scoreboard > span {
	padding: 8px;
	flex-basis: 20%;
}
.tc-template-scoreboard > span > span {
	text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    line-height: normal;
}
.tc-template-scoreboard span.label {
	padding: 5px 0;
	text-transform: uppercase;
	border-radius: 5px 5px 0 0;
}
.tc-template-scoreboard span.amount {
	padding: 10px 0;
	border-radius: 0 0 5px 5px;
}
.tc-template-scoreboard > span > span > span {
    padding: 0 10px;
}



/****** FLIP */
.tc-template-flip {
	margin: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.flipUnitContainer {
  display: block;
  position: relative;
  perspective-origin: 50% 50%;
  perspective: 300px;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0px 10px 10px -10px grey;
  margin-bottom: 0.5rem;
}

.upperCard, .lowerCard {
  display: flex;
  position: relative;
  justify-content: center;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border: 1px inset rgba(0,0,0,0.01);
}

.upperCard {
  align-items: flex-end;
  border-bottom: 0.5px solid rgba(255,255,255,0.3);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.upperCard span {
  transform: translateY(50%);
}

.lowerCard {
  align-items: flex-start;
  border-top: 0.5px solid rgba(255,255,255,0.3);
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.lowerCard span {
  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.unfold {
  top: 50%;
  align-items: flex-start;
  transform-origin: 50% 0%;
  transform: rotateX(180deg);
  background-color: white;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  border: 0.5px solid rgba(255,255,255,0.3);
  border-top: 0.5px solid rgba(0,0,0,0.01);
}
.flipCard.unfold span {
  transform: translateY(-50%);
}
.flipCard.fold {
  top: 0%;
  align-items: flex-end;
  transform-origin: 50% 100%;
  transform: rotateX(0deg);
  background-color: white;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  border: 0.5px solid rgba(255,255,255,0.3);
  border-bottom: 0.5px solid rgba(0,0,0,0.01);
}
.flipCard.fold span {
  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;
  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;
  transform-style: preserve-3d;
}

@-webkit-keyframes fold {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-180deg);
  }
}

@keyframes fold {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-180deg);
  }
}
@-webkit-keyframes unfold {
  0% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}
@keyframes unfold {
  0% {
    transform: rotateX(180deg);
  }
  100% {
    transform: rotateX(0deg);
  }
}


/** CIRCULAR **/
.tc-template-circular {
	margin: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}
.circular-container {
	position: relative;
	height: 100px;
	width: 100px;
	display: block;
	text-align: center;
}

.circular-container > span {
    display: inline-block;
    line-height: 100px;
    width: 100px;
    position: absolute;
    top: 0;
    left: 0;
}

.circular-container svg {
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	transform: rotateY(-180deg) rotateZ(-90deg);
}

.circular-container svg.fill circle {
	stroke-dasharray: 283px;
	stroke-dashoffset: 0px;
	stroke-linecap: round;
	stroke-width: 10px;
	stroke: #92ef92;
	fill: none;
		
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-fill-mode: forwards;
}
.circular-container svg.fill-seconds circle {
	animation-duration: 60s;
	animation-name: countdown-seconds;
}
.circular-container svg.fill-minutes circle {
	animation-duration: 3600s;
	animation-name: countdown-minutes;
}
.circular-container svg.fill-hours circle {
	animation-duration: 2592000s;
	animation-name: countdown-hours;
}
.circular-container svg.fill-days circle {
	animation-duration: 31536000s;
	animation-name: countdown-days;
}
.circular-container svg.shadow circle {
	stroke-dashoffset: 0px;
	stroke-linecap: round;
	stroke-width: 10px;
	stroke: #f2f2f2;
	fill: none;
}

@keyframes countdown-seconds {
	from { stroke-dashoffset: 0px; }
	to { stroke-dashoffset: 283px; } /* Length = 2πr = 2 * π * 45 = 282,6 */
}
@keyframes countdown-minutes {
	from { stroke-dashoffset: 0px; }
	to { stroke-dashoffset: 0; } /* Length = 2πr = 2 * π * 45 = 282,6 */
}
/* Length = 2πr = 2 * π * 45 = 282,6  */