@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeindown {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes twink {
    0% {
        background-image: url("../img/intro_twink1.png");
    }
    50% {
        background-image: url("../img/intro_twink2.png");
    }
    100% {
        background-image: url("../img/intro_twink1.png");
    }
}

@keyframes intro_baby_ani {
    0% {
        background-image: url("../img/intro_baby_1.png");
    }
    50% {
        background-image: url("../img/intro_baby_2.png");
    }
    100% {
        background-image: url("../img/intro_baby_1.png");
    }
}

@keyframes rotate {
    from {
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

section.intro .fadein {
    animation-name: fadein;
    animation-duration: 1s;
    animation-delay: 500ms;
    animation-fill-mode: forwards;
    opacity: 0;
}
section.intro .fadein.fadeindown {
    animation-name: fadeindown;
}

.twinkle {
    background-position: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: twink;
    animation-duration: 1s;
    animation-delay: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: step-end;
    width: 2em;
    height: 2em;
}

.rotate {
    animation: 5s linear 2s rotate;
    animation-iteration-count: infinite;
}

section.intro {
    background: url("../img/intro_bg_pttrn.png");
}

.intro_baby_animation {
    animation-name: intro_baby_ani;
    animation-duration: 1.5s;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-timing-function: step-end;
}

section.intro .intro_baby {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: url("../img/intro_baby_1.png");
    background-size: 100% auto;
}
