/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
#map_canvas * {
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}
a {
    color: #00295c;
    text-decoration: none;
}
a img {
    border: 0;
}
body {
    font-size: 14px;
    text-align: center;
    background-image: url(../img/background.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #0e2545;
    background-size: contain;
}
.wrapper-container {

}
.wrapper {
    width: 960px;
    margin: 0 auto;
    text-align: left;
}
.main-header {

}
.header-text {
    text-align: center;
    width: 960px;
    height: 274px;
    text-indent: -99em;
    overflow: hidden;

    background-image: url(../img/header.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;

    margin: 40px auto 20px;
}
.header-text span {

}
.main-body {

}
.section {
    padding: 20px;
    margin: 0 10px 20px;
    background-color: #fff;
    clear: left;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.pull-left {
    float: left;
    clear: none;
}
.pull-right {
    float: right;
    clear: none;
}
.one-column {
    width: 172px;
}
.two-column {
    width: 364px;
}
.three-column {
    width: 556px;
}
.section h2 {
    margin: 0 0 1em;
    padding: 0;
    color:  #80b539;
}
.section p {
    margin: 0 0 1em;
    padding: 0;
}
.section p:last-child {
    margin: 0;
}
.section p.small {
    font-size:  0.8em;
}
.intro {
}
.map {
    height: 700px;
    padding: 0;
}
#map_canvas {
    width: 100%;
    height: 100%;
}
.social-facebook {
    height: 90px;
    padding: 0;
    position: relative;
    overflow: hidden;
}
.social-facebook > a {
    display: block;
    padding: 20px;
    min-height: 90px;
}
.social-facebook img {
    float: left;
    line-height: 0;
    margin: 0 10px 0 0;
    border: 1px solid #fff;
    box-shadow: 0 0 1px rgba(0,0,0,0.4);
}
.social-facebook iframe {
    height: 20px;
    line-height: 0;
    margin: 5px 0 0;
    position: absolute;
    bottom: 20px;
    left: 82px;
}
.social-facebook a {
    font-weight: bold;
    font-size: 18px;
}
.social-twitter {
    line-height: 0;
}
.social-twitter {
    padding: 0;
}
.social-twitter a {
    font-weight: bold;
    font-size: 18px;
    display: block;
    line-height: 1;
    padding: 20px;
}
.social-twitter iframe {
    height: 388px;
}
.download {
    padding: 0;
}
.download-pdf {
    font-size: 20px;
    line-height: 1;
    letter-spacing: 1px;

    padding: 20px;
    display: block;
    background-image: url(../img/download-bg.png);
    background-position: 50% 50%;

    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
}
.download-pdf img {
    float: left;
    margin-right: 20px;
}
.download-pdf .line-one {
    padding-bottom: 5px;
    display: block;
}
.download-pdf .line-two {
    font-size: 25px;
    display: block;
    text-transform: uppercase;
}
.info-ball {
    background:  transparent;
    box-shadow:  none;
    padding:  0;
}
.info-ball img {
    max-width:  120%;
    height:  auto;
    margin-left:  -10%;
}
.info-pubs ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.info-pubs li {
    margin: 0;
    padding: 0 0 10px;
}
.info-pubs li:last-child {
    padding: 0;
}
.info-pubs a {
    display: block;
    padding: 10px;

    background-color: #00295c;
    background-image: url(../img/bee-link.png);
    background-position: right 50%;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 4px;
}
.info-prizes {
    background-image: url(../img/wood.jpg);
    background-position: 50% 50%;
    background-size: cover;
}
.info-prizes img {
    margin-top: 20px;
    width: 146px;
}
.info-prizes div {
    width: 216px;
    float: left;
    font-size: 14px;
    padding: 80px 20px 60px;

    background-image: url(../img/prizes.png);
    background-position: center top;
    background-repeat: no-repeat;
}
.fancybox-hide {
    display: none;
}
.fancybox-article {
    text-align: left;
    padding: 20px;
}
.fancybox-article img {
    float: right;
    margin: 0 0 20px 20px;
}
.fancybox-article h2 {
    margin: 0 0 20px;
}
.brakspear {
    margin-right: 10px;
}
.other-sites {
    padding: 0;
    margin: 0 10px 0 0;
    overflow: hidden;
}
.other-sites article {
    display: block;
    width: 49%;
    margin: 0 0 20px;
    padding: 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    background-size: cover;

    background-position: center top;
    background-repeat: no-repeat;
}
.other-sites .countryaletrail {
    background-image: url(../img/bcat-bg.jpg);
    position: relative;
}
.other-sites .brakspearpubs {
    background-image: url(../img/brakspearpubs-bg.jpg);
}
.other-sites article a {
    overflow: hidden;
    text-indent: -999em;
    height: 80px;
    display: block;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}
.other-sites .new {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background-image: url(../img/new-corner.png);
    background-position: top right;
    background-repeat: no-repeat;
    z-index: 0;
}
.social {

}
.main-footer {
    padding: 0 10px;
    float: left;
    width: 960px;
    margin: 0 auto;
    position: relative;

    font-size: 16px;
    letter-spacing: 1px;
    color: #a7b2c1;
}
.mandj-footer {
    clear: both;
    width: 300px;
    margin: 40px auto;
}
.mandj-footer a {
    font-size: 12px;
    font-weight: bold;
    line-height: 1.2em;
    text-align: center;
    display: block;
    color:  #a7b2c1;
}
.mandj-footer a img {
    margin-bottom: 5px;
}
.mandj-footer a span {
    display: block;
}
.brakspear-footer {
    padding: 10px;
    font-size: 12px;
    margin-right: 10px;
    min-height: 50px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);

    background: #233e64;
    color: #a7b2c1;
}
.brakspear-footer a {
    color: #a7b2c1;
    font-weight: bold;
}
a.brakspear-logo-footer {
    float: right;
    margin: 5px 10px 0;
}
.brakspear-footer p {
    margin: 0 0 5px;
    padding: 0;
    font-size: inherit;
}
.brakspear-footer ul {
    font-size: inherit;
    margin: 0;
    padding: 0;
    list-style: none;
}
.brakspear-footer li {
    float: left;
    margin: 0 0.5em 5px 0;
}
.social-media-links {
    clear: left;
}
.social-media-links a:last-child {
    margin-right: 0.2em;
}
.popup-content {
    position: relative;
    font-size: 12px;
    width: 240px;
}
.popup-content img {
    position: absolute;
    top: 0;
    right: 10px;
    border: 1px solid #cacaca;
    padding: 1px;
}

.mobile {
    display: none;
}
.beers {
    margin: 0 10px 0 0;
}
.beers > a {
    width: 180px;
    display: block;
}
.beers img {
    margin-bottom: 0px;
}
.beers span {
    display: block;
    clear: both;
    text-align: center;
    font-weight: bold;
}
.fancybeer {
    font-size: 10px;
    background-color: #fefce8;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}
.fancybeer h2 {
    font-size: 1.2em;
}
.fancybeer p {
    font-size: 1.2em;
}
.fancybeer img {
    float: left;
    width: 120px;
    margin: 10px;
}
.fancybeer-inner {
    padding: 0 20px 0 140px;
}



/* Small screens */
@media only screen and (max-width: 640px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }

    .wrapper {
        width: 100%;
        overflow-x: hidden;
    }
    .header-text {
        width: 96%;
        margin: 10% 2%;
        min-height: 100px;
        height: auto;
        background-position: 50% 0;
        background-size: contain;
    }
    .main-footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .section ,
    .main-footer > * {
        width: 96%;
        margin: 0 2% 20px;
    }
    .download-pdf {
        text-align: center;
        display: block;
    }
    .download-pdf img {
        margin: 0 auto;
        float: none;
        width: 48px;
        display: block;
    }
    .map {
        height: 480px;
    }
    .social {
        clear: both;
    }
    .social ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .social li {
        margin-bottom: 10px;
    }
    .social li:last-child {
        margin-bottom: 0;
    }
    .social a {

        display: block;
        padding: 0 4px;
        line-height: 32px;

        background-color: #00295c;
        background-image: url(../img/bee-link.png);
        background-position: right 50%;
        background-repeat: no-repeat;
        color: #fff;
        border-radius: 4px;
    }
    .social img {
        float: left;
        margin-right: 10px;
        width: 24px;
        margin-top: 4px;
    }
    .social span {
        display: block;
        line-height: 32px;
    }
    .info-prizes div {
        margin: 0 auto;
        float: none;
    }
    .fancybox-hide {
        width: 100%;
    }
    .brakspear-footer {
    }
    .social-media-links .website {
        display: block;
    }
    .mandj-footer {
    }
    .beers,
    .other-sites {
        width: 96%;
        margin: 0 2%;
    }
    .beers article {
        width: 100%;
    }
    .other-sites article {
        width: 100%;
        margin: 0 0 20px;
    }
    .other-sites article a {
        height: 0;
        padding-bottom: 50%;
    }

    .brakspear-logo-footer.pull-right {
        clear: both;
        float: none;
        margin: 0 auto 20px;
        display: block;
        text-align: center;
    }
    .info-ball {
        text-align: center;
    }
    .info-ball img {
        width: auto;
        max-width: 100%;
        max-height: 200px;
        margin: auto;
    }
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
