

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

body {
    background: url("../img/NewTyper.png") no-repeat;
    margin:0;
    padding-top:10%;
    padding-left:0;
    padding-right:0;
    padding-bottom:0;
    width: 100%;
    height: 100%;
    background-size:100%;
    position:relative;
    line-height:1.45;
    font-family:Courier;
    /*overflow:hidden;*/
}

#main {
    width:100%;
    height:100%;
    margin: auto;
    margin-top:100px;
    text-align: center;
    display:block;
    font-family:Courier;
    position:relative;
}

#loadAnim {
    width:100%;
    height:100%;
    margin: auto;
    text-align: center;
    font-family:Courier;
    background-color:transparent;
    position:absolute;
    display:inline;
    font-size:0.5em;
}

.indialog {
    font-size:0.5em;
}

#dialogContainer {
    position:absolute;
    width:100%;
    margin: auto;
    text-align: center;
    display:block;
    font-family:Courier;
    top:10px;
}



.dialog{
    width:40%;
    position:relative;
    height:100%;
    margin:auto;
    min-height:200px;
    max-height:60%;
    background-color: #eeeeee;
    border: 3px solid grey;
    -webkit-border-radius: 9px; /* Saf3-4, iOS 1-3.2, Android <1.6 */
    -moz-border-radius: 9px; /* FF1-3.6 */
    border-radius: 9px; 
    top:40px;/* Opera 10.5, IE9, Saf5, Chrome, FF4, iOS 4, Android 2.1+ */
}

.dialog-title {
    padding-top: 12px;
    padding-bottom:10px;
    margin-bottom:10px;
    background-color: #FFFFFF;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#E9E9E9)); /* Saf4+, Chrome */
    background-image: -webkit-linear-gradient(top, #FFFFFF, #E9E9E9); /* Chrome 10+, Saf5.1+, iOS 5+ */
    background-image: -moz-linear-gradient(top, #FFFFFF, #E9E9E9); /* FF3.6 */
    background-image: -ms-linear-gradient(top, #FFFFFF, #E9E9E9); /* IE10 */
    background-image: -o-linear-gradient(top, #FFFFFF, #E9E9E9); /* Opera 11.10+ */
    background-image: linear-gradient(top, #FFFFFF, #E9E9E9);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#FFFFFF', EndColorStr='#E9E9E9'); /* IE6-IE9 */
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    border-bottom: 1px solid #FFFFFF;
    color: #434343;
    filter: dropshadow(color=#ffffff, offx=1, offy=1);
    text-align: center;
    font-weight: bold;
    font-size: 0.85em;
}

.dialog-description{
    padding:0.5em;
    font-size:0.65em;
}

.dialogButton {
    -moz-box-shadow:inset 0px 1px 3px 0px #91b8b3;
    -webkit-box-shadow:inset 0px 1px 3px 0px #91b8b3;
    box-shadow:inset 0px 1px 3px 0px #91b8b3;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#768d87', endColorstr='#6c7c7c',GradientType=0);
    background-color:#768d87;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
    border:1px solid #566963;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Courier;
    font-size:0.55em;
    text-decoration:none;
    padding:0.4em 0.4em;
    margin:0.3em;
}
#continuePlay {
    position:relative;
    display:inline-block;
    top:2em;
}
.smdialogButton {
    -moz-box-shadow:inset 0px 1px 3px 0px #91b8b3;
    -webkit-box-shadow:inset 0px 1px 3px 0px #91b8b3;
    box-shadow:inset 0px 1px 3px 0px #91b8b3;
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#768d87', endColorstr='#6c7c7c',GradientType=0);
    background-color:#768d87;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    border-radius:5px;
    border:1px solid #566963;
    display:inline-block;
    cursor:pointer;
    color:#ffffff;
    font-family:Courier;
    font-size:0.45em;
    text-decoration:none;
    padding:0.4em 0.4em;
    margin:0.3em;
}
.dialogButton:hover {
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#6c7c7c', endColorstr='#768d87',GradientType=0);
    background-color:#6c7c7c;
}
.dialogButton:active {
    position:relative;
    top:1px;
}

#termsContainer {
    position:absolute;
    width:100%;
}

.theTerms {
    position:relative;
    width:500px;
    height:90px;
    font-size:0.4em;
    overflow-y:auto;
    text-align:left;
    border: 1px solid;
    /*display:inline-block;*/
    padding:0.25em;
    /*margin:0.25em;*/

}

#acceptTerms {
    position:relative;
    width:70%;
    display:inline-block;
}
#termsLabel,#AnontermsLabel {
    font-size:0.65em;
    display:block;
}

#AnontermsCheck {
    width:40px;
    height:40px;
}
#termsCheck {
    width:40px;
    height:40px;
    padding:0;
    margin:0;
    vertical-align:bottom;
    position:relative;
    top:-1px;
    *overflow:hidden;
    float:left;
}

