/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

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

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

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

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

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

img {
    vertical-align: middle;
}

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

textarea {
    resize: vertical;
}

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


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

    #game_wrap {
        width: 880px;
        height: 565px;
        margin: 0 auto;
        position: relative;

        transform-origin:0% 0%;
        -ms-transform-origin:0% 0%; /* IE 9 */
        -webkit-transform-origin:0% 0%; /* Chrome, Safari, Opera */
    }
    #game_bg {
        background: transparent url('../img-opt/game_bg.jpg') 0 0 no-repeat;
        width: 880px;
        height: 565px;
        position: absolute;
        top: 0;
        left: 0;
        display: none;
    }
    #game_canvas {
        cursor: crosshair;
        position: relative;
        touch-action: none;
    }
    #game_ui {
        position: absolute;
        top: 0;
        left: 140px;
        font-family: helsinkiregular;
        color: #ffffff;
        display: none;
        width: 724px;
        height: 44px;
    }
    #game_ui > div {
        float: left;
    }
    #count_text {
        padding-top: 8px;
        margin-right: 10px;
        height: 22px;
        max-width: 112px;
        overflow: hidden;
    }
    #counter {

    }
    #counter > div {
        float: left;
        width: 13px;
        height: 28px;
        background: url('../img-opt/new-sprite.png') no-repeat -205px -452px;
        margin-right: 5px;
        position: relative;
        top: 4px;
    }
    #counter > div.active {
        background: url('../img-opt/new-sprite.png') no-repeat -205px -418px;
    }
    #dinoforce_text {
        padding-top: 8px;
        height: 22px;
        width: 91px;
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 176px;
    }
    #dinoforce {
        font-size: 2em;
        color: #f8e839;
        width: 82px;
        text-align: center;
        height: 44px;
        position: absolute;
        top: 0;
        left: 275px;
    }
    #time_text {
        padding-top: 8px;
        height: 22px;
        width: 58px;
        text-align: right;
        position: absolute;
        top: 0;
        right: 312px;
        overflow: hidden;
    }
    #time {
        background-color: #0042ff;
        -webkit-border-radius: 5px 5px 5px 5px;
        border-radius: 5px 5px 5px 5px;
        padding: 2px 8px;
        position: absolute;
        top: 6px;
        width: 36px;
        text-align: center;
        right: 258px;
    }
    #score_text {
        padding-top: 8px;
        margin-right: 5px;
        height: 22px;
        width: 74px;
        text-align: right;
        position: absolute;
        top: 0;
        right: 177px;
        overflow: hidden;
    }
    #score {
        color: #d99635;
        padding-top: 4px;
        width: 90px;
        font-size: 1.4em;
        height: 30px;
        position: absolute;
        top: 0;
        right: 88px;
        overflow: hidden;
    }
    #sound_btn {
        background: url('../img-opt/new-sprite.png') no-repeat -155px -460px;
        width: 44px;
        height: 36px;
        cursor: pointer;
        top: 0;
        right: 45px;
        position: absolute;
    }
    #sound_btn.off {
        background: url('../img-opt/new-sprite.png') no-repeat -84px -487px;
    }
    #sound_btn:hover {
        background: url('../img-opt/new-sprite.png') no-repeat -155px -418px;
    }
    #help_btn {
        background: url('../img-opt/new-sprite.png') no-repeat -164px -502px;
        width: 44px;
        height: 36px;
        cursor: pointer;
        position: absolute;
        top: 0;
        right: 0;
    }
    #help_btn:hover {
        background: url('../img-opt/new-sprite.png') no-repeat -164px -544px;
    }
    #dinoforce_bg {
        background: url('../img-opt/new-sprite.png') no-repeat -4px -418px;
        width: 145px;
        height: 63px;
        position: absolute;
        top: 37px;
        left: 242px;
        display: none;
    }
    #intro_screen {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent url('../img-opt/intro.jpg') 0 0 no-repeat;
        width: 880px;
        height: 565px;
    }
    #intro_text_wrap {
        position: absolute;
        top: 305px;
        left: 45px;
        width: 380px;
        height: 190px;
        overflow: hidden;
    }
    #intro_text1 {
        font-family: helsinkiregular;
        font-size: 2.8em;
        color: #000000;
        margin-bottom: 10px;
    }
    #intro_text2 {
        font-family: helsinkiregular;
        font-size: 1.2em;
        color: #000000;
        width: 300px;
        line-height: 1.2em;
    }
    #intro_text3 {
        font-family: helsinkiregular;
        font-size: 3em;
        color: #000000;
        position: absolute;
        top: 33px;
        left: 659px;
        width: 124px;
        height: 67px;
        overflow: hidden;
    }
    #copyright_top {
        color: #6c6d6d;
        font-family: arial, sans-serif;
        font-size: 0.7em;
        position: absolute;
        left: 40px;
        bottom: 20px;
    }
    #copyright_bottom {
        color: #6c6d6d;
        font-family: arial, sans-serif;
        font-size: 0.7em;
        position: absolute;
        left: 40px;
        bottom: 6px;
    }
    #htp {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent url('../img-opt/htp.jpg') 0 0 no-repeat;
        width: 880px;
        height: 565px;
        display: none;
    }
    #htp_text1 {
        position: absolute;
        top: 5px;
        left: 220px;
        font-family: helsinkiregular;
        width: 575px;
        height: 42px;
        overflow: hidden;
        text-align: center;
        font-size: 1.9em;
        color: #000000;
    }
    #htp_text2 {
        position: absolute;
        top: 50px;
        left: 250px;
        font-family: helsinkiregular;
        width: 545px;
        height: 40px;
        overflow: hidden;
        text-align: center;
        font-size: 0.9em;
        line-height: 1.4em;
        color: #000000;
    }
    #htp_text3 {
        position: absolute;
        top: 100px;
        left: 375px;
        width: 390px;
        height: 20px;
        overflow: hidden;
        text-align: right;
        font-size: 0.9em;
        line-height: 1.4em;
        color: #000000;
    }
    #htp_text4 {
        font-family: helsinkiregular;
        color: #000000;
        position: absolute;
        top: 136px;
        left: 342px;
        font-size: 0.8em;
        text-align: center;
        width: 40px;
        height: 18px;
        overflow: hidden;
    }
    #htp_text5 {
        font-family: helsinkiregular;
        color: #000000;
        position: absolute;
        top: 438px;
        left: 194px;
        font-size: 1.5em;
        text-align: center;
        width: 138px;
        height: 33px;
        overflow: hidden;
    }
    #htp_text3 span {
        font-family: helsinkiregular;
    }
    #load_progress {
        position: absolute;
        bottom: 50px;
        right: 492px;
        font-size: 1.6em;
        color: #000000;
        display: none;
        width: 200px;
        text-align: left;
    }
    #play_now {
        position: absolute;
        bottom: 50px;
        right: 492px;
    }
    .btn-wrap {
        height: 51px;
        padding: 0 34px;
        cursor: pointer;
    }
    .btn-left {
        background: url('../img-opt/new-sprite.png') no-repeat -84px -529px;
        position: absolute;
        top: 0;
        left: 0;
        width: 34px;
        height: 51px;
    }
