/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

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

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

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

::selection {
    background: #1abc9c;
    text-shadow: none;
}

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

audio,
canvas,
img,
video {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Hungry Bear's styles
   ========================================================================== */
html, body {
    background-color: #222222;
    color: #FFF8D9;
}
/* Common */
h1, h2, h3, h4, h5, h6 {
    font-family: "Alegreya SC", serif;
    line-height: 1em;
    margin: 0.5em 0;
}
h2 {
    font-size: 2.5em;
}
h3 {font-size: 1.5em;}
a {
    color: #4dc7d2;
    text-decoration: none;
}
a:hover {
    color: #888;
}

ul li {
    margin-bottom: 0.5em;
}

em {font-size: 1.2em; font-weight: bold;}

.big {
    font-size: 1.5em !important;
}
.bigger {
    font-size: 2em !important;
}
.left {
    float: left !important;
}
.right {
    float: right !important;
}
.align-right {
    text-align: right;
}
.center {
    text-align: center;
}
.nolist {
    list-style: none;
    padding-left: 0;
}
.together {
    white-space: nowrap;
}

/* Layout */
header {
    color: #fff;
}
.container {
    margin: 0 auto;
    width: 100%;
    max-width: 960px;
}

section:after {
    border-bottom: 1px solid #FFF8D9;
    content: " ";
    display: block;
    margin: 5% auto 8%;
    width: 50%;
}
footer section:after {
    border-bottom: 1px solid #222222;
}

section h2 {
    padding: 0 4%;
}
.row {
    padding: 0 2%;
}
ul.row {
    list-style: none;
}
.row:before,
.row:after {
    content: " ";
    display: table;
}
.row:after {
    clear: both;
}
.row .column {
    float: left;
    padding: 0 2%;
    width: 29.3%;
}
.row .column.col2 {
    width: 62.6%;
}
.row .column.full {
    width: 96%;
}
.row .column.half {
    width: 46%;
}

section iframe,
section img {
    max-width: 100%;
}


/* Header */
header {
    background-color: #44b9c3;
    background-image: url('../img/banner-bg.jpg');
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    -webkit-box-shadow: inset 0 0 50px rgba(0,0,0,0.4);
    -moz-box-shadow: inset 0 0 50px rgba(0,0,0,0.4);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.4);
    overflow: hidden;
}
header .container {
    position: relative;
}
header h1 {
    background-image: url('../img/logo-thehungrybear.png'); /* fallback */
    background-image: url('../img/logo-thehungrybear.svg'), none;
    background-repeat: no-repeat;
    background-position: 50% 0;
    color: #FFF8D9;
    margin: 0 auto;
    width: 60%;
    height: 50%;
    text-indent: -99999px;
    position: absolute;
    top: 15%;
    left: 20%;
    z-index: 1;

    -webkit-transition: opacity 1s ease;
    -moz-transition: opacity 1s ease;
    transition: opacity 1s ease;
}
header .banner {
    width: 100%;
    height: 70%;
}
header .social {
    position: absolute;
    top: 0;
    right: 10px;
    z-index: 10;
}
header .social,
header #instruction {
    opacity: 0;

    -webkit-transition: opacity 300ms ease;
    -moz-transition: opacity 300ms ease;
    transition: opacity 300ms ease;
}
header .container:hover .social,
header .container:hover #instruction {
    opacity: 1;
}
header .container:hover h1 {
    opacity: 0;
} 

/* mini-game buttons */
#banner-game {
    position: relative;
}
#instruction {
    color: #FFF8D9;
    font-family: "Alegreya SC", serif;
    font-size: 1.6em;
    position: absolute;
    top: 80%;
    left: 50%;
    margin-left: -27%;
    width: 54%;
    text-align: right;
    /*text-transform: uppercase;*/
    text-shadow: 1px 1px 1px #000;
}
.flash {
    -webkit-animation: fade 500ms infinite;
       -moz-animation: fade 500ms infinite;
        -ms-animation: fade 500ms infinite;
         -o-animation: fade 500ms infinite;
            animation: fade 500ms infinite;
}
@-webkit-keyframes fade{0%{opacity: 0.1;}50%{opacity: 0.9;}100%{opacity: 0.1;}}
@-moz-keyframes fade{0%{opacity: 0.1;}50%{opacity: 0.9;}100%{opacity: 0.1;}}
@-ms-keyframes fade{0%{opacity: 0.1;}50%{opacity: 0.9;}100%{opacity: 0.1;}}
@-o-keyframes fade{0%{opacity: 0.1;}50%{opacity: 0.9;}100%{opacity: 0.1;}}
@keyframes fade{0%{opacity: 0.1;}50%{opacity: 0.9;}100%{opacity: 0.1;}}


footer {
    background-color: #fff;
    color: #222;
    padding: 2em 0;
}
footer .credit {
    font-size: 1.1em;
}
footer .credit .bigger {
    line-height: 1em;
}

.title {
    font-family: "Alegreya SC", serif;
    font-size: 1.5em;
}

/* Content */
.caption {
    font-family: "Alegreya", serif;
    font-size: 2em;
    text-align: center;
    margin: 0.5em 10% 1em;
}
.caption p {
    font-size: 1em;
}
.download-top {margin-top: -1.5em; position: relative; z-index: 10;}

.pullout {
    font-family: "Alegreya", serif;
    font-size: 1.5em;
}

.screenshot {
    background-color: #FFF8D9;
    display: inline-block;
    box-shadow: 2px 2px 5px #000;
    margin: 1em 0;
    padding: 3%;
    -webkit-transform: rotate(3deg);
    -moz-transform: rotate(3deg);
    transform: rotate(3deg);
    -webkit-transition: -webkit-transform 300ms ease;
    -moz-transition: -moz-transform 300ms ease;
    transition: transform 300ms ease;
}
.screenshot:hover {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    transform: rotate(0deg);
}
.social-links {
    list-style: none;
    padding: 0;
}
.social-links li {
    float: none;
}

/* FancyBox */
.fancybox-skin {
    border-radius: 0;
    background: #FFF8D9;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 640px) {
    body {
        font-size: 11px;
    }
    body p,
    body ul {
        font-size: 1.4em;
    }
    header h1 {
        width: 80%;
        height: 64%;
        left: 10%;

        opacity: 1 !important;
    }
    header .social,
    header:hover .social {
        display: none;
    }
    .social-links li {
        float: none;
    }
    .row .column {
        width: 96% !important;
    }
    .row iframe {
        height: 240px;
    }

    #instruction,
    #banner-game {visibility: hidden;}
}

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

    .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;
    }

    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;
    }
}