/* apply a natural box layout model to all elements, but allowing components to change */

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    background: grey;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1 {
    font-family: 'Oswald', sans-serif;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1em;
    text-align: center;
}

header {
    overflow: auto;
    background: white;
}

img.logo {
    float: left;
    margin: 5px;
}

nav {
    width: 80%;
    float: right;
}

nav a {
    clear: none;
    display: inline-block;
    width: auto;
    float: left;
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    position: relative;
    height: 60px;
    color: #2e2e2e;
    transition: background-color .5s;
    line-height: 60px;
    padding: 0 1em;
    text-decoration: none;
    text-transform: uppercase;
}

nav a:hover {
    background: #f1f1f1;
}

nav a.donate {
    float: right;
    background: #61982f;
    color: #fff;
}

nav a.donate:hover {
    background: #000;
}

section.hero img {
    width: 100%;
}

section.home-links {
    column-count: 1;
}

section.about,
section.memes,
section.places,
section.donate {
    color: white;
    padding: 2em 0;
    width: 50%;
    float: left;
    background-position: center center;
}

.about {
    background: url('http://www.placecage.com/1000/1000');
}

.memes {
    background: url('http://www.placecage.com/g/1000/1000');
}

.places {
    background: url('http://www.placecage.com/c/1000/1000');
}

.donate {
    background: url('http://www.placecage.com/gif/1000/1000');
}

section.about-main,
section.about-team,
section.memes-main {
    background: #fff;
    padding: 2em 0;
}

section.about-team {
    background: url("http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/footer_lodyas.png");
    color: white;
}

.content-block {
    margin: 0 auto;
    width: 94%;
    max-width: 94em;
    max-width: 94rem;
    overflow: hidden;
}

.content-block li {
    width: 25%;
    margin-bottom: 0;
    float: left;
}

.team-members img,
.meme-images-container img {
    max-width: 100%;
    height: auto;
}

.team-members img {
    border-radius: 500px;
    background: rgba(0, 155, 0, 0.15);
    display: block;
    margin: 0 auto;
}

.team-members img:hover {
    background: rgba(0, 155, 0, 0.25);
}

.team-members h1 {
    font-size: 1.6em !important;
    margin: 10px 0 0;
    text-align: center;
}

.team-members h2 {
    font-size: 0.75em;
    margin: 5px 0 10px;
    text-align: center;
}

.team-members p {
    font-size: 0.813em;
    padding: 0 10%;
    line-height: 1.3;
}

.team-members {
    padding-top: 2em;
    column-count: 4;
    column-gap: 2em;
    margin: 0 auto;
    width: 94%;
    max-width: 94em;
    max-width: 94rem;
    overflow: hidden;
}

.meme-images-container,
.memes-container {
    column-count: 2;
    column-gap: 1em;
}

section.meme-links {
    column-count: 3;
    column-gap: 0;
}

section.home-links {
    column-count: 2;
    column-gap: 0;
}

.meme {
    width: 100%;
    height: 200px;
}

.meme.frogs {
    background: url("../images/frogs.png") center center;
}

.meme.cats {
    background: url("https://img.buzzfeed.com/buzzfeed-static/static/2014-08/8/16/enhanced/webdr06/enhanced-28359-1407531558-21.jpg") center center;
}

.meme.dogs {
    background: url("https://i.imgur.com/hK96rUd.jpg") center center;
}

.meme a,
.home-link a {
    line-height: 200px;
    text-align: center;
    display: block;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Oswald';
    font-size: 3em;
}

section.memes-main {
    border-bottom: 1px solid black;
}

.meme-info {
    padding: 1em 0;
}

section.about-main h1,
section.about-team .container h1,
section.memes-main h1,
article.places-main h1 {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

.meme-info h1 {
    font-size: 1.5em !important;
}

.meme-images-container {
    width: 50%;
    margin: 0 auto;
}

.meme-images-container img {
    margin-bottom: 1em;
}

section#cats {
    background: url("http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/green_dust_scratch.png");
}

section#dogs {
    background: url("http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/green_cup.png");
}

section#frogs {
    background: url("http: //subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/green-fibers.png");
}

section.places-container {
    background: #333;
    overflow: auto;
}

article.places-main,
aside.places-map {
    float: left;
}

article.places-main {
    width: 40%;
    background: #fff;
    padding: 2em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

aside.places-map {
    width: 60%;
    color: white;
}

@media only screen and (max-width: 768px) {
    /* For mobile phones: */
    .team-members {
        column-count: 2;
    }
    .team-member {
        padding-bottom: 2em;
    }
}

@media only screen and (max-width: 480px) {
    /* For mobile phones: */
    .team-members {
        column-count: 1;
    }
    section.meme-links {
        column-count: 1;
    }
    section.home-links {
        column-count: 1;
    }
}