.c-shapes {
    font-size: 0;
}

.c-shapes_item {
    display: inline-block;
    width: 23.5%;
    margin-left: 2%;
    position: relative
}
.c-shapes_item.-first {
    margin-left: 0;
}

.c-shapes_item::before {
    content: "";
    display: block;
    padding-bottom: 100%
}

@keyframes squareOne {
    0% {
        transform: scale3d(1, 1, 1)
    }
    8.25% {
        transform: scale3d(1, 0, 1)
    }
    16.5% {
        transform: scale3d(1, 0, 1)
    }
    18.75% {
        transform: scale3d(1, 1, 1)
    }
    25% {
        transform: scale3d(1, 1, 1)
    }
    100% {
        transform: scale3d(1, 1, 1)
    }
}

@keyframes squareTwo {
    0% {
        transform: scale3d(1, 0, 1)
    }
    12.5% {
        transform-origin: center top;
        transform: scale3d(1, 1, 1)
    }
    13.75% {
        transform-origin: center top;
        transform: scale3d(1, 1, 1)
    }
    15% {
        transform-origin: center bottom
    }
    22.5% {
        transform-origin: center bottom;
        transform: scale3d(1, 0.5, 1)
    }
    25% {
        transform-origin: center bottom;
        transform: scale3d(1, 0, 1)
    }
    100% {
        transform: scale3d(1, 0, 1)
    }
}

@keyframes dualNormal {
    0% {
        transform: translate3d(0, 0, 0)
    }
    12.5% {
        transform: translate3d(100%, 0, 0)
    }
    25% {
        transform: translate3d(100%, 100%, 0)
    }
    100% {
        transform: translate3d(100%, 100%, 0)
    }
}

@keyframes dualReverse {
    0% {
        transform: translate3d(0, 100%, 0)
    }
    12.5% {
        transform: translate3d(-100%, 100%, 0)
    }
    25% {
        transform: translate3d(-100%, 0, 0)
    }
    100% {
        transform: translate3d(-100%, 0, 0)
    }
}

@keyframes bounceCircles {
    0% {
        transform: translate3d(0, 0, 0)
    }
    12.5% {
        transform: translate3d(0, -100%, 0)
    }
    25% {
        transform: translate3d(0, 0, 0)
    }
    50% {
        transform: translate3d(0, 0, 0)
    }
}


@keyframes rect {
    0% {
        transform: translate3d(-50%, 0, 0) rotate(0deg) scale3d(1, 1, 1)
    }
    4% {
        transform: translate3d(-50%, 0, 0) rotate(0deg) scale3d(0.5, 1, 1)
    }
    9% {
        transform: translate3d(-50%, 0, 0) rotate(360deg) scale3d(0.1, 1, 1)
    }
    12.5% {
        transform: translate3d(-50%, 0, 0) rotate(360deg) scale3d(1, 1, 1)
    }
    25% {
        transform: translate3d(-50%, 0, 0) rotate(0deg) scale3d(1, 1, 1)
    }
    50% {
        transform: translate3d(-50%, 0, 0) rotate(0deg) scale3d(1, 1, 1)
    }
}

.c-shapes_item_inner {
    position: absolute;
    top: 33%;
    bottom: 1.25rem;
    right: 0;
    left: 0;
}


.c-shapes_item_inner.-square>div {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 50%;
    background-color: #C5CDCE;
}

.c-shapes_item_inner.-square>div:first-child {
    transform-origin: bottom left;
}

.c-shapes_item_inner.-square>div:nth-child(2) {
    height: 100%;
    background-color: #C5CDCE;
    transform-origin: top left;
    transform: scale3d(1, 0, 1);
}


.c-shapes_item_inner.-square.is-active>div:first-child {
    animation: squareOne 8s cubic-bezier(0.645, 0.045, 0.355, 1);
    animation-iteration-count: infinite;
}

.c-shapes_item_inner.-square.is-active>div:nth-child(2) {
    animation: squareTwo 8s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    animation-iteration-count: infinite;
}

.c-shapes_item_inner.-dual>div {
    position: absolute;
    height: 50%;
    width: 50%;
    background-color: #337160;
    transition: transform 1.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);   
}

.c-shapes_item_inner.-dual>div:first-child {
    top: 0;
    left: 0
}

.c-shapes_item_inner.-dual>div:nth-child(2) {
    top: 0;
    right: 0;
    transform: translate3d(0, 100%, 0)
}

.c-shapes_item_inner.-dual.is-active>div:first-child {
    animation: dualNormal 8s forwards cubic-bezier(0.645, 0.045, 0.355, 1) 2s;
    animation-iteration-count: infinite;
}

.c-shapes_item_inner.-dual.is-active>div:nth-child(2) {
    animation: dualReverse 8s forwards cubic-bezier(0.77, 0, 0.175, 1) 2s;
    animation-iteration-count: infinite;
}

.c-shapes_item_inner.-circles {
    font-size: 0
}

.c-shapes_item_inner.-circles>div {
    position: absolute;
    bottom: 0;
    width: 50%;
    border-radius: 50%;
    background-color: #EEE9CC
}

.c-shapes_item_inner.-circles>div::before {
    content: "";
    display: block;
    padding-bottom: 100%
}

.c-shapes_item_inner.-circles>div:first-child {
    left: 0;
    background: #F0F0F1;
}

.c-shapes_item_inner.-circles>div:nth-child(2) {
    right: 0;
    background: #C5CDCE;
}

.c-shapes_item_inner.-circles.is-active>div {
    animation: bounceCircles 8s forwards cubic-bezier(0.645, 0.045, 0.355, 1);
    animation-iteration-count: infinite;
    animation-delay: 6s
}

.c-shapes_item_inner.-circles.is-active>div:nth-child(1) {
    animation-delay: 4.2s
}

.c-shapes_item_inner.-circles.is-active>div:nth-child(2) {
    animation-delay: 4.4s
}

.c-shapes_item_inner.-rect>div {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 50%;
    background-color: #68978A;
    transform: translate3d(-50%, 0, 0);
}

.c-shapes_item_inner.-rect.is-active>div {
    animation: rect 8s forwards cubic-bezier(0.455, 0.03, 0.515, 0.955);
    animation-delay: 6s;
    animation-iteration-count: infinite;
}



@media only screen and (max-width: 640px) {
    .c-shapes_item {
        width: 48%;
        margin-bottom: 1vw;
    }
}