#playButtons {
    position:relative;
    top:-2em;
}




.choiceBox {
    background:url("../img/choosepage.png") no-repeat;
    position:relative;
    width:20%;
    height:17em;
    background-size:100%;
    display:inline-block;
    cursor:pointer;
    vertical-align:top;
    text-align:justify;
    font-size:0.4em;
}

.choiceText {
    padding:15px;
    font-size:1em;
}

#choiceContainer{
    width:100%;
    position:absolute;
}

#choices {
    position:relative;
    display:block;

}

#playWarning {
    font-size:1em;
    color:#e84e0e;
    position:absolute;
    width:99%;
    height:90%;
    margin:auto;
    top:-3em;
    left:0;

}

#textContainer { 
    position:absolute;
    width:99%;
    height:90%;
    margin:auto;
    top:0;
    left:0;
}


#write {
    width:40%;
    box-shadow:none;
    font-family:Courier;
    font-size:0.55em;
    border:none;
    background-color:transparent;
    resize: none;
    color:black;
    text-align:justify;
    line-height:1.45;
    height:10em;

}

#incipitPrompt {
    width:40%;
    margin:auto;
    padding-bottom:1em;
    background-color:transparent;
    font-family:Courier;
    border:none;
    font-size:0.5em;
    text-align:justify;
    /*border:3px solid black;*/

}


#ink {
    width:20px;
    position:absolute;
    background-color:transparent;
    display:inline-block;
    left:1em;
}

#inkLabel {
    color:white;
    position:absolute;
    -webkit-transform: rotate(90deg);
    transform:rotate(90deg);
    font-family:Courier;
    font-size:15px;
    top:7em;

}

#inkProgress {
    position:relative;
}

#feed {
    position:absolute;
    width:100%;
    background: transparent;/*url("../img/feedpaper.png") repeat-y;*/
    font-size:0.4em;
    top:-5em;
}

#feedInfo {
    width:90%;
    height:50%;
    position:relative;
    display:inline-block;
    text-align:left;
    padding-left:1em;
}

#greetPlayer {
    font-size:1em;
    width:20%;
}

#numStories,#bestStory, #viewTree {
    font-size:1em;
    width:20%;

}

#choicePrompt {
    position:relative;
    font-size:0.6em;
}

#grandparent {
    width:40%;
    margin:auto;
    text-align:justify;
    font-size:1em;
    padding:10px;
    /*border:3px solid black;*/
}

#choiceInstructions {
    width:50%;
    font-size:1em;
    color:#e84e0e;
    margin:auto;
    /*border:3px solid black;*/

}




/*Stolen Loader Animation*/

.loader {
    display:block;
    font-size:1em;
    color:#e84e0e;
}

