html {
    max-width: 100%;
    height:100%;
    overflow:hidden;
}


/* Prevents scrolling on iOS? (actually it doesn't seem to help) */
body,
html {
    position: fixed;
}

* {
    -webkit-box-sizing: border-box; /* Safari, other WebKit */
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    box-sizing: border-box; /* Opera/IE 8+ */
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: Arial, sans-serif;

    height:100%;
    overflow:hidden;

    /*settings to keep it from going off center when we force fullscreen*/
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;

}

.rendererView {
    position: fixed;
    display: block;
}

#gamepage {
    overflow-y: auto;
    overflow-x: hidden;
}

.gamepage_ios {
    overflow: scroll; /* has to be scroll, not auto */
    -webkit-overflow-scrolling: touch;
}

#game_header {
    font-size: 300%;
    font-weight: bold;
    display:block;
    font-family: 'Jockey One', sans-serif;
}


#game_authors {
    opacity:0.7;
}


#tags {
    display:block;
}

#game_description{
    display:block;
    max-width:640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:50px;
}


#game_status, #game_news {
    display:block;
    max-width:320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom:25px;
    text-align:center;
}

#game_news {
    border-style: double;
    border-width: 9px;
}



/*
* SCREENSHOT FORMATTING
*/
#scr_container {
    display:inline-block;
    margin: 0 auto;
}


#scr_main {
    float:left;
}

#scr_main img {
    /*width: auto;*/
    cursor:pointer;
}

#scr_thumb {
    width: inherit;
}

#scr_thumb img {
    /*width: 23.4%;*/
    cursor:pointer;
}

#scr_thumb div {
    display: inline-block;
    vertical-align:top;
    line-height: 0;   /* eliminates line break padding */
}

#adblock_msg {
    text-align:center;
    font-size: 10px;
    margin-bottom: 15px;
}


#canvas_warning, #lowperf_dialog, .warning-dialog {
    position:absolute;
    width:100%;
    background-color: #b69f3f;
    border: 2px #252846 dashed;
    font-size: 18px;
    text-align:center;
    color: #31245C;
}

#canvas_warning .btn {
    font-size: 32px;
    color: #074412;
    border: double 8px #074412;
    margin: 16px;
}

#canvas_warning a:link,
#canvas_warning a:visited,
#canvas_warning a:hover,
#canvas_warning a:active{
    color: #074412;
}



#canvas_warning .btn:hover {
    color: #b69f3f;
    border: double 8px #b69f3f;
    background-color: #074412;
    cursor:pointer;
}

#canvas_warning .btn:hover a:link,
#canvas_warning .btn:hover a:visited,
#canvas_warning .btn:hover a:hover,
#canvas_warning .btn:hover a:active{
    color: #b69f3f;
}






@-webkit-keyframes pop_in {
    from{
        -webkit-transform: scale(0,1);
        -ms-transform: scale(0,1);
        transform: scale(0,1);
    }
    to  {
        -webkit-transform: scale(1,1);
        -ms-transform: scale(1,1);
        transform: scale(1,1);
    }
}


@keyframes pop_in {
    from{
        -webkit-transform: scale(0,1);
        -ms-transform: scale(0,1);
        transform: scale(0,1);
    }
    to  {
        -webkit-transform: scale(1,1);
        -ms-transform: scale(1,1);
        transform: scale(1,1);
    }
}


@-webkit-keyframes pop_out {
    from{
        -webkit-transform: scale(1,1);
        -ms-transform: scale(1,1);
        transform: scale(1,1);
    }
    to  {
        -webkit-transform: scale(0,1);
        -ms-transform: scale(0,1);
        transform: scale(0,1);
    }
}


@keyframes pop_out {
    from{
        -webkit-transform: scale(1,1);
        -ms-transform: scale(1,1);
        transform: scale(1,1);
    }
    to  {
        -webkit-transform: scale(0,1);
        -ms-transform: scale(0,1);
        transform: scale(0,1);
    }
}






