/*                                      RESET
--------------------------------------------------------------------------------------------*/

html {
    box-sizing: border-box;
}

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


html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, menu, nav, section, time, mark, audio, video, details, summary {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    background: transparent;

}

body {
    background-image: url(bg.jpg);
    background-repeat: repeat-x;
    background-color: white;
}

article, aside, figure, footer, header, main, nav, section, details, summary {
    display: block;
}

/* if you don't have full control over `img` tags (if you have to overcome attributes), consider adding height: auto */
img, object, embed, iframe {
    max-width: 100%;
}

/* force a vertical scrollbar to prevent a jumpy page */
html {
    overflow-y: scroll;
}

/* tables still need cellspacing="0" in the markup */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

th {
    font-weight: bold;
    vertical-align: bottom;
}

td {
    font-weight: normal;
    vertical-align: top;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

input[type="radio"] {
    vertical-align: text-bottom;
}

input[type="checkbox"] {
    vertical-align: bottom;
}

select, input, textarea {
    font-size: 0.99em;
    font-family: inherit;
    color: inherit
}

table {
    font-size: inherit;
}

strong {
    font-weight: bold;
}

td, td img {
    vertical-align: top;
}

/* Make sure sup and sub don't mess with your line-heights http://gist.github.com/413930 */
sub, sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

pre {
    font-family: monospace, sans-serif;
    color: #f5f5f5;
    white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
    word-wrap: break-word; /* IE */
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #444;
}


a {
    text-decoration: none;
    color: #056484
}

a:hover {
    text-decoration: underline
}


/*                                      HEADER
--------------------------------------------------------------------------------------------*/
.top {
    background-color: red;
}

header {
    text-align: center
}

.logo {
    margin-top: -110px;
}

nav ul {
    margin-top: -100px
}

.left {
    float: left
}

.right {
    float: right
}


nav {
    text-align: center;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto;
}


nav li {
    display: inline-block;
}

nav li a {
    padding: 10px;
    color: #39200C;
    font-size: 24px;
}

nav li:hover:not(.active) {
    background-color: whitesmoke;
}

nav .active {
    text-decoration: underline;
}


@media screen and (max-width: 850px) {
    nav li a {
        padding: 10px 4px;
    }
}


@media screen and (max-width: 790px) {
    nav {
        margin-top: 90px;
        padding: 0 10px;
    }
}

@media screen and (max-width: 650px) {
    .left {
        float: none;
    }

    .right {
        float: none;
    }

    nav {
        margin-top: 150px;
    }

    main {
        margin-top: 50px
    }
}

@media screen and (max-width: 360px) {
    nav li a {
        padding: 10px 4px;
        color: #39200C;
        font-size: 14px;
    }
}


/* MAIN
--------------------------------------------------------------------------*/
main {
    padding: 20px;
    height: 100%;
    min-height: 50vh;
}

#inner {
    margin: 120px auto 0 auto;
    background-color: white;
    border-top: 10px solid #57422B;
}

#wrapper {
    margin: 0 auto;
    max-width: 1000px;
}


/* GRIDS
--------------------------------------------------------------------------*/

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.row {
    display: table;
    table-layout: fixed;
    width: 100%;
}


/*------------ Basic columns ------------*/
.col-6 {
    padding: 10px;
}

.col, /* you can pair with itself (same auto width columns), with fixed width columns, and with basic columns */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    display: table-cell;
    vertical-align: top
}

.col-1 {
    width: 8.333333%;
}

.col-2 {
    width: 16.666667%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.333333%;
}

.col-5 {
    width: 41.666667%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.333333%;
}

.col-8 {
    width: 66.666667%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.333333%;
}

.col-11 {
    width: 91.666667%;
}

.col-12 {
    width: 100%;
}

@media screen and (max-width: 540px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        display: block;
        width: 100%;
    }
}

/*------------ Fixed width column ------------*/
.col-180px {
    display: table-cell;
    width: 180px;
}

/* example width */
.col-60px {
    display: table-cell;
    width: 60px;
}

/* footer #top */


/*------------ Inline table columns (Blocks) ------------*/

/*
.block-img: ideal for a simple image gallery 
.block: Ideal for creating multiple blocks ex.:products grid. It works nice only with equal height contents. */

/* all setup for 3 columns in a row , ideal for breaking 6/9/12/etc... columns, you can play with 25% width if you want 4 columns for 8/12/16/etc... */