.loader span {
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    margin: 50px auto;
    background: #f9b233;
    border-radius: 50px;
    border:3px #e84e0e solid;
    -webkit-animation: loader 0.9s infinite alternate;
    -moz-animation: loader 0.9s infinite alternate;
}
.loader span:nth-of-type(2) {
    -webkit-animation-delay: 0.3s;
    -moz-animation-delay: 0.3s;
}
.loader span:nth-of-type(3) {
    -webkit-animation-delay: 0.6s;
    -moz-animation-delay: 0.6s;
}
@-webkit-keyframes loader {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.9;
    -webkit-transform: translateY(0);
  }
  100% {
    width: 24px;
    height: 24px;
    opacity: 0.1;
    -webkit-transform: translateY(-21px);
  }
}
@-moz-keyframes loader {
  0% {
    width: 10px;
    height: 10px;
    opacity: 0.9;
    -moz-transform: translateY(0);
  }
  100% {
    width: 24px;
    height: 24px;
    opacity: 0.1;
    -moz-transform: translateY(-21px);
  }
}



/*Stolen for new player language choice*/
.cc-selector-2 {
    width:50%;
    margin-left:30%;
}
.cc-selector-2 input{
    margin:0;padding:0;
    -webkit-appearance:none;
       -moz-appearance:none;
            appearance:none;
}


.en {background-image:url("../img/engLang.png");}
.it {background-image:url("../img/italianLang.png");}

.cc-selector-2 input:active +.drinkcard-cc, .cc-selector input:active +.drinkcard-cc{opacity: .9;}
.cc-selector-2 input:checked +.drinkcard-cc, .cc-selector input:checked +.drinkcard-cc{
    -webkit-filter: none;
       -moz-filter: none;
            filter: none;
}
.drinkcard-cc{
    cursor:pointer;
    background-size:contain;
    background-repeat:no-repeat;
    display:inline-block;
    width:50px;height:30px;
    -webkit-transition: all 100ms ease-in;
       -moz-transition: all 100ms ease-in;
            transition: all 100ms ease-in;
    -webkit-filter: brightness(1.8) grayscale(1) opacity(.7);
       -moz-filter: brightness(1.8) grayscale(1) opacity(.7);
            filter: brightness(1.8) grayscale(1) opacity(.7);
}
.drinkcard-cc:hover{
    -webkit-filter: brightness(1.2) grayscale(.5) opacity(.9);
       -moz-filter: brightness(1.2) grayscale(.5) opacity(.9);
            filter: brightness(1.2) grayscale(.5) opacity(.9);
}

/* Extras */

a:link,a:hover,a:visited,a:active
{
    text-decoration: none;
}