.popup
{
    background-color:#00101f;
    border-style:solid;
    border-width:2px;
    border-color:#001830;
    border-top-width:1px;
    color: #106ecc;
    font-size:20px;
    font-family:monospace;
    position:absolute;
    z-index:11;
    padding:10px;
    display:none;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
	overflow-y:auto;
}

.popup li {
    margin-bottom:20px;
}

.popup b {
    font-weight:900;
    color: #227737;
}


@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {

    /* Retina-specific stuff here */
    .popup {
        font-size: 30px;
    }
}


.popup_in {
    -webkit-animation-name: pop_in;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-timing-function: cubic-bezier(.57,1.62,.69,1.62);

    animation-name: pop_in;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(.57,1.62,.69,1.62);
}

.popup_out {
    -webkit-animation-name: pop_out;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-timing-function: cubic-bezier(.31,-0.51,.63,-0.32);

    animation-name: pop_out;
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(.31,-0.51,.63,-0.32);
}



.popup .contents
{
   /* display:none;*/
    margin:auto;
}

.popup input
{
    background-color:#001830;
    border-style:solid;
    border-width:1px;
    border-color:#004992;
    color: #004992;

    font-size:20px;
    font-family:monospace;
}


@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {

    /* Retina-specific stuff here */
    .popup input {
        font-size: 40px;
    }
}


.popup_cover
{
    background: #001830;
    opacity: 0.5;
    position:absolute;
    width:100%;
    height:100%;
    display:none;
    z-index:9;
    top:0;
    left:0;
}


.black_fade
{
    background: black;
    opacity: 1.0;
    position:absolute;
    width:100%;
    height:100%;
    display:none;
    z-index:9;
    top:0;
    left:0;
}

::-webkit-input-placeholder { color:#445; }
::-moz-placeholder { color:#445; } /* firefox 19+ */
:-ms-input-placeholder { color:#445; } /* ie */
input:-moz-placeholder { color:#445; }

.dlbutton {
    width: 200px;
    border-width: 6px;
    border-style: double;
    cursor: pointer;
    padding: 3px;
    margin-top: 6px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}

.comment_button {
    width: 200px;
    border-width: 6px;
    border-style: double;
    cursor: pointer;
    padding: 3px;
    margin-top: 6px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    font-size: 18px;
}

.comment_form_button {
    border-width: 3px;
    border-style: solid;
    cursor: pointer;
    padding: 3px;
    margin-top: 6px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    font-size: 18px;
}




.dlformbutton {
    display: inline-block;
}

@media screen and (max-width: 400px) {
    .dlbutton {
        width:auto;
    }
}

.email_popup_input {
    padding:0;
    margin:0 0 0 0;
    width:290px;
    float:left
}

@media screen and (max-width: 450px) {
    .email_popup_input {
        width:auto;
}
}


@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {

    /* Retina-specific stuff here */
    .email_popup_input {
        padding: 0;
        margin: 0 0 0 0;
        width: 580px;
        float: left
    }
}


#download_form {
    width:500px;
    margin-left:auto;
    margin-right:auto;
    padding-top:5px;
    padding-bottom:5px;
    margin-bottom: 15px;
}

.inner_download_form {
    padding:10px;
}

#yousure_DL {
    display:inline-block;
    max-width: 200px;
}

@media screen and (max-width: 640px) {
    #download_form {
        width:auto;
    }
}


#download_form label {
    font-size: 14px;
}

#download_form table {
    width: 400px;
    margin-top:15px;
    margin-bottom:15px;
    margin-left:auto;
    margin-right:auto;
}


#download_form input {
    border-width: 3px;
    border-style: solid;
    font-size:16px;
}

#emailbox_and_button {
    text-align:center;
}


hr {
    padding: 0;
    margin:0;
    border: none;
    border-top: 9px double;
}

