body {
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: subpixel-antialiased;
    animation: fadein 1s;
    color: #383838;
    box-sizing: border-box;
}

header,
section.main-content,
footer {
    width: 100%;
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 1.6em;
    box-sizing: border-box;
}

/* Header */
header {
    background: #212121;
    border-bottom: solid 1px #91d9cf;
    -moz-osx-font-smoothing: auto;
    -webkit-font-smoothing: antialiased;
}

.header-container>a {
    color: white;
    text-decoration: none;
}

.main-content {
    background: white;
    min-height: 320px
}

h1 {
    color: #a9a9a9;
    font-size: 4em;
    font-family: 'Cormorant', serif;
    padding: 4px 20px 0;
    font-weight: 400;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    line-height: .95em;
    margin: 0.2em 0;
    letter-spacing: -1px;
    box-sizing: border-box;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: #404040;
    font-weight: 400;
    margin: 0 0 12px;
    padding: 0 0 6px;
    position: relative
}

h2::after {
    content: '';
    height: 1.5px;
    width: 100%;
    animation: colorchange 10s;
    bottom: -2px;
    lefT: 0;
    position: absolute;
    animation-iteration-count: infinite;
}

@keyframes colorchange {
    0% {
        background: #009688;
    }

    25% {
        background: #ff0404;
    }

    50% {
        background: #ffeb3b;
    }

    75% {
        background: #2196f3;
    }

    100% {
        background: #009688;
    }
}

@-webkit-keyframes colorchange

/* Safari and Chrome - necessary duplicate */
    {
    0% {
        background: red;
    }

    25% {
        background: yellow;
    }

    50% {
        background: blue;
    }

    75% {
        background: green;
    }

    100% {
        background: red;
    }
}

p {
    line-height: 1.6em;
    margin: .5em;
    padding: .25em;
}

p.notes {
    font-style: italic
}

p.notes i {
    color: #3ec335;
}

nav {
    margin: 0 auto;
    text-align: center;
}

nav ul {
    margin: 0;
    padding: 8px
}

nav ul li {
    display: inline-block;
    margin: 0px 12px;
    padding: 12px 20px;
    font-weight: 400;
    font-size: 1.2em;
    letter-spacing: 1.6px;
    font-family: 'Dosis', sans-serif;
}

nav ul li a {
    text-decoration: none;
    color: white;
    position: relative;

}

nav ul li a::after {
    content: '';
    height: 1.5px;
    width: 0;
    animation: colorchange 10s;
    bottom: -2px;
    left: 0;
    position: absolute;
    animation-iteration-count: infinite;
    transition: all .2s
}

nav ul li a:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    position: absolute;
    right: 8px;
    top: 8px;
    background: #5a5a5a;
    color: #00ffd0;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 18px;
    border: solid 1px #9e9e9e;
    transition: all .2s;
}

.hamburger:hover,
.hamburger:focus {
    color: #1fffac
}

.hamburger.menu-open i:before {
    content: '\f00d';
}

/* main content */

img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.main-content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 400px;
}

.main-content-container div {
    min-width: 320px;
    width: 100%;
    max-width: 42%;
    margin: 1.2em;
    position: relative;
    box-sizing: border-box
}

.main-content-container div.imagery-container {
    height: 100%;
}

@media screen and (max-width: 920px) {
    .main-content-container div.text-container {
        max-width: 100%;
    }

    .main-content-container div.imagery-container {
        max-width: 100%
    }
}

/* Footer */

footer {
    background: #212121;
    border-top: solid 1px #335dad;
}

.footer-container {
    text-align: center
}

.footer-container p,
.footer-container a {
    color: white
}

/* Pages - Home */

.main-content-container .home-image {
    max-width: 100%;
    text-align: center
}

.main-content-container .home-image img {
    max-width: 480px;
    width: 100%;
    display: inline-block;
}

/* Pages - Ceramics Landing */
.ceramics-landing-container.container {
    max-width: 100%;
}

.ceramics-landing-container.container div {
    width: 100%;
    min-width: 240px;
    max-width: 420px;
    border-radius: 5px;
    border: solid 1px gainsboro;
}

.ceramics-category {
    transition: all .2s
}

.ceramics-category h2 {
    padding: 12px 16px;
    margin-bottom: 0
}

.ceramics-category a {
    text-decoration: none;
}

.ceramics-category:hover {
    background: #212121
}

.ceramics-category:hover a h2 {
    color: white
}

.ceramics-category a h2::after {
    bottom: 0;
    height: 2px
}

.ceramics-category img {
    margin: 0 auto;
    background-size: contain;
    display: block;
    height: calc(100% - 56px);
    width: 100%;
    border: 0;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 0 0 4px 4px;
    opacity: 0
}

/* Pages - Contact */

label {
    display: block;
    font-weight: bold;
}

input {
    display: block;
    padding: 4px 8px;
    font-size: 14px;
    border: solid 1px #cacaca;
    border-radius: 4px;
    margin-bottom: 16px
}

textarea {
    width: 100%;
    min-height: 120px;
    max-width: 360px;
    border: solid 1px #cacaca;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 4px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    display: block;
    color: white;
    background-color: #396fb1;
    padding: 6px 20px;
    font-size: 18px;
    border-radius: 4px;
    transition: all .2s
}

button:hover {
    background-color: #205eab
}

#form-messages.error {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 1.2em 0;
    line-height: 1.7em;
    background: #e2524e;
    color: white;
}

#form-messages.success {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 1.2em 0;
    line-height: 1.7em;
    background: #4e90e2;
    color: white;
}

/* Fade in Content! */

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



@media screen and (max-width: 780px) {
    h1 {
        font-size: 3em;
        padding-bottom: 6px
    }

    nav {
        opacity: 0;
        visibility: hidden;
        height: 0;
    }

    nav.show {
        background-color: #1f1f1f;
        display: block;
        height: 100%;
        opacity: 1;
        position: absolute;
        top: 0;
        transition: all .4s;
        visibility: visible;
        width: calc(100%);
        z-index: 1000;
        padding-top: 20px;
        margin-top: 80px;
        left: 0
    }

    nav ul {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    nav ul li {
        display: block;
        text-align: left;
        position: relative;
        background-color: #292929;
        margin: 0;
        transition: all 1.2s;
        padding: 0;
    }

    nav ul li a {
        display: block;
        height: 100%;
        width: 100%;
        padding: 12px 20px;
        ;
        box-sizing: border-box
    }

    nav ul li a:after {
        content: none;
    }

    nav ul li:hover {
        background-color: #4c4c4c;
    }

    nav ul li::after {
        content: '';
        height: 1.5px;
        width: 100%;
        animation: colorchange 10s;
        bottom: 0;
        left: 0;
        position: absolute;
        animation-iteration-count: infinite;
    }

    nav ul li:first-child::before {
        content: '';
        height: 1px;
        width: 100%;
        animation: colorchange 10s;
        top: -2px;
        lefT: 0;
        position: absolute;
        animation-iteration-count: infinite;
    }

    .hamburger {
        display: block;
    }

    /* .main-content-container div {
        max-width: 1200px
    } */
}