/* ANIMATIONS ----------------------------------------- */
@-webkit-keyframes play {
    0% {
        background-position: 0 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        background-position: -22308px 0;
        opacity: 1;
    }
}
@-moz-keyframes play {
    0% {
        background-position: 0 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        background-position: -22308px 0;
        opacity: 1;
    }
}
@-o-keyframes play {
    0% {
        background-position: 0 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        background-position: -22308px 0;
        opacity: 1;
    }
}
@keyframes play {
    0% {
        background-position: 0 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        background-position: -22308px 0;
        opacity: 1;
    }
}
@-webkit-keyframes fall-n-swing {
    0% {
        -webkit-transform: rotateZ(7deg) translate(-2px, -9px);
        -moz-transform: rotateZ(7deg) translate(-2px, -9px);
        -ms-transform: rotateZ(7deg) translate(-2px, -9px);
        -o-transform: rotateZ(7deg) translate(-2px, -9px);
        transform: rotateZ(7deg) translate(-2px, -9px);
    }
    25% {
        -webkit-transform: rotateZ(-7deg);
        -moz-transform: rotateZ(-7deg);
        -ms-transform: rotateZ(-7deg);
        -o-transform: rotateZ(-7deg);
        transform: rotateZ(-7deg);
    }
    50% {
        -webkit-transform: rotateZ(2deg);
        -moz-transform: rotateZ(2deg);
        -ms-transform: rotateZ(2deg);
        -o-transform: rotateZ(2deg);
        transform: rotateZ(2deg);
    }
    75% {
        -webkit-transform: rotateZ(-.3deg);
        -moz-transform: rotateZ(-.3deg);
        -ms-transform: rotateZ(-.3deg);
        -o-transform: rotateZ(-.3deg);
        transform: rotateZ(-.3deg);
    }
    100% {
        -webkit-transform: rotateZ(0deg);
        -moz-transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -o-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
}
@-moz-keyframes fall-n-swing {
    0% {
        -webkit-transform: rotateZ(7deg) translate(-2px, -9px);
        -moz-transform: rotateZ(7deg) translate(-2px, -9px);
        -ms-transform: rotateZ(7deg) translate(-2px, -9px);
        -o-transform: rotateZ(7deg) translate(-2px, -9px);
        transform: rotateZ(7deg) translate(-2px, -9px);
    }
    25% {
        -webkit-transform: rotateZ(-7deg);
        -moz-transform: rotateZ(-7deg);
        -ms-transform: rotateZ(-7deg);
        -o-transform: rotateZ(-7deg);
        transform: rotateZ(-7deg);
    }
    50% {
        -webkit-transform: rotateZ(2deg);
        -moz-transform: rotateZ(2deg);
        -ms-transform: rotateZ(2deg);
        -o-transform: rotateZ(2deg);
        transform: rotateZ(2deg);
    }
    75% {
        -webkit-transform: rotateZ(-.3deg);
        -moz-transform: rotateZ(-.3deg);
        -ms-transform: rotateZ(-.3deg);
        -o-transform: rotateZ(-.3deg);
        transform: rotateZ(-.3deg);
    }
    100% {
        -webkit-transform: rotateZ(0deg);
        -moz-transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -o-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
}
@-o-keyframes fall-n-swing {
    0% {
        -webkit-transform: rotateZ(7deg) translate(-2px, -9px);
        -moz-transform: rotateZ(7deg) translate(-2px, -9px);
        -ms-transform: rotateZ(7deg) translate(-2px, -9px);
        -o-transform: rotateZ(7deg) translate(-2px, -9px);
        transform: rotateZ(7deg) translate(-2px, -9px);
    }
    25% {
        -webkit-transform: rotateZ(-7deg);
        -moz-transform: rotateZ(-7deg);
        -ms-transform: rotateZ(-7deg);
        -o-transform: rotateZ(-7deg);
        transform: rotateZ(-7deg);
    }
    50% {
        -webkit-transform: rotateZ(2deg);
        -moz-transform: rotateZ(2deg);
        -ms-transform: rotateZ(2deg);
        -o-transform: rotateZ(2deg);
        transform: rotateZ(2deg);
    }
    75% {
        -webkit-transform: rotateZ(-.3deg);
        -moz-transform: rotateZ(-.3deg);
        -ms-transform: rotateZ(-.3deg);
        -o-transform: rotateZ(-.3deg);
        transform: rotateZ(-.3deg);
    }
    100% {
        -webkit-transform: rotateZ(0deg);
        -moz-transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -o-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
}
@keyframes fall-n-swing {
    0% {
        -webkit-transform: rotateZ(7deg) translate(-2px, -9px);
        -moz-transform: rotateZ(7deg) translate(-2px, -9px);
        -ms-transform: rotateZ(7deg) translate(-2px, -9px);
        -o-transform: rotateZ(7deg) translate(-2px, -9px);
        transform: rotateZ(7deg) translate(-2px, -9px);
    }
    25% {
        -webkit-transform: rotateZ(-7deg);
        -moz-transform: rotateZ(-7deg);
        -ms-transform: rotateZ(-7deg);
        -o-transform: rotateZ(-7deg);
        transform: rotateZ(-7deg);
    }
    50% {
        -webkit-transform: rotateZ(2deg);
        -moz-transform: rotateZ(2deg);
        -ms-transform: rotateZ(2deg);
        -o-transform: rotateZ(2deg);
        transform: rotateZ(2deg);
    }
    75% {
        -webkit-transform: rotateZ(-.3deg);
        -moz-transform: rotateZ(-.3deg);
        -ms-transform: rotateZ(-.3deg);
        -o-transform: rotateZ(-.3deg);
        transform: rotateZ(-.3deg);
    }
    100% {
        -webkit-transform: rotateZ(0deg);
        -moz-transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
        -o-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
}
@-webkit-keyframes remove-rope {
    0% {
        top: 5vh;
    }
    100% {
        top: 0vh;
    }
}
@-moz-keyframes remove-rope {
    0% {
        top: 5vh;
    }
    100% {
        top: 0vh;
    }
}
@-o-keyframes remove-rope {
    0% {
        top: 5vh;
    }
    100% {
        top: 0vh;
    }
}
@keyframes remove-rope {
    0% {
        top: 5vh;
    }
    100% {
        top: 0vh;
    }
}



@-webkit-keyframes fall {
    0% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    44% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    45% {
        background-image: url('/assets/images/rico-animation/rico-02.png');
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    69% {
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    70% {
        opacity: 0;
        top: -100px;
        left: -90px;
    }
}
@-moz-keyframes fall {
    0% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    44% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    45% {
        background-image: url('/assets/images/rico-animation/rico-02.png');
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    69% {
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    70% {
        opacity: 0;
        top: -100px;
        left: -90px;
    }
}
@-o-keyframes fall {
    0% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    44% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -200px;
        left: -160px;
    }
    45% {
        background-image: url('/assets/images/rico-animation/rico-02.png');
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    46% {
        opacity: 1;
        top: -100px;
        left: -90px;
    }
    47% {
        opacity: 0;
        top: -100px;
        left: -90px;
    }
}
@keyframes fall {
    0% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -300px;
        left: -160px;
    }
    32% {
        background-image: url('/assets/images/rico-animation/rico-01.png');
        opacity: 1;
        top: -300px;
        left: -160px;
    }
    33% {
        background-image: url('/assets/images/rico-animation/rico-02.png');
        opacity: 1;
        top: -300px;
        left: -90px;
    }
    42% {
        opacity: 1;
        top: -300px;
        left: -90px;
    }
    43% {
        opacity: 0;
        top: -300px;
        left: -90px;
    }
}


#rico-animation {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    text-align: right;
    z-index: 3;
    overflow: hidden;
    display: none;
}
#rico-animation .holder {
    position: absolute;
    height: calc(100vh + 200px);
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}
#rico-animation .wrapper {
    position: relative;
    height: 100%;
    height: calc(100% + 200px);
    margin-top: -200px;
}
#rico-animation .segment {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 7vh;
    height: 10vh;
    width: 6px;
    background: #A3793F;
    -webkit-transform-origin: top center;
    -moz-transform-origin: top center;
    -ms-transform-origin: top center;
    -o-transform-origin: top center;
    transform-origin: top center;
    border-radius: 100%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    display: none;
    -webkit-box-shadow: -20px 15px 10px 0px rgba(0,0,0,.3);
    box-shadow: -20px 15px 10px 0px rgba(0,0,0,.3);
}

#rico-animation .first-segment {
    left: 60%;
}

#rico-animation .rico {
    top: -200px;
    left: -160px;
    background-repeat: no-repeat;
    background-color: transparent;
    background-image: url('/assets/images/rico-animation/rico-02.png');
    border-radius: 0;
    width: 295px;
    height: 332px;
    display: block;
    opacity: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}
#rico-animation #static-ani {
    position: absolute;
    bottom: 0;
    right: 230px;
    width:676px;
    height: 339px;
    background: url('/assets/images/rico-animation/sprite.png') no-repeat 0 0;
    z-index: 2;
    opacity: 1;
}
#figure-ani {
    width:676px;
    height: 339px;
    background: url('/assets/images/rico-animation/sprite.png') no-repeat 0 0;
    z-index: 2;
    opacity: 1;
    position: absolute;
    left: -310px;
    top: -140px;
}
#figure-ani .txt {
    position:absolute;
    right:70px !important;
    bottom:100px !important;
    font-family: 'Kalamregular';
    color:#fff;
    font-size:36px;
    line-height:36px
}

.animate-rico #rico-animation {
    display: block;
}
.animate-rico #rico-animation .segment {
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-timing-function: ease-in-out;
    -o-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation: fall-n-swing 4s 1, remove-rope 1s 3s 1;
    -o-animation: fall-n-swing 4s 1, remove-rope 1s 3s 1;
    animation: fall-n-swing 4s 1, remove-rope 1s 3s 1;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    display: block;
}
.animate-rico #rico-animation .rico {
    -webkit-animation: fall 3s 1;
    -o-animation: fall 3s 1;
    animation: fall 3s 1;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}
.animate-rico #rico-animation #static-ani,
.animate-rico #figure-ani {
    -webkit-animation: play 2s steps(33) 1.15s 1;
    -o-animation: play 2s steps(33) 1.15s 1;
    animation: play 2s steps(33) 1.15s 1;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    -o-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