.block-img {
    display: inline-table;
    width: 33%;
    padding: 4px
}

.block-img img {
    border: 5px solid #e6844f;
}

.block-half {
    display: inline-table;
    width: 49%;
    padding: 4px
}


@media screen and (max-width: 960px) {
    .block-img {
        width: 50%;
    }
}

@media screen and (max-width: 640px) {
    .block-img {
        width: 100%;
    }
}


/* TYPOGRAPHY
---------------------------------------------------------------------------------*/
body {
    color: #57422b;
    font-size: 16px;
    font-weight: normal;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
}

/* better use body typo separated here (instead of with other HTML5 elements), avoid messing with external js generated styles*/


p {
    margin-bottom: 20px;
    text-align: left;
}

/* .h1-.h4 classes is good for multiply usage on same page (SEO in mind) -taken from Bootstrap */

h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    margin-bottom: 8px;
}

h1, .h1 {
    font-size: 36px;
}

h2, .h2 {
    font-size: 32px;
}

h3, .h3 {
    font-size: 28px;
}

h4, .h4 {
    font-size: 24px;
}

.headline {
    text-align: center;
    padding-bottom: 24px;
}

.headline:after {
    content: "";
    padding-bottom: 10px;
    display: block;
    border-bottom: 3px solid #959348;
    width: 100px;
    margin: 0 auto;
}

small, .small {
    font-size: 12px;
}


/* IMAGE SPRITES
--------------------------------------------------------------------------------------------*/
.sprites {
    display: inline-block;
    opacity: 0.9;
}

.twitter {
    background: url('sprites.png') no-repeat -341px 0;
    width: 143px;
    height: 54px;
}

.google {
    background: url('sprites.png') no-repeat -169px 0;
    width: 162px;
    height: 54px;
}

.facebook {
    background: url('sprites.png') no-repeat 0 0;
    width: 161px;
    height: 53px;
}


/*                                         ICONS
--------------------------------------------------------------------------------------------*/

/* Original method from: http://stackoverflow.com/questions/27492191/how-to-make-a-fancy-arrow-using-css 
If you want to use "hamburger" menu icon instead of arrow menu icon (which is more effective with text than the hamburger), you can find the solutions here: https://css-tricks.com/three-line-menu-navicon */

/* Default icon formatting */
.icon {
    display: inline-block;
    font-style: normal;
    position: relative;
}

.triangle {
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #fff;
}


/*                                         BUTTONS
--------------------------------------------------------------------------------------------*/
.btn {
    display: inline-block;
    position: relative;
    text-align: center;
    color: #fff;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 10px 16px;
    margin: 0 auto;
    margin-bottom: 1.3em;
    border: 1px transparent;
    border-radius: 12px;
    background-color: #bbb;
    transition: all 0.1s;
}

.btn:active {
    box-shadow: 0px 2px 0px #ccc;
    position: relative;
    top: 2px;
}

.brown-3d {
    width: 180px;
    margin-top: 50px;
    background-color: transparent;
    color: #8a672c;
}

.text-bottom {
    vertical-align: text-bottom;
}


/* MISC
--------------------------------------------------------------------------------------------*/
ul {

    margin-left: 16px
}

.clearfix:after, .clearfix p:after {
    content: "";
    display: table;
    clear: both;
}

.readmore {
    background-color: #949449;
    color: white;
    padding: 2px;
    border-radius: 4px;
    cursor: pointer;
}

.narrow {
    margin: 0 auto;
    max-width: 720px;
}

.imgleft {
    float: left;
    margin: 0 16px 0 0;
}

.imgright {
    float: right;
    margin: 0 0 0 16px;
}

.aligncenter {
    text-align: center
}

.p150 p {
    min-height: 150px
}

.hr {
    padding-bottom: 24px
}

@media screen and (max-width: 640px) {

    .p150 p {
        min-height: 0
    }

    .narrow {
        margin: 30px auto;
    }
}


/* FOOTER
--------------------------------------------------------------------------*/

footer {
    text-align: center;
    margin: 0 auto -30px auto;
    max-width: 1000px
}

footer p {
    color: #CC997F;
    padding-top: 20px;
    font-family: cursive;
}

.footerimage {
    background: url(footer.jpg) repeat-x;
    height: 144px;
}
