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

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

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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


html{
    overflow-y: scroll;
    background-color: #ffffff;
    color: #8a8a8a;
    font-size: 19px;
}

body{
    font-size: 100%;
    position: relative;
}

li{
    line-height: 120%;
}

#video_background { 
    margin-top: 150px;
    width: 100%;
    min-height: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: auto; 
    overflow: hidden;
    display: block;
    min-height: 100%;
    min-width: 100%;
    background-color: #ffffff;
}

#loop_ftp { 
    width: 1632px;
    min-height: 720px;
    max-height: 920px;
    height: 720px;
    min-width: 1279px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    z-index: 0; 
    overflow: hidden;
    display: block;
    position: relative;
}

/* Gallery */

#gallery{
    height: 720px;
    overflow: hidden;
    margin-top: 150px;
    margin-left: auto;
    margin-right: auto;
    width: 1280px;
    position: fixed;
    left: 50%;
    margin-left: -640px;
    z-index: 1000;
}

#gallery img{
    height: 720px;
    width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.gallery_ui_element{
    display: none;
}

.gallery_ui_element:hover{
    cursor: pointer;
    opacity:0.7;
    filter: alpha(opacity=70);
}


#image_container{
    z-index: 999;
}

#next{
    width: 87px;
    height: 135px;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/right_arrow.png) no-repeat;
    z-index: 1001;
    position: absolute;
    right: 10px;
    top: 300px;
}

#prev{
    width: 87px;
    height: 135px;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/left_arrow.png) no-repeat;
    z-index: 1001;
    position: absolute;
    left: 10px;
    top: 300px;
}

#pager_container{
    z-index: 1001;
}

a{
    font-weight: bold;
    text-decoration: underline;
    color: #7B7B7B;
}

a:hover{
    cursor: pointer;
    opacity: .7;
}


img{
    max-width: 100%;
    height: auto;
}

h2{
    margin: 20px 0 5px 0;
    font-size: 22px;
    line-height: 80%;
    color: #7f7f7f;
}

p{
    margin-top: 0px;
    line-height: 122%;
    font-size: 19px;
}

ul{
    margin-top: 0px;
    padding-left: 17px;
}

li{
    padding-left: 35px;
    margin-left: 0px;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/list.png) no-repeat left center;
    list-style: none;
}

#logo{
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    z-index: 9;
    margin-left: auto;
    margin-right: auto;
}

#countdown{
    position: absolute;
    left: 0;
    right: 0;
    top: 355px;
    color: #ffffff;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    z-index: 9;
    display: none !important;
}

.digits{
    height: 26px;
    margin-right: -3px;
    margin-bottom: 1px;
}

.time_unit{
    height: 30px;
    margin-top: -2px;
    margin-right: 8px;
}

#coming_soon{
    margin-right: 10px;
}

#container{
    position: relative;
    height: 100%;
    widows: 100%;
    max-width: 100%; 
}

#darkbox{
  display: none;
  position: fixed;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index:10;
  opacity:0.7;
  filter: alpha(opacity=70);
}


div#nav {
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    top: 450px;
    max-width: 505px;
    width: 95%;
    padding: 0 10px 0 20px;
    position: absolute;
    display: block;
}

#nav a{
    cursor: pointer;
}

div#nav img{
    margin: 0 0px 5px 0;
    max-width: 100%;
    height: 60px;
    cursor: pointer;
    -moz-backface-visibility: hidden;
    transition: opacity .1s ease-in-out;
}

div#nav img:hover{
    opacity: .8;
    -moz-backface-visibility: hidden;
}

h1{
    color: #ffffff;
    font-size: 3em;
}

.bold{
    font-weight: bold;
}

.content{
    display: none;
    z-index: 12;
}

.content_container{
    display: none;
    position: absolute;
    top: 90px;
    width: 680px;
    max-width: 702px;
    left: 50%;
    margin-left: -340px;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/content_bg.png);
    padding: 60px 20px 20px 20px;
    overflow: hidden;
    z-index: 1000;
    padding-bottom: 100px;

}

.trailer_container{
    display: none;
    position: fixed;
    top: 50%;
    width: 768px;
    height: 432px;
    left: 50%;
    margin-left: -384px;
    margin-top: -216px;
    background: #000000;
    padding: 0px;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid #a1a1a5;
}

#watch a span{
    display: none;
}

#watch_copy a{
    display: block;
    height: 120px;
    float: left;
    margin: 0 5px 5px 0;
}

#watch_steam{
    max-width: 321px;
    width: 100%;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/watch_steam.png) no-repeat center center;
}

#watch_youtube{
    max-width: 250px;
    width: 100%;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/watch_youtube.png) no-repeat center center;
}

#watch_itunes{
    max-width: 393px;
    width: 100%;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/watch_itunes.png) no-repeat center center;
}

