* { box-sizing: border-box; }

html, body {
    margin:0;
    padding:0;
    min-height:100vh;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;;
    font-size:16px;
    line-height:1;
}

header {
    height: 150px;
    background-color:#FFFFFF;
    box-shadow: 3px 3px 5px rgba(0,0,0,.4);
    text-align: center;
    padding:10px;
    position:relative;
    z-index:10;
}
header img {
    max-height: 100%;
}
article {
    padding: 20px 15px;
    position:relative;
    display:flex;
    flex-wrap:wrap;
    justify-content: center;
    background-color:#666666;
}
article h1 {
    width:60vw;
    font-size:3rem;
    margin: .5em 0;
    text-align: center;
    color:#FFFFFF;
}
article p {
    width: 60vw;
    font-size:1.5rem;
    margin: .25em 0 1em;
    text-align: center;
    color:#FFFFFF;
}
article a {
    display:block;
    position: relative;
    width: 40vw;
    height: 40vh;
    margin: .4em .4em;
    overflow:hidden;
    border-radius:15px;
    box-shadow: 3px 3px 5px rgba(0,0,0,.4);
}
article a .background {
    position:absolute;
    left:0%;
    top:50%;
    width: 150%;
    height: 150%;
    background-size:cover;
    transform:rotate(-5deg) translateY(-50%);
    transition: opacity .5s ease-in;
    z-index:5;
}
article a:hover .background {
    opacity:.3;
}
article a span {
    display:block;
    position:absolute;
    width:100%;
    left:0;
    bottom:0;
    background-color:#FFFFFF;
    z-index:10;
    font-size:1.5rem;
    padding:5% 1em;
    text-decoration: none;
    opacity:0;
    transition: opacity .5s ease-in;
}
article a:hover span {
    opacity:1;
}
footer {
    background-color:#000000;
    color:#FFFFFF;
    border-top:1px solid #FFFFFF;
    text-align: center;
    margin:0;
    padding:2em 0;
}
footer a {
    color:#FFFFFF;
}
footer p {
    padding:0;
    margin:0;
}
@media (max-width: 768px) {
    article a {
        width: 90vw;
    }
    article h1, article p {
        width: 95%;
    }
}

@media (hover: none) {
    article a .background {
        opacity: .3;
    }
    article a span {
        opacity:1;
    }
}