.hr_hangunder {
    border: none;
    border-left: 9px double;
    border-right: 9px double;
    border-bottom: 9px double;
    display: inline-block;
    padding: 0 5px 5px 5px;
}


/*COMMENTS*/
.comment * {
    padding:0;
}

.comment_name {
    float:left;
    padding:3px;
}

.comment_name a:link,
.comment_name a:visited,
.comment_name a:hover,
.comment_name a:active
{
    text-decoration: underline;
}

.comment_time {
    float:right;
}

.comment_body {
    border-width:3px;
    border-style:solid;
    clear:both;
}


.comment {
    margin: 15px;
}

#comments {
    max-width:655px;  /* 640 + comment margin */
    margin-left: auto;
    margin-right: auto;
}

.please_comment {
    text-align: center;
    font-size: 24px;
}


/* COMMENT FORM */
#add_comment_form {
    padding:8px;
}

#new_comment {
    border: 3px solid;
    max-width:610px;
    margin-left:auto;
    margin-right:auto;
    margin-top:15px;
}

#new_comment textarea {
    border-width:3px;
    height:300px;
}

#comment_error {
    margin:0 auto;
    display:none;
}

.newcom_head {
    display:inline-block;
    padding:8px;
    margin:0;
}

#bbcode_note {
    display:block;
    font-size:10px;
    text-align: center;
    margin-bottom:12px;
}

#captcha_div {
    float:left;
}

#refresh_captcha {
    display:block;
}


#comment_questions {
    float:right;
    line-height: 28px;
    width:300px;
}


#comment_error {
    clear: both;
}

#comment_text_input {
    display:block;
    width:100%;
    resize: none;
    margin-bottom:15px;
}



/*ABOUT TEXT */
#about_text {
    /*position:absolute;*/
    position:relative;
    z-index: 10;
    width:50%;
    color: #209878;
    display: none;
    font-size:22px;

    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    transform-origin: 0 0;

    overflow-x: hidden;
    overflow-y: auto;

}





@media screen and (max-width:800px) {
    #about_text {
        font-size:20px;
    }
}

@media screen and (max-width:600px) {
    #about_text {
        font-size:18px;
    }
}

@media screen and (max-width:400px) {
    #about_text {
        font-size:16px;
    }
}




.about_innertube {
    max-width: 640px;
    margin-left:auto;
    margin-right:auto;

    padding: 0 15px 0 15px;
}


#about_text b {
    font-weight: normal;
    color: #983657;
}

#about_text h1 {
    color: #983657;
    font-size:38px;
}

#about_text p {
    margin-top:0;
}

#about_text a:link,
#about_text a:visited,
#about_text a:hover,
#about_text a:active {
    color: #3c4098;
}


.about_click {
    color: #983657;
    cursor: pointer;
    text-align: right;
    display:inline-block;
    clear:both;
    float:right;
}

.about_click:hover {
    background: #983657;
    color: black;
    cursor: pointer;
    text-align: right;
}


/*test*/
body {
    overflow:hidden;
}

#container {
    overflow:hidden;
    width:100%;
    /*height:100%;*/  /* doesn't work; let javascript do it */
}


/* Skew happens BEFORE scaling, so we need to alter skew depending on how much we scale it.
With no scale, atan( 1/2 ) = 26.5650512
With scale, atan( 1/(2*yscale) ) = angle
*/
.about_text_right {
    -ms-transform: scale(1.0,1.25) skewY(21.8014095deg); /* IE 9 */
    -webkit-transform: scale(1.0,1.25) skewY(21.8014095deg); /* Safari */
    transform: scale(1.0,1.25) skewY(21.8014095deg);

    -moz-transition: all 0.7s;
    -webkit-transition: all 0.7s;
    -ms-transition: all 0.7s;
    -o-transition: all 0.7s;
    transition: all 0.7s;

    -webkit-transition-timing-function: cubic-bezier(.5,-0.35,.5,1.35);
    transition-timing-function: cubic-bezier(.5,-0.35,.5,1.35);
}