#watch_amazon{
    max-width: 308px;
    width: 100%;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/watch_amazon.png) no-repeat center center;
}

#watch_vhx{
    max-width: 308px;
    width: 100%;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/watch_vhx.png) no-repeat center center;
}

#watch_copy{
    margin-top: 15px;
}

#nav_trailer_small{
    display: none;
}

#nav_premiere{
    display: none !important;
}

.intro{
    font-size: 20px;
}

.license_list{
    font-size: 16px;
}

.license_list li{
    padding-left: 10px;
}

#license_content h2{
    margin-bottom: 16px;
    font-size: 28px;
}

.orange{
    color: #f58e1f !important;
}

/* bios sub nav */

#sub_nav_bios{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 340px;
    text-align: right;
}

#dendi{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_dendi.png) no-repeat;
    height: 30px;
    width: 86px;
    display: block;
    margin-right: 10px;
    float: left;
}

#dendi:hover, #dendi:active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_dendi_active.png) no-repeat;
}

#bio_dendi p{
    max-width: 580px;
}

.dendi_active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_dendi_active.png) no-repeat !important;
}

#hyhy{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_hyhy.png) no-repeat;
    height: 30px;
    width: 78px;
    display: block;
    margin-right: 10px;
    float: left;
}

#hyhy:hover, #hyhyh:active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_hyhy_active.png) no-repeat;
}

.hyhy_active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_hyhy_active.png) no-repeat !important;
}

#fear{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_fear.png) no-repeat;
    height: 30px;
    width: 79px;
    display: block;
    margin-right: 20px;
    float: left;
}

#fear:hover, #fear:active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_fear_active.png) no-repeat;
}

.fear_active{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/name_fear_active.png) no-repeat !important;
}

#bio_fear p{
    max-width: 611px;
}

.bio img{
    margin-bottom: 36px;
}

.close_box{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/close_box.png) no-repeat;
    height: 30px;
    width: 32px;
    display: block;
    float: left;
    position: absolute;
    right: 17px;
    text-align: right;
    top: 12px;
    z-index: 1000;
}

.close_box:hover{
    opacity: .7;
}

.close_box_white{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/close_box_white.png) no-repeat;
}


.close_box:hover{
    cursor: pointer;
}

.outside{
    top: -40px !important;
    right: 3px !important;
}

.bio{
    display: none;
    color: #7b7b7b;
}

.bio p{
    color: #7b7b7b;
    font-size: 22px;
}

#bios{
    padding: 60px 20px 20px 20px;
    overflow: auto;
    z-index: 1000;
}

#banner_about, #banner_reviews{
    margin-bottom: 25px;
}

.quote{
    font-size: 21px;
    margin-top: 10px;
    line-height: 127%;
}

.reviewer{
    margin: 8px 0 45px 0;
    font-size: 19px;
}

#premeire_copy{
    padding-left: 15px;
}

.bio p{
    padding-left: 17px;
}

#about{
    height: 695px;
}


#about p{
    padding-left: 17px;
    max-width: 615px;
}

.about_copy{
    margin-top: 15px;
}

#reviews div{
    padding-left: 15px;
}

.quote_spike_tv{
    max-width: 650px
}


.quote_indie_game{
    max-width: 650px
}

.quote_wired{
    max-width: 593px
}

#news h2{
    margin-top: 36px;
}

#news p, #news h2{
    padding-left: 17px;
}

#news p{
    width: 90%;
}

#item_sets_promo{
    margin: 10px 0 15px 17px;
}

#bio_hyhy p{
    width: 90%;
}

/* Premiere */

.screening_option{
    background-color: #e6e6e6;
    height: 102px;
    float: left;
    margin-bottom: 6px;
}

.premiere_date{
    font-weight: bold;
    font-size: 34px;
    margin-top: 40px;
    line-height: 100%;
}

.premiere_time{
    font-size: 34px;
    margin-bottom: 20px;
}

.address{
    line-height: 120%;
}

.ticket_info{
    margin-bottom: 50px;
}

.screening_option span{
    display: none;
}

/* License */

#license_content{
    margin-left: 19px;
    width: 93%;
}

#license_content li{
    background: none;
}

ol.lower li{
    list-style: lower-alpha;
}

.number li{
    list-style: decimal;
}

footer{
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    width: 92%;
    text-align: center;
    height: 400px;
}

.footer_link:not(:first-child){
    margin-left: 10px;
}

#footer_sound_toggle img{
    margin-top: 3px;
    
}
#footer_sound_toggle{
    margin-left: 2px;
}

#footer_contact{
    margin-right: 25px;
}



#footer_valve{
    margin: 0 35px 0 35px;
}

footer img:hover{
    opacity: .7;
}

#language_wrapper{
    position: relative;
    top: 2px;
    margin-left: 34px;
}

