
.fzt-counter-box {
    position: relative;
    padding: 40px;
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 20px;
	flex-wrap: wrap;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.fzt-counter-box .fzt-counter-content-box .fzt-counter {
    display: inline-flex;
	align-items: flex-end;
    line-height: 1;
    font-weight: 600;
    font-size: var(--kidizro-h2-font-size);
    color: var(--kidizro-heading-color);
    font-family: var(--kidizro-h2-font-family);
    letter-spacing: -0.6px;
    position: relative;
    text-shadow: 0px 3px 8px rgba(var(--kidizro-heading-color-rgb), 0.2);
}

.fzt-counter-box .fzt-counter-content-box .fzt-counter-title {
    font-weight: 500;
	line-height: 1;
	margin: 0;
	color: var(--kidizro-primary-color);
    font-size: var(--kidizro-h5-font-size);
    font-family: var(--kidizro-h2-font-family);
}

/* Type 1 */

.fzt-counter-box.type-1 .fzt-counter-decor {
    display: inline-flex;
    position: absolute;
    width: 100%;
    height: 100%;
}

.fzt-counter-box.type-1 .fzt-counter-decor svg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2px;
    stroke-dasharray: 6, 6;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    fill: none;
    color: var(--kidizro-primary-color);
    -webkit-animation: dashed-animation 20s linear infinite paused;
    animation: dashed-animation 20s linear infinite paused;
    z-index: 0;
}

.fzt-counter-box.type-1:hover {
    background: rgba(var(--kidizro-primary-color-rgb), 0.05);
}

.fzt-counter-box.type-1:hover .fzt-counter-decor svg {
    animation-play-state: running;
}

.fzt-counter-box.type-1 .fzt-counter-image {
	position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--kidizro-primary-color);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.fzt-counter-box.type-1 .fzt-counter-image:before,
.fzt-counter-box.type-1 .fzt-counter-image:after {
    border-radius: inherit;
    content: "";
    display: inline-block;
    float: none;
    margin: auto;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.fzt-counter-box.type-1 .fzt-counter-image:before {
    border-style: dashed;
    border-width: 1px;
    border-color: var(--kidizro-border-light-color);
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
    z-index: 1;
}

.fzt-counter-box.type-1 .fzt-counter-image:after {
    border-style: dashed;
    border-width: 1px;
    border-color: var(--kidizro-primary-color);
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
    opacity: 0;
}

.fzt-counter-box.type-1:hover .fzt-counter-image:before {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
    border-color: var(--kidizro-light-color);
}

.fzt-counter-box.type-1:hover .fzt-counter-image:after {
    -webkit-transform: scale(1.15);
    transform: scale(1.15);
    opacity: 1;
}

.fzt-counter-box.type-1 .fzt-counter-image img {
    width: 80px;
    height: 80px;
    object-fit: scale-down;
    border: 1px dashed var(--kidizro-light-color);
    border-radius: inherit;
}

.fzt-counter-box.type-1:hover .fzt-counter-image img {
    border-style: hidden;
    animation-name: shake-animation;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
}

@-webkit-keyframes shake-animation {
    16.65% {
        transform: skew(-12deg);
    }
    33.3% {
        transform: skew(10deg);
    }
    
    49.95% {
        transform: skew(-6deg);
    }
    66.6% {
        transform: skew(4deg);
    }
    83.25% {
        transform: skew(-2deg);
    }
    100% {
        transform: skew(0);
    }
}

.fzt-counter-box.type-1 .fzt-counter-content-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
	width: 100%;
}

/* Type 2 */

.fzt-counter-box.type-2.shape1 {
	padding: 0 0 0 70px;
}

.fzt-counter-box.type-2.shape2 {
	padding: 0 0 0 50px;
}

.fzt-counter-box.type-2.shape1:before,
.fzt-counter-box.type-2.shape1:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    mask-position: center center;
    -webkit-mask-position: center center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    -webkit-transition: var(--transition);
        transition: var(--transition);
    z-index: 0;
}

