.counter-group {
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.counter-group:before,
.counter-group:after {
content: " ";
display: table;
}
.counter-group:after {
clear: both;
}
.counter-block {
float: left;
margin-right: 30px;
}
.counter-block:last-child {
margin-right: 0;
}
.counter-block .counter {
position: relative;
width: 89px;
height: 50px;
overflow: hidden;
/*! font-family: Iceberg, sans-serif; */
}
.counter-block .counter .number {
padding: 1%;
width: 40px;
height: 50px;
background-color: #222;
color: #000;
position: absolute;
font-size: 180px;
line-height: 50px;
top: -10000px;
background-image: -moz-linear-gradient( -58deg, rgb(222,252,190) 0%, rgb(226,247,254) 100%);
background-image: -webkit-linear-gradient( -58deg, rgb(222,252,190) 0%, rgb(226,247,254) 100%);
background-image: -ms-linear-gradient( -58deg, rgb(222,252,190) 0%, rgb(226,247,254) 100%);
font-size: 24px;
}
.counter-block .counter .number.tens {
left: 0;
}
.counter-block .counter .number.units {
left: 55%;
}
.counter-block .counter .number.hundreds {
display: none;
}
.counter-block .counter .number.show {
top: 0;
z-index: 2;
}
.counter-block .counter .number.hidden-down {
top: 100%;
}
.counter-block .counter .number.hidden-up {
top: -100%;
z-index: 100;
}
.counter-block .counter.with-hundreds {
width: 140px;
}
.counter-block .counter.with-hundreds .number {
width: 30.66%;
}
.counter-block .counter.with-hundreds .number.tens {
left: 36.33%;
}
.counter-block .counter.with-hundreds .number.units {
left: 71.66%;
}
.counter-block .counter.with-hundreds .number.hundreds {
display: block;
left: 0;
}
.counter-block .counter-caption {
font-size: 20px;
margin-top: 15px;
text-transform: capitalize;
}
@media (max-width: 992px) {
.counter-group {
margin: 10px auto;
}
.counter-block {
margin-right: 10px;
}
.counter-block .counter {
width: 120px;
height: 90px;
overflow: hidden;
font-weight: 700;
}
.counter-block .counter .number {
font-size: 108px;
line-height: 90px;
}
.counter-block .counter.with-hundreds {
width: 180px;
}
.counter-block .counter-caption {
font-size: 100%;
}
}
@media (max-width: 768px) {
.counter-group {
margin: 0 auto;
}
.counter-block {
margin-right: 8px;
}
.counter-block .counter {
width: 96px;
height: 80px;
}
.counter-block .counter .number {
font-size: 86px;
line-height: 72px;
}
.counter-block .counter.with-hundreds {
width: 144px;
}
.counter-block .counter-caption {
font-size: 85%;
}
}
@media (max-width: 480px) {
.counter-block .counter {
width: 70px;
height: 50px;
}
.counter-block .counter .number {
font-size: 55px;
line-height: 50px;
}
.counter-block .counter.with-hundreds {
width: 91px;
}
.counter-block .counter-caption {
font-size: 70%;
}
}