/*    .touch .btn-left {
        background: url('../img-opt/btn-cap-left-large.png') no-repeat 0 0;
        background-size: auto 100%;
    }*/
    .btn-right {
        background: url('../img-opt/new-sprite.png') no-repeat -4px -502px;
        position: absolute;
        top: 0;
        right: 0;
        width: 34px;
        height: 51px;
    }
/*    .touch .btn-right {
        background: url('../img-opt/btn-cap-right-large.png') no-repeat 0 0;
        background-size: auto 100%;
    }*/
    .btn-text {
        text-align: center;
        font-family: helsinkiregular;
        color: #ffffff;
        height: 51px;
        background: transparent url('../img-opt/btn-tile.png') 0 0 repeat-x;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        padding: 13px 18px 0 12px;
        /*min-width: 167px;*/
        font-size: 1.2em;
    }
/*    .touch .btn-text {
        background: transparent url('../img-opt/btn-tile-large.png') 0 0 repeat-x;
        background-size: auto 100%;
    }*/
    .btn-wrap:hover .btn-left {
        background: url('../img-opt/new-sprite.png') no-repeat -124px -529px;
    }
/*    .touch .btn-wrap:hover .btn-left {
        background: url('../img-opt/btn-cap-left-large-over.png') no-repeat 0 0;
        background-size: auto 100%;
    }*/
    .btn-wrap:hover .btn-right {
        background: url('../img-opt/new-sprite.png') no-repeat -44px -502px;
    }
