* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-size: 10px;
}

body {
    background-color: #e5e5e5;
    font-family: Arial, Helvetica, sans-serif;
}

header { background-color: #ffffff; text-align: center; padding: 3em 0; }
footer { background-color: #138f54; color: #ffffff; padding: 2em; min-height: calc(4em + 80px); }
footer p { font-size: 14px; line-height: 2em; }
footer a:link { color: #ffffff; text-decoration: none; }
footer a:visited { color: #ffffff; text-decoration: none;  }
footer a:hover { color: #ffffff; border-bottom: 1px solid #ffffff; }
footer a:focus { color: #ffffff; border-bottom: 1px solid #ffffff; }
footer .inner { width: 100%; max-width: calc(1200px - 4em); margin: 0 auto; position: relative; }

.links { display: flex; flex-direction: column; padding: 2em 0 0 ; }
.link__button { background-color: #ffffff; box-shadow: 0 0 20px rgba(0,0,0,0.15); margin: 0 2em 2em; text-align: center; border-radius: 8px; padding-top: 25rem; position: relative; }
.link__button:link, .link__button:visited { text-decoration: none; }
.link__button--title { background-color: #138f54; color: #ffffff; display: block; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; text-transform: uppercase; font-weight: 700; padding: 2em;  font-size: 1.4rem; }
.link__button--image { width: 80%; height: 150px; position: absolute; left: 10%; top: 16%; transition: 0.2s; background-size: contain; background-repeat: no-repeat; background-position: center;  }
.link__button:hover .link__button--image, .link__button:focus .link__button--image { transition: 0.5s; }
.footer__link--image { display: block; height: 80px; width: 150px; text-indent: -9999px; background-repeat: no-repeat; background-image: url('dist/img/greencore-footer-logo.png'); background-position: center; background-size: contain; font-size: 1.2rem;  margin: 2em auto 0; }
.footer__link--image:link { text-decoration: none; border: 0; }
.footer__link--image:hover { text-decoration: none; border: 0; }
.greencore__logo { width: 300px; height: 113px; background-repeat: no-repeat; background-image: url('dist/img/greencore-logo.png'); background-size: contain; background-position: center; text-indent: -9999px; margin: 0 auto; }

@media only screen and (min-width: 768px)
{
    footer { padding: 2em 4em; position: relative; }
    footer p { max-width: 40em; }

    .links { flex-direction: row; flex-wrap: wrap; width: calc(100% - 4em); padding-top: 4em; margin: 0 2em; }
    .link__button { width: calc(50% - 4em); margin-bottom: 4em; }
    .footer__link--image  { max-width: 16em; position: absolute; right: 0; top: 0; margin-top: 0; }
}

@media only screen and (min-width: 1024px)
{
    .links { max-width: 1200px; margin: 0 auto;}
    .link__button { width: calc( (100% - 12em) / 3 ); }
}