@-webkit-keyframes animation-color {
	0% {
		background: var(--kidizro-primary-color);
	}
	30% {
		background: var(--kidizro-custom-color-1);
	}
	45% {
		background: var(--kidizro-custom-color-2);
	}
	60% {
		background: var(--kidizro-custom-color-3);
	}
	75% {
		background: var(--kidizro-custom-color-4);
	}
	85% {
		background: var(--kidizro-custom-color-5);
	}
	100% {
		background: var(--kidizro-primary-color);
	}
}

.fzt-counter-box.type-2.shape1:before {
    -webkit-mask-image: url(images/blob-1.gif);
    width: 55px;
    height: 43px;
    top: 0;
    -webkit-animation: animation-color 15s linear infinite both;
        animation: animation-color 15s linear infinite both;
}

.fzt-counter-box.type-2.shape1:before {
    background: var(--kidizro-primary-color);
}

.fzt-counter-box.type-2.shape1:after {
    -webkit-mask-image: url(images/blob-2.gif);
    width: 37px;
    height: 37px;
    background: var(--kidizro-border-light-color);
    bottom: -10px;
    right: 40px;
    left: auto;
    -webkit-animation: animation-color 10s linear infinite both reverse;
        animation: animation-color 10s linear infinite both reverse;
}

.fzt-counter-box.type-2 .fzt-counter-image {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
	height: 100%;
	margin: 0;
    padding: 0;
}

.fzt-counter-box.type-2 .fzt-counter-image img {
    position: relative;
    -webkit-mask-size: contain;
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

.fzt-counter-box.type-2.shape1 .fzt-counter-image img {
	-webkit-mask-image: url(images/counter-shape.svg);
	mask-image: url(images/counter-shape.svg);
}

.fzt-counter-box.type-2.shape2 .fzt-counter-image img {
	-webkit-mask-image: url(images/counter-shape-2.svg);
	mask-image: url(images/counter-shape-2.svg);
}

.fzt-counter-box.type-2 .fzt-counter-image:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
	background-color: var(--kidizro-primary-color);
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: center center;
    -webkit-mask-position: center center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    z-index: 1;
}

.fzt-counter-box.type-2.shape1 .fzt-counter-image:before {
	left: 15px;
	mask-image: url(images/counter-dotted-mask.svg);
    -webkit-mask-image: url(images/counter-dotted-mask.svg);
}

.fzt-counter-box.type-2.shape2 .fzt-counter-image:before {
	left: 5px;
    top: -20px;
	mask-image: url(images/counter-dotted-mask-2.svg);
    -webkit-mask-image: url(images/counter-dotted-mask-2.svg);
}

.fzt-counter-box.type-2 .fzt-counter-content-box {
	position: absolute;
    display: flex;
	flex-direction: column;
	align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 170px;
    height: 130px;
    left: 0;
    z-index: 1;
}

.fzt-counter-box.type-2.shape1 .fzt-counter-content-box {
    bottom: 100px;
}

.fzt-counter-box.type-2.shape2 .fzt-counter-content-box {
    bottom: 150px;
}

.fzt-counter-box.type-2 .fzt-counter-content-box:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
	background-color: var(--kidizro-body-background-color);
	mask-image: url(images/counter-content-mask.svg);
    -webkit-mask-image: url(images/counter-content-mask.svg);
    mask-size: 100% auto;
    -webkit-mask-size: 100% auto;
    mask-position: center center;
    -webkit-mask-position: center center;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    z-index: 0;
}

.fzt-counter-box.type-2 .fzt-counter-content-box:after {
	content: "";
    position: absolute;
    background-color: var(--kidizro-primary-color);
    -webkit-mask-image: url(images/counter-small-dotted-mask.png);
    -webkit-mask-size: cover;
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    z-index: 1;
}