/*    .touch .btn-wrap:hover .btn-right {
        background: url('../img-opt/btn-cap-right-large-over.png') no-repeat 0 0;
        background-size: auto 100%;
    }*/
    .btn-wrap:hover .btn-text {
        background: transparent url('../img-opt/btn-tile-over.png') 0 0 repeat-x;
        color: #000000;
    }
/*    .touch .btn-wrap:hover .btn-text {
        background: transparent url('../img-opt/btn-tile-large-over.png') 0 0 repeat-x;
        background-size: auto 100%;
    }*/
    #load_progress span {
        font-family: helsinkiregular;
    }
    #continue {
        position: absolute;
        bottom: 16px;
        right: 20px;
    }
    #end_screen {
        position: absolute;
        top: 0;
        left: 0;
        background: transparent url('../img-opt/end_bg.jpg') 0 0 no-repeat;
        width: 880px;
        height: 565px;
        display: none;
    }
    #final_score_text {
        color: #222222;
        top: 166px;
        right: 0;
        font-family: helsinkiregular;
        font-size: 1.4em;
        position: absolute;
        width: 221px;
        text-align: center;
    }
    #final_score {
        position: absolute;
        top: 200px;
        right: 0;
        color: #d99635;
        font-size: 2em;
        font-family: helsinkiregular;
        width: 221px;
        height: 28px;
        text-align: center;
        height: 44px;
        background-color: #000000;
        -webkit-border-radius: 5px 0 0 5px;
        border-radius: 5px 0 0 5px;
    }
    #result_title {
        position: absolute;
        top: 80px;
        left: 40px;
        font-family: helsinkiregular;
        color: #000000;
        font-size: 3em;
    }
    #result_text {
        position: absolute;
        top: 144px;
        left: 40px;
        font-family: helsinkiregular;
        color: #000000;
        font-size: 1em;
        width: 210px;
    }
    #speech_bubble {
        position: absolute;
        top: 435px;
        left: 338px;
        font-family: helsinkiregular;
        color: #000000;
        font-size: 1.2em;
        width: 138px;
        text-align: center;
    }
    #play_again {
        position: absolute;
        top: 276px;
        right: 13px;
    }
    #see_toys {
        position: absolute;
        top: 340px;
        right: 4px;
        /*background: url('../img-opt/new-sprite.png') no-repeat -4px -4px;*/
        background: url('../img-opt/see-toys-ad.png') no-repeat 0 0;
        width: 215px;
        height: 221px;
        text-align: center;
        text-decoration: none;
    }
    #see_toys img {
        margin: 35px auto 2px;
        display: block;
    }
    #see_toys_text {
        font-family: helsinkiregular;
        color: #fff;
        text-decoration: none;
    }
    #see_toys:hover {
        background: url('../img-opt/see-toys-ad-over.png') no-repeat 0 0;
    }
    #see_ad {
        position: absolute;
        top: 9px;
        left: 11px;
        color: #ffffff;
        font-family: helsinkiregular;
        width: 53px;
        text-align: center;
        font-size: 0.9em;
        height: 19px;
        overflow: hidden;
    }

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

@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; /* 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;
    }
}
