/* Original project animation. Keep its 650 × 400 coordinates, delays and keyframes. */
.center {
    width: 650px;
    height: 400px;
    position: relative;
    flex-shrink: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}
.google {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 16px;
}
.google img { width: 100px; margin-right: -20px; vertical-align: baseline; }
.google .bottom { margin-top: 7px; margin-right: -8px; }
.google .top { margin-top: 13px; margin-left: -5px; }
.google .left { margin-left: -30px; margin-right: -25px; }

.coin {
    height: 173px;
    width: 174px;
    transform: scale(0.6);
    position: absolute;
    left: 37.5%;
    background: url(../images/spritesheet.png) no-repeat;
    animation-timing-function: steps(10);
    animation-name: coin;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    margin-top: -24.45%;
}
@keyframes coin { 100% { background-position: -1735px; } }

.shroom {
    height: 173px;
    width: 174px;
    position: absolute;
    left: 26.5%;
    top: 3%;
    animation-name: shroom, shroomtouch;
    animation-delay: 0s, 6.6s;
    animation-duration: 2s, 0.2s;
    animation-timing-function: steps(8), steps(2);
    animation-iteration-count: 1;
    z-index: 100;
}
.shroom img { width: 100px; image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes shroom {
    0% { transform: translateX(-300px); }
    25% { transform: translateX(-200px); }
    50% { transform: translateX(-100px); }
    75% { transform: translateX(-50px); }
    100% { transform: translateX(0); }
}

.G {
    margin-top: 6px;
    animation-name: G;
    animation-duration: 2s;
    animation-timing-function: steps(16);
    animation-iteration-count: 1;
    animation-delay: 3s;
    animation-fill-mode: both;
    transform: translateY(-1000px);
}
@keyframes G {
    0% { transform: translateY(-1000px); }
    20% { transform: translateY(-800px); }
    40% { transform: translateY(-400px); }
    60% { transform: translateY(-200px); }
    80% { transform: translateY(-50px); }
    90% { transform: translateY(-10px); }
    95% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

.pipe {
    height: 174px;
    width: 174px;
    position: absolute;
    left: 13.7%;
    top: -55%;
    animation-name: pipe;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-delay: 3s;
    animation-timing-function: steps(12);
    z-index: 2;
}
.pipe img { width: 115px; image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes pipe {
    0% { transform: translateY(0); }
    25% { transform: translateY(20px); }
    50% { transform: translateY(80px); }
    60% { transform: translateY(90px); }
    75% { transform: translateY(40px); }
    90% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}
.white { position: absolute; z-index: 5; top: -278px; left: 100px; width: 50px; }

.egg {
    height: 174px;
    width: 174px;
    transform: scale(0.5);
    position: absolute;
    left: 48%;
    background: url(../images/eggsheet.png) no-repeat;
    image-rendering: pixelated;
    animation-timing-function: steps(6);
    animation-name: egg;
    animation-duration: 6s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    margin-top: -24.45%;
}
@keyframes egg { 100% { background-position: -1050px; } }

.g2 {
    animation-name: g2;
    animation-duration: 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: steps(8);
    transform: scale(0.5);
    animation-delay: 5.5s;
}
@keyframes g2 {
    0% { transform: scale(0.5); }
    25% { transform: scale(0.6); }
    50% { transform: scale(0.8); }
    75% { transform: scale(0.9); }
    90% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.o1, .o2, .l1 { visibility: hidden; }

.plant {
    width: 174px;
    height: 348px;
    animation-name: plant;
    animation-duration: 2s;
    animation-delay: 7s;
    animation-fill-mode: forwards;
    animation-timing-function: steps(10);
    position: absolute;
    left: 55.2%;
    top: 30%;
}
.plant img { width: 100px; image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes plant {
    0% { transform: translateY(0); }
    20% { transform: translateY(-40px); }
    40% { transform: translateY(-80px); }
    60% { transform: translateY(-120px); }
    80% { transform: translateY(-160px); }
    100% { transform: translateY(-200px); }
}
.white2 { position: absolute; left: 64.7%; top: 22%; }
.white3 { position: absolute; left: 64.7%; top: -30%; }

.reddot {
    position: absolute;
    z-index: 9;
    top: 42%;
    left: 20%;
    animation-name: reddot, reddot2;
    animation-duration: 0.5s, 0.5s;
    animation-delay: 5s, 6s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: steps(4), steps(4);
}
.reddot img { width: 100px; image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes reddot {
    0% { transform: translate(0); }
    25% { transform: translate(20px); }
    50% { transform: translate(40px); }
    75% { transform: translate(60px); }
    100% { transform: translate(80px); }
}
@keyframes reddot2 {
    0% { transform: translate(80px, 0); }
    25% { transform: translate(80px, -35px); }
    50% { transform: translate(80px, -70px); }
    75% { transform: translate(80px, -105px); }
    100% { transform: translate(80px, -140px); }
}
@keyframes shroomtouch {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}
.e {
    animation-name: e;
    animation-duration: 5s;
    animation-delay: 7s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    visibility: hidden;
}

.e2 {
    position: absolute;
    left: 32.23076824%;
    top: 2%;
    animation-name: ehidden, emove1, emove2, emove3;
    animation-duration: 0s, 0.5s, 1s, 0.5s;
    animation-delay: 3s, 7s, 8s, 10s;
    animation-iteration-count: 1, 1, 1, 1;
    animation-fill-mode: forwards, forwards, forwards, forwards;
    animation-timing-function: linear, steps(6), steps(8), steps(6);
    visibility: hidden;
    z-index: 4;
}
.e2 img { width: 99px; image-rendering: pixelated; image-rendering: crisp-edges; }
@keyframes ehidden { to { visibility: visible; } }
@keyframes emove1 {
    0% { transform: translateY(0); }
    33% { transform: translateY(48px); }
    66% { transform: translateY(96px); }
    100% { transform: translateY(143px); }
}
@keyframes emove2 {
    0% { transform: translate(0, 143px); }
    25% { transform: translate(60px, 143px); }
    50% { transform: translate(120px, 143px); }
    75% { transform: translate(180px, 143px); }
    100% { transform: translate(238px, 143px); }
}
@keyframes emove3 {
    0% { transform: translate(238px, 143px); }
    25% { transform: translate(238px, 107px); }
    50% { transform: translate(238px, 71px); }
    75% { transform: translate(238px, 36px); }
    100% { transform: translate(238px, 0px); }
}

/* A static final composition for visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .center * { animation: none !important; }
    .G { transform: translateY(0); }
    .egg { background-position: -1050px; }
    .g2 { transform: scale(1); }
    .plant { transform: translateY(-200px); }
    .reddot { transform: translate(80px, -140px); }
    .e2 { visibility: visible; transform: translate(238px, 0px); }
}