#language_selector{
    display: none;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/content_bg.png);
    padding: 5px;
    position: absolute;
    right: -30px;
    bottom: 22px;
    z-index: 10;
}

#language_selector a{
    display: block;
    padding: 2px;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

#language_selector a:hover{
    opacity: .7;
}    

#footer_language{
    text-decoration: none;
    font-size: 15px;
    font-weight: normal;
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/arrow.png) right center no-repeat;
    padding-right: 17px;
}

#footer_language:hover{
    opacity: .7;
}

/* link to trailer for smaller screens */
@media only screen and (max-width: 800px) {
    #nav_trailer { 
        display:none; 
    }

    #nav_trailer_small { 
        display: inline; 
    }
}

/* move gallery ui for smaller screens */
@media only screen and (max-width: 1280px){
    .gallery_ui_element { 
        position: fixed !important;
    }

    #prev, #next{
        top:435px;
    }

    #gallery .close_box{
        top: 151px;
        right: 3px;
    }
}

/* laptop/ultrabook specific */
@media only screen and (max-width: 1375px) and (min-width: 1250px) and (max-height: 800px) {
    #loop_ftp {
        min-height: 0;
        height: 542px;
        width: 962px;
        margin-top: 55px;
        margin-left: auto;
        margin-right: auto;
        z-index: 0;
        overflow: hidden;
        display: block;
        background: #ffffff;
    }

    #video_background {
        margin-top: 0px;
    }    

    div#nav{
        top: 385px;
    }

    .content_container{
        top: 19px;
    }

    #countdown {
        position: absolute;
        left: 0;
        right: 0;
        top: 335px;
        color: #ffffff;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        z-index: 9;
    }

    #logo {
        position: absolute;
        left: 0;
        right: 0;
        top: 85px;
        z-index: 9;
        margin-left: auto;
        margin-right: auto;
    }

    #gallery{
        margin-top: 55px;
        width: 962px;
        height: 542px;
        max-width: 962px;
        min-width: 900px;
        margin-left: -481px;
    }

    #gallery img{
        height: 542px;
        width: 962px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery_ui_element { 
        position: absolute !important;
    }

    #prev, #next{
        top:200px;
    }

    #gallery .close_box{
        top: 3px;
        right: 6px;
    }
}


/* tablets */


/* 
@media screen and (min-width: 768px){
    #gallery{
        margin-top: 20px;
    }
    
    #video_background {
        margin-top: 20px;
    }  


    #mobile_bg{
        display: block;
    }

    video#loop_ftp{
        display:none;
    }

    #prev, #next{
        top:300px;
    }

    #gallery .close_box{
        top: 35px;
        right: 6px;
    }

    .content_container{
        width: 95% !important;
        top: 0;
        margin-left: 0;
        left: 0;
    }

    div#nav{
        top: 256px;
    }

    #logo{
        top:20px;
    }
} */

@media only screen and (max-width: 1064px) and (min-width: 600px) and (max-height: 1064px){
    #gallery{
        margin-top: 30px;
    }
    
    #video_background {
        margin-top: 30px;
    }  

        #prev, #next{
        top:300px;
    }

    #gallery .close_box{
        top: 35px;
        right: 6px;
    }

    .content_container{
        width: 100% !important;
        top: 30;
        margin-left: -370px;
    }

    #loop_ftp{
        background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/fallback_bg2.jpg) center top no-repeat #000;
        margin-left: -200px;
    }
}

/* phone */

/* #mobile_bg{
    background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/fallback_bg2.jpg) center right;
    display: none;
    height: 720px;
    margin-left: auto;
    margin-right: auto;
    max-height: 920px;
    min-height: 720px;
    min-width: 900px;
    overflow: hidden;
    width: auto;
    z-index: -1000;
} */

@media only screen and (max-width: 600px){
    #gallery{
        margin-top: 20px;
    }
    
    #video_background {
        margin-top: 20px;
    }  


    #mobile_bg{
        display: block;
    }

    #loop_ftp{
        background: url(https://cdn.cloudflare.steamstatic.com/apps/freetoplay/img/fallback_bg2.jpg) -670px top no-repeat #000;
        width: 1279px;
    }

    #prev, #next{
        top:300px;
    }

    #gallery .close_box{
        top: 35px;
        right: 6px;
    }

    .content_container{
        width: 100% !important;
        top: 30;
        padding: 60px 0 20px 0 !important;
        left: 0;
        margin-left: 0;
    }
    
    #sub_nav_bios{
        width: 284px;
        right: 18px;
    }

    .close_box{
        right: 0px;
    }

    div#nav{
        top: 256px;
        padding: 0px;
    }

    #logo{
        top:20px;
    }

    #countdown{
        display: none;
    }

    #footer_sound_toggle{
        display: none;
    }

    #language_wrapper{
        margin-left: 0;
    }
}



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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

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

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

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

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

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