/*.flagButton {
    display: inline-block;
    text-decoration:none;
    position:relative;
    text-align: center;
    vertical-align: middle;
    width:30px;
    height:25px;
    padding:2px 2px;
    border: none;
    border-radius: 6px;
    background: #fcfcfc;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#b0b0b0));
    background: -moz-linear-gradient(top, #fcfcfc, #b0b0b0);
    background: linear-gradient(to bottom, #fcfcfc, #b0b0b0);
    font: normal normal normal 10px courier new;
    color: black;
    -webkit-transition: All 0.2s ease;
    -moz-transition: All 0.2s ease;
    -o-transition: All 0.2s ease;
    -ms-transition: All 0.2s ease;
    transition: All 0.2s ease;
}
.flagButton p {
    display:none;
}

/*.flagButton:hover p {
    display:inline;
}

.flagButton:hover {
    width: 75px;
}


.flagButton:focus {
    border: 0px solid #fcfcfc;
    background: #ffffff;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#d3d3d3));
    background: -moz-linear-gradient(top, #ffffff, #d3d3d3);
    background: linear-gradient(to bottom, #ffffff, #d3d3d3);
    color: black;
    text-decoration: none;
}
.flagButton:active {
    background: #b0b0b0;
    background: -webkit-gradient(linear, left top, left bottom, from(#b0b0b0), to(#b0b0b0));
    background: -moz-linear-gradient(top, #b0b0b0, #b0b0b0);
    background: linear-gradient(to bottom, #b0b0b0, #b0b0b0);
}
.flagButton:before{
    content:  "\0000a0";
    display: inline-block;
    position:relative;
    height: 22px;
    width: 22px;
    margin-right:5px;
    margin-left:2px;
    line-height: 24px;
    top: 0px;
    left: 0px;
    background: url("../img/reportface.png");
    background-size: 100% 100%;
}

.muteButton {
    display: inline-block;
    position:absolute;
    left:4em;
    text-decoration:none;
    text-align: center;
    vertical-align: middle;
    width:30px;
    height:25px;
    border: none;
    border-radius: 6px;
    background: #fcfcfc;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#b0b0b0));
    background: -moz-linear-gradient(top, #fcfcfc, #b0b0b0);
    background: linear-gradient(to bottom, #fcfcfc, #b0b0b0);
    font: normal normal normal 10px courier new;
    color: black;
    -webkit-transition: All 0.2s ease;
    -moz-transition: All 0.2s ease;
    -o-transition: All 0.2s ease;
    -ms-transition: All 0.2s ease;
    transition: All 0.2s ease;
}


.muteButton:focus {
    border: 0px solid #fcfcfc;
    background: #ffffff;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#d3d3d3));
    background: -moz-linear-gradient(top, #ffffff, #d3d3d3);
    background: linear-gradient(to bottom, #ffffff, #d3d3d3);
    color: black;
    text-decoration: none;
}
.muteButton:active {
    background: #b0b0b0;
    background: -webkit-gradient(linear, left top, left bottom, from(#b0b0b0), to(#b0b0b0));
    background: -moz-linear-gradient(top, #b0b0b0, #b0b0b0);
    background: linear-gradient(to bottom, #b0b0b0, #b0b0b0);
}
/*.muteButton:before{
    content:  "\0000a0";
    display: inline-block;
    position:relative;
    height: 22px;
    width: 22px;
    margin-right:5px;
    margin-left:2px;
    line-height: 24px;
    top: 0px;
    left: 0px;
    background: url("../img/muteoff.png");
    background-size: 100% 100%;
}

#muteOff:before {
    content:  "\0000a0";
    display: inline-block;
    position:relative;
    height: 22px;
    width: 22px;
    margin-right:5px;
    margin-left:2px;
    line-height: 24px;
    background: url("../img/muteoff.png");
    background-size: 100% 100%;
}

#muteOn:before {
    content:  "\0000a0";
    display: inline-block;
    position:relative;
    height: 22px;
    width: 22px;
    margin-right:5px;
    margin-left:2px;
    line-height: 24px;
    background:url("../img/muteon.png");
    background-size: 100% 100%;

}*/

#backButton {
    display: inline-block;
    text-decoration:none;
    position:relative;
    text-align: center;
    vertical-align: middle;
    width:30px;
    height:25px;
    border: none;
    border-radius: 6px;
    background: #fcfcfc;
    background: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#b0b0b0));
    background: -moz-linear-gradient(top, #fcfcfc, #b0b0b0);
    background: linear-gradient(to bottom, #fcfcfc, #b0b0b0);
    font: normal normal normal 10px courier new;
    color: black;
    -webkit-transition: All 0.2s ease;
    -moz-transition: All 0.2s ease;
    -o-transition: All 0.2s ease;
    -ms-transition: All 0.2s ease;
    transition: All 0.2s ease;
}


#backButton:focus {
    border: 0px solid #fcfcfc;
    background: #ffffff;
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#d3d3d3));
    background: -moz-linear-gradient(top, #ffffff, #d3d3d3);
    background: linear-gradient(to bottom, #ffffff, #d3d3d3);
    color: black;
    text-decoration: none;
}
#backButton:active {
    background: #b0b0b0;
    background: -webkit-gradient(linear, left top, left bottom, from(#b0b0b0), to(#b0b0b0));
    background: -moz-linear-gradient(top, #b0b0b0, #b0b0b0);
    background: linear-gradient(to bottom, #b0b0b0, #b0b0b0);
}
#backButton:before{
    content:  "\0000a0";
    display: inline-block;
    position:relative;
    height: 22px;
    width: 22px;
    margin-right:5px;
    margin-left:2px;
    line-height: 24px;
    top: 0px;
    left: 0px;
    background: url("../img/backarrow.png");
    background-size: 100% 100%;
}

.buttonContainer {
    position:absolute;
    padding-left:5%;
    left:0px;
    bottom:10%;

}

.muteButtonContainer {
    position:relative;
    padding-left:1em;
    top:11em;
}



#visContainer {
    position:absolute;
    height:500px;
    width:800px;
    background-color:white;
    z-index:0;
    top:0;
    margin-top:100px;
    margin-left:25%;
    border-radius:5px;
    border:2px solid grey;
}

#visFrame {
    position:absolute;
    height:99%;
    width:99%;
    margin:auto;
    margin-top:35px;
    display:block;
    border:none;
    top:0;
}
#closeVis {
    padding-top:1px;
    padding-bottom:1px;
    font-size:1em;
    font-family:Helvetica;
    float:right;
    z-index:20;
}
/*zindex values*/

#feed {
    z-index:1;
}

