html, body {
    margin: 0;
    padding: 0;
}

.main {
    height: 100vh;
    max-width: 430px;
    margin: 0 auto;
}

.main .core {
    flex-grow: 1;
}

.head {
    background-color: #fd0;
    background-image: url('img/jpl.png');
    background-repeat: no-repeat;
    background-position: 25px 10px;
    background-blend-mode: multiply;
    height: 254px;
    padding-left: 25px;
    padding-right: 25px;
    animation: 4s showMe cubic-bezier(.56, -0.46, .54, 1.33);
    position: relative;
    overflow: hidden;
}

.head.mireille {
    background-image: url('img/mireille.png');
    background-position: 90px 18px;
    animation: 4s showMireille cubic-bezier(.56, -0.46, .54, 1.33);
}

.logo {
    position: absolute;
    top: 60px;
    left: 100%;
    animation: 1s slidein ease-out 4s forwards;
}

.mireille .logo {
    left: inherit;
    right: 100%;
    animation: 1s slideinLeft ease-out 4s forwards;
}

.core {
    background: #000;
    font-family: Palanquin, sans-serif;
    color: #fd0;
    text-align: center;
    display: flex;
}

h1 {
    font-size: 28px;
    padding: 0;
    font-weight: bold;
    margin: 0;
}

h2 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    text-transform: uppercase;
    font-size: 16px;
    margin-top: -5px;
    margin-bottom: 15px;
}

.buttons {
    padding-left: 40px;
    padding-right: 40px;
}

.buttons a {
    display: block;
    background: #fd0;
    width: 90px;
    height: 90px;
    border-radius: 21px;
    text-decoration: none;
    transform: scale(0);
}

.buttons a:first-child {
    animation: .8s display forwards;
}

.buttons a:nth-child(2) {
    animation: .8s display .3s forwards;
}

.buttons a:nth-child(3) {
    animation: .8s display .6s forwards;
}

.buttons a:nth-child(4) {
    animation: .8s display .9s forwards;
}

.buttons a:nth-child(5) {
    animation: .8s display 1.2s forwards;
}

.buttons a:nth-child(6) {
    animation: .8s display 1.5s forwards;
}

.buttons a:first-child img, .buttons a:nth-child(2) img, .buttons a:nth-child(4) img, .buttons a:nth-child(5) img {
    height: 59px;
}

.buttons a:nth-child(3) img {
    height: 45px;
    margin-top: -125px;
}

.buttons a:nth-child(6) img {
    height: 55px;
    margin-top: -125px;
}


@keyframes display {
    to {
        transform: scale(1);
    }
}

.buttons a:nth-child(3) {
    margin-bottom: 25px;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.buttons a img {
    display: inline-block;
    vertical-align: middle;
    max-height: 90px;
}

.networks {
    margin-top: 15px;
    transform: scale(0);
    animation: 1s display 2s forwards;
}

.networks a {
    margin: 10px;
    text-decoration: none;
}

.foot {
    height: 180px;
    background: url(img/bg.png) no-repeat;
}

@keyframes showMe {
    0% {
        background-position: 25px 254px;
    }
    30% {
        background-position: 25px 150px;
    }
    80% {
        background-position: 25px 135px;
    }
}

@keyframes showMireille {
    0% {
        background-position: 90px 254px;
    }
    30% {
        background-position: 90px 180px;
    }
    80% {
        background-position: 90px 150px;
    }
}

@keyframes slidein {
    to {
        left: 185px;
    }
}

@keyframes slideinLeft {
    to {
        right: 175px;
    }
}

@media screen and (max-height: 792px) {
    .head, .head.mireille {
        height: 200px;
    }

    .networks {
        margin-top: 25px;
    }

    .foot {
        height: 120px;
    }

    @keyframes showMe {
        0% {
            background-position: 25px 180px;
        }
        30% {
            background-position: 25px 95px;
        }
        80% {
            background-position: 25px 105px;
        }
    }

    @keyframes showMireille {
        0% {
            background-position: 75px 254px;
        }
        30% {
            background-position: 75px 125px;
        }
        80% {
            background-position: 75px 135px;
        }
    }

    @keyframes slideinLeft {
        to {
            right: 195px;
        }
    }

    @keyframes slidein {
        to {
            left: 180px;
        }
    }
}

@media screen and (max-height: 710px) {
    .core {
        padding-top: 10px;
    }

    h1 {
        margin-top: 10px;
    }

    .buttons a {
        width: 70px;
        height: 70px;
        margin-right: 15px;
    }

    .buttons a img {
        max-height: 70px;
    }

    .buttons a:first-child img, .buttons a:nth-child(2) img, .buttons a:nth-child(4) img, .buttons a:nth-child(5) img {
        height: 45px;
    }
    .buttons a:nth-child(2) img, .buttons a:nth-child(5) img {
        margin-top: -105px;

    }
    .buttons a:nth-child(3) img {
        height: 30px;
        margin-top: -105px;
    }

    .buttons a:nth-child(6) img {
        height: 35px;
        margin-top: -105px;
    }

    @keyframes slideinLeft {
        to {
            right: 175px;
        }
    }
}

@media screen and (max-height: 649px) {
    .head {
        background-size: 73%;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 13px;
    }

    @keyframes showMe {
        0% {
            background-position: 25px 180px;
        }
        30% {
            background-position: 25px 120px;
        }
        80% {
            background-position: 25px 105px;
        }
    }

    @keyframes slidein {
        to {
            left: 160px;
        }
    }
}

@media screen and (max-width: 356px) {
    .head {
        height: 180px;
        background-position: 25px 33px;
        background-size: 73%;
    }
    .head.mireille {
        height: 180px;
        background-position: 75px 33px;
        background-size: 73%;
    }

    .logo {
        max-width: 130px;
    }

    .buttons a {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .buttons a img {
        max-height: 50px;
    }

    .buttons a:first-child img, .buttons a:nth-child(2) img, .buttons a:nth-child(4) img, .buttons a:nth-child(5) img {
        height: 30px;
    }
    .buttons a:nth-child(2) img, .buttons a:nth-child(5) img {
        margin-top: -85px;

    }
    .buttons a:nth-child(3) img {
        height: 20px;
        margin-top: -85px;
    }

    .buttons a:nth-child(6) img {
        height: 25px;
        margin-top: -85px;
    }

    @keyframes slidein {
        to {
            left: 120px;
        }
    }
    @keyframes slideinLeft {
        to {
            right: 125px;
        }
    }
}

@media screen and (max-width: 356px) and (max-height: 600px){
    .head {
        height: 150px;
        background-position: 25px;
    }
    .head.mireille {
        height: 150px;
        background-position: 75px 0;
    }

    .buttons {
        text-align: center;
    }
    .buttons a {
        margin: 0 15px;
    }

    @keyframes showMe {
        0% {
            background-position: 25px 180px;
        }
        30% {
            background-position: 25px 75px;
        }
        80% {
            background-position: 25px 82px;
        }
    }

    @keyframes showMireille {
        0% {
            background-position: 75px 180px;
        }
        30% {
            background-position: 75px 85px;
        }
        80% {
            background-position: 75px 90px;
        }
    }

    @keyframes slidein {
        to {
            right: 120px;
        }
    }
}

@media screen and (min-width: 404px) {
    @keyframes slideinLeft {
        to {
            right: 190px;
        }
    }
}