.fzt-counter-box.type-2 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-primary-color);
    margin: 15px 0 0 0;
    text-shadow: none;
}

.fzt-counter-box.type-2 .fzt-counter-content-box .fzt-counter-title {
	position: relative;
    font-size: 12px;
    width: 100%;
    color: var(--kidizro-heading-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Kidizro Custom Colors */

.fzt-counter-box.type-1.fzt-custom-color-1:hover
{
    background: rgba(var(--kidizro-custom-color-1-rgb),0.05);
}

.fzt-counter-box.type-1.fzt-custom-color-2:hover
{
    background: rgba(var(--kidizro-custom-color-2-rgb),0.05);
}

.fzt-counter-box.type-1.fzt-custom-color-3:hover
{
    background: rgba(var(--kidizro-custom-color-3-rgb),0.05);
}

.fzt-counter-box.type-1.fzt-custom-color-4:hover
{
    background: rgba(var(--kidizro-custom-color-4-rgb),0.05);
}

.fzt-counter-box.type-1.fzt-custom-color-5:hover
{
    background: rgba(var(--kidizro-custom-color-5-rgb),0.05);
}

.fzt-counter-box.type-1.fzt-custom-color-1 .fzt-counter-decor svg
{
    color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-1.fzt-custom-color-2 .fzt-counter-decor svg
{
    color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-1.fzt-custom-color-3 .fzt-counter-decor svg
{
    color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-1.fzt-custom-color-4 .fzt-counter-decor svg
{
    color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-1.fzt-custom-color-5 .fzt-counter-decor svg
{
    color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-1.fzt-custom-color-1 .fzt-counter-content-box .fzt-counter-title
{
    color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-1.fzt-custom-color-2 .fzt-counter-content-box .fzt-counter-title
{
    color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-1.fzt-custom-color-3 .fzt-counter-content-box .fzt-counter-title
{
    color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-1.fzt-custom-color-4 .fzt-counter-content-box .fzt-counter-title
{
    color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-1.fzt-custom-color-5 .fzt-counter-content-box .fzt-counter-title
{
    color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-1.fzt-custom-color-1 .fzt-counter-image
{
    background-color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-1.fzt-custom-color-2 .fzt-counter-image
{
    background-color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-1.fzt-custom-color-3 .fzt-counter-image
{
    background-color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-1.fzt-custom-color-4 .fzt-counter-image
{
    background-color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-1.fzt-custom-color-5 .fzt-counter-image
{
    background-color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-1.fzt-custom-color-1 .fzt-counter-image:after {
    border-color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-1.fzt-custom-color-2 .fzt-counter-image:after {
    border-color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-1.fzt-custom-color-3 .fzt-counter-image:after {
    border-color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-1.fzt-custom-color-4 .fzt-counter-image:after {
    border-color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-1.fzt-custom-color-5 .fzt-counter-image:after {
    border-color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-2.fzt-custom-color-1 .fzt-counter-image:before {
    background-color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-2.fzt-custom-color-2 .fzt-counter-image:before {
    background-color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-2.fzt-custom-color-3 .fzt-counter-image:before {
    background-color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-2.fzt-custom-color-4 .fzt-counter-image:before {
    background-color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-2.fzt-custom-color-5 .fzt-counter-image:before {
    background-color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-2.fzt-custom-color-1 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-2.fzt-custom-color-2 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-2.fzt-custom-color-3 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-2.fzt-custom-color-4 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-2.fzt-custom-color-5 .fzt-counter-content-box .fzt-counter {
    color: var(--kidizro-custom-color-5);
}

.fzt-counter-box.type-2.fzt-custom-color-1 .fzt-counter-content-box:after {
    background-color: var(--kidizro-custom-color-1);
}

.fzt-counter-box.type-2.fzt-custom-color-2 .fzt-counter-content-box:after {
    background-color: var(--kidizro-custom-color-2);
}

.fzt-counter-box.type-2.fzt-custom-color-3 .fzt-counter-content-box:after {
    background-color: var(--kidizro-custom-color-3);
}

.fzt-counter-box.type-2.fzt-custom-color-4 .fzt-counter-content-box:after {
    background-color: var(--kidizro-custom-color-4);
}

.fzt-counter-box.type-2.fzt-custom-color-5 .fzt-counter-content-box:after {
    background-color: var(--kidizro-custom-color-5);
}

/* Responsive */

/* Laptop, 1281px and up */
@media (min-width: 1281px) and (max-width: 1440px) {

    .fzt-counter-box .fzt-counter-content-box .fzt-counter {
        font-size: var(--kidizro-h3-font-size);
    }

}

/* Tablets - Landscape, 1025px and up */
@media (min-width: 1025px) and (max-width: 1280px) {

    .fzt-counter-box .fzt-counter-content-box .fzt-counter{
        font-size: var(--kidizro-h3-font-size);
    }

    .fzt-counter-box.type-1 {
        padding: 25px;
    }

    .fzt-counter-box.type-1 .fzt-counter-content-box .fzt-counter {
        font-size: calc(var(--kidizro-h3-font-size) - 5px);
    }

    .fzt-counter-box.type-1 .fzt-counter-content-box .fzt-counter-title {
        font-size: var(--kidizro-h6-font-size);
    } 

}

/* Tablets - Portrait, 768px and up */
@media (min-width: 768px) and (max-width: 1024px) {

    .fzt-counter-box .fzt-counter-content-box .fzt-counter {
        font-size: var(--kidizro-h3-font-size);
    }

}

/* Mobile - Landscape, less than 767px */
@media (min-width: 576px) and (max-width: 767px) {

    .fzt-counter-box .fzt-counter-content-box .fzt-counter {
        font-size: calc(var(--kidizro-h3-font-size) - 5px);
    }

    .fzt-counter-box .fzt-counter-content-box .fzt-counter-title {
        font-size: var(--kidizro-body-font-size);
    }

    .fzt-counter-box.type-2.shape1:before {
        width: 45px;
        height: 33px;
        top: -20px;
    }

    .fzt-counter-box.type-2.shape1:after {
        width: 27px;
        height: 27px;
    }

}

/* Mobile - Portrait, less than 575px */
@media (max-width: 575px) {

    .fzt-counter-box .fzt-counter-content-box .fzt-counter {
        font-size: calc(var(--kidizro-h3-font-size) - 5px);
    }

    .fzt-counter-box .fzt-counter-content-box .fzt-counter {
        font-size: var(--kidizro-h4-font-size);
    }

    .fzt-counter-box.type-2.shape1:before {
        width: 45px;
        height: 33px;
        top: -20px;
    }

    .fzt-counter-box.type-2.shape1:after {
        width: 27px;
        height: 27px;
    }

    .fzt-counter-box.type-2.shape1 .fzt-counter-content-box,
    .fzt-counter-box.type-2.shape2 .fzt-counter-content-box {
        width: 140px;
        height: 107px;
        bottom: -20px;
    }

    .fzt-counter-box.type-2.shape1 .fzt-counter-content-box {
        bottom: 40px;
    }

    .fzt-counter-box.type-2.shape2 .fzt-counter-content-box {
        bottom: -20px;
    }

    .fzt-counter-box.type-2.shape2 .fzt-counter-image:before {
        top: -10px;
    }

    .fzt-counter-box.type-2.shape1,
    .fzt-counter-box.type-2.shape2 {
        padding: 0;
    }

}

/* Small Mobile - Portrait, less than 479px */
@media (max-width: 479px) {

    .fzt-counter-box.type-2.shape1:before {
        width: 35px;
        height: 23px;
    }

    .fzt-counter-box.type-2.shape1:after {
        width: 17px;
        height: 17px;
        bottom: -20px;
    }    
}