#inkLabel {
    z-index:2;
}

#playWarning {
    z-index:3;
}

#choiceContainer {
    z-index:4;
}

#textContainer {
    z-index:5;
}

#socialButtons {
    z-index:6;
}

#loadAnim {
    z-index:7;
}
/*vis iframe will be here*/
.dialog {
    z-index:9;
}
#registerTwo {
    position:relative;
    z-index:7;
    float:left;
    margin:4em;
}


#slide_background {
    -webkit-transition: all 0.3s 0.3s;
       -moz-transition: all 0.3s 0.3s;
            transition: all 0.3s 0.3s;
}
#slide,
#slide_wrapper {
    -webkit-transition: all 0.4s;
       -moz-transition: all 0.4s;
            transition: all 0.4s;
}
#slide {
    -webkit-transform: translateX(0) translateY(-40%);
       -moz-transform: translateX(0) translateY(-40%);
        -ms-transform: translateX(0) translateY(-40%);
            transform: translateX(0) translateY(-40%);
}
.popup_visible #slide {
    -webkit-transform: translateX(0) translateY(0);
       -moz-transform: translateX(0) translateY(0);
        -ms-transform: translateX(0) translateY(0);
            transform: translateX(0) translateY(0);
}

.horiz-inner {
    display:inline-block;
}

.statsDesc {
    font-size:0.5em;
}

share-button {
    position: absolute;
    animation-name: test;
    animation-duration: 12s;
    animation-delay: 1s;
    left: calc(50% - 35px);
    top: calc(50% - 10px);
}

#toChallenge {
    left:0px;
    top:-50px;
    margin-bottom:50px;
}
#theStats {
    vertical-align:top;
}

#challenge {
    text-align:center;
}

.vert-buttonContainer {
    width:100%;
}

#playAgain {
    width:30%;
    margin-left:35%;
    margin-right:35%;
}
input {
    font-size:0.5em;
    margin:10px;
}

.checkit {
    position:relative;
    left:205px;
    width:200px;
}

#selLang,#newRegistered,#newAnon,#newAnonTerms, #flag, #chlg {
    max-width:550px;
}

#help {
    max-width:600px;
}

#afterTurn, #stats {
    max-width:700px;
}

#register, #playAnon {
    margin-top:20px;
    margin-bottom:20px;
}

#anonStats p,#regStats p, #regStats-postTurn p, #anonStats-postTurn p {
    max-width:250px;
}

#anonStats {
    vertical-align:top;
}
#closeStats {
    float:right;
    font-family:Helvetica;
    font-size:0.4em;
    display:block;
}
#pgs {
    vertical-align:top;
}

.lBorder {
    border-left:1px solid grey;
    padding-left:20px;
    margin-left:20px;
    width:250px;
}
#toShare {
    left:15px;
    margin-top:50px;
}

.str {
    width:20px;
    height:20px;
}
.stats_open {
    float:left;
    margin-left:50px;
}
#intShare {
    left:197px;
}
#muteBox{
    float:left;
    margin-left:10px;
    margin-top:-8px;
}

#helpOpen {
    float:left;
    margin-left:10px;
}
.buttonBlock {
    display:block;
}
#feedButtons {
    position:absolute;
    float:left;
    z-index:10;
}