.about_text_left {
    -ms-transform: scale(1.0,1.25) skewY(-21.8014095deg); /* IE 9 */
    -webkit-transform: scale(1.0,1.25) skewY(-21.8014095deg); /* Safari */
    transform: scale(1.0,1.25) skewY(-21.8014095deg);

    -moz-transition: all 0.7s;
    -webkit-transition: all 0.7s;
    -ms-transition: all 0.7s;
    -o-transition: all 0.7s;
    transition: all 0.7s;

    -webkit-transition-timing-function: cubic-bezier(.5,-0.35,.5,1.35);
    transition-timing-function: cubic-bezier(.5,-0.35,.5,1.35);
}




/*OLD STUFF*/

.buttonbox1
{
    background-color:#3B0000;
    border-style:double;
    border-width:3px;
    border-color:#660000;
    color:#770000;
    text-align:center;
    cursor:pointer;
    padding:4px;
    position:relative;
    top:3px;
    left:0;
}

.buttonbox1:hover
{
    background-color:#3B0000;
    border-style:double;
    border-width:3px;
    border-color:#800000;
    color:#990000;
    text-align:center;
    cursor:pointer;
    padding:4px;
    position:relative;
    top:3px;
    left:0;
}


.buttonbox2
{
    background-color:#003B3B;
    border-style:solid;
    border-width:3px;
    border-color:#006666;
    color:#007777;
    text-align:center;
    cursor:pointer;
    padding:2px;

    font-size:20px;
    font-family:monospace;
}

.buttonbox2:hover
{
    background-color:#003B3B;
    border-style:solid;
    border-width:3px;
    border-color:#008080;
    color:#009999;
    text-align:center;
    cursor:pointer;
    padding:2px;
    font-size:20px;
    font-family:monospace;
}

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) {

    /* Retina-specific stuff here */
    .buttonbox2, .buttonbox2:hover {
        font-size: 40px;
    }
}


.buttonbox1 a:link   {color:#770000; text-decoration:none;}
.buttonbox1 a:visited{color:#770000; text-decoration:none;}
.buttonbox1 a:hover  {color:#770000; text-decoration:none;}
.buttonbox1 a:active {color:#770000; text-decoration:none;}

.buttonbox2 a:link   {color:#007777; text-decoration:none;}
.buttonbox2 a:visited{color:#007777; text-decoration:none;}
.buttonbox2 a:hover  {color:#007777; text-decoration:none;}
.buttonbox2 a:active {color:#007777; text-decoration:none;}


body a:link
{
    color: #660000;
    text-decoration:none;
}
body a:visited
{
    color: #551111;
    text-decoration:none;
}
body a:hover
{
    color: #770000;
    text-decoration: underline;
}
body a:active
{
    color: #880000;
}

img
{
    border-width:0;
}


body h1
{
    font-size:30px;
    font-weight:bold;
    display:inline;
    padding:0;
    margin:0;
    font-family:monospace;
}


body h2
{
    font-size:18px;
    font-weight:bold;
    display:inline;
}

body h3
{
    font-size:16px;
    text-decoration:none;
    font-weight:bold;
    display:inline;
}



.giveaway-page
{
    background-color: #00283b;
    color: #49b64f;
    padding-top:50px;
}


.giveaway-page div
{
    max-width:320px;
    margin-left:auto;
    margin-right:auto;
}

.giveaway-page #confirm_img
{
    display: block;
    margin-left:auto;
    margin-right:auto;
    padding-bottom:20px;
}

.giveaway-page #captcha_div
 {
     width:300px;
 }


.giveaway-page #prove-human-text
{
    padding-bottom:20px;
}


.giveaway-page a:link,
.giveaway-page a:visited,
.giveaway-page a:hover,
.giveaway-page a:active{
    color: #cb6d00;
}

.giveaway-page #error-msg {
    color: rgba(255, 0, 0, 0.72);
}