
/*== Game Help Screen ==*/
#game-overlay{
    display: none;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 600px;
    z-index: 900;
    color: #fff;
}

#game-overlay.visible{
    background-image: none;
    display: initial;
}

#game-overlay.visible.wait{
    background-image: url('../assets/preloader.gif');
    background-position: center center;
}

#game-overlay.dark-bg{
    background-color: rgba(0, 0, 0, 0.75);
}

#game-overlay.light-bg{
    background-color: rgba(0, 0, 0, 0.45);
}

#game-overlay.help-question{
    background-image: url('../assets/help/gr/help-screen-question.png');
}

#game-overlay.help-gameplay{
    background-image: url('../assets/help/gr/help-screen-gameplay.png');
}

#game-overlay.help-gameplay-level3{
    background-image: url('../assets/help/gr/help-screen-gameplay-level3.png');
}

#game-overlay.help-question-en{
    background-image: url('../assets/help/en/help-screen-question.png');
}

#game-overlay.help-gameplay-en{
    background-image: url('../assets/help/en/help-screen-gameplay.png');
}

#game-overlay.help-gameplay-level3-en{
    background-image: url('../assets/help/en/help-screen-gameplay-level3.png');
}

#game-overlay.decision{
    background-image: url('../assets/decision-character.png');
}

#game-overlay div.container{
    text-align: center;
    display: block;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

#game-overlay .title{
    margin-bottom: 40px;
    font-weight: bold;
}

#game-overlay .description{
    margin: 10px 0;
}

#game-overlay .description .character-string{
    font-weight: bold;
}

#game-overlay .download-container{
    text-align: center;
    margin-bottom: 40px;
}

#game-overlay a.download-link{
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 10px;
}

#game-overlay a.download-link:before{
    font-family: 'icomoon';
    color: #fff;
    font-size: 30px;
    line-height: 80px;
}

#game-overlay a.download-link.certificate{
    width: 120px;
    height: 120px;
}

#game-overlay a.download-link.certificate:before{
    content: "\e902";
    line-height: 120px;
    font-size: 80px;
}

#game-overlay a.download-link.music:before{
    content: "\e900";
}

#game-overlay a.download-link.document:before{
    content: "\e901";
    padding-left: 4px;
}

#game-overlay .button{
    border: none;
    color: #000;
    max-width: 35%;
}

/*== Game Bar ==*/
#game-bar{
    visibility: hidden;
    background-color: #71806b;
    box-shadow: 0px 5px 7px -4px rgba(60, 60, 60, 1);
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: inherit;
    height: 40px;
    z-index: 800;
}

#game-bar.visible{
    visibility: visible;
}

#game-bar .placeholder{
    display: inline-block;
    margin: 5px 10px 0 10px;
    float: left;
    color: #fff;
}

#game-bar .placeholder a{
    color: #fff;
    overflow: hidden;
}

#game-bar .placeholder a span{
    font-size: 14px !important;
}

#game-bar .placeholder.tools{
    width: 32px;
}

#game-bar .placeholder.tools,
#game-bar .placeholder.hints,
#game-bar .placeholder.switch{
    float: right;
    color: #fff;
}

#game-bar .placeholder.switch{
    opacity: 0.5;
}

#game-bar .placeholder.switch.active{
    opacity: 1;
}

#game-bar .placeholder.switch a{
    cursor: default;
    border: 1px solid #475d46;
}

#game-bar .placeholder.switch.active a{
    cursor: pointer;
}

#game-bar .placeholder.switch .switch{
    width: 85px;
}

#game-bar .placeholder.switch .label{
    width: 80px;
    line-height: 30px;
    float: left;
}

#game-bar .placeholder.switch .label.easy{
    padding-left: 5px;
}

#game-bar .placeholder.switch .label.hard{
    padding-right: 5px;
}

#game-bar .placeholder .container{
    display: inline-block;
    background-color: #475d46;
    background-repeat: no-repeat;
    border-radius: 3px;
    height: 30px;
    transition-property: all;
    transition-duration: 0.5s;
}

#game-bar .container.light-on{
    background-color: #c6d3c5;
    box-shadow: 0 0 8px 0px rgba(198, 211, 197, 0.8);
}

#game-bar .placeholder.hints .container{
    cursor: default;
}

#game-bar .placeholder .container:after {
    font-family: 'icomoon';
    font-size: 24px;
    line-height: 30px;
}

#game-bar .placeholder.hints .container:after {
    padding-right: 2px;
    font-size: 22px;
    content: "\e603";
}

#game-bar .placeholder.hints .container .text,
#game-bar .placeholder.hints .container:after{
    opacity: 0.5;
}

#game-bar .placeholder.hints .container.active .text,
#game-bar .placeholder.hints .container.active:after{
    opacity: 1;
}

#game-bar .placeholder.hints .container.active{
    cursor: pointer;
    opacity: 1;
}

#game-bar .placeholder.help .container,
#game-bar .placeholder.tools .container{
    text-align: center;
    width: 32px;
}

#game-bar .placeholder.tools .container:after{
    content: "\e602";
    padding-right: 5px;
}

#game-bar .placeholder.help .container:after{
    content: "\e601";
}

#game-bar .placeholder .container .text{
    display: block;
    padding: 0 8px;
    line-height: 30px;
    height: 30px;
    float: left;
}

#game-bar .placeholder .container .label{
}

#game-bar .placeholder .container .score,
#game-bar .placeholder .container .hints{
    font-size: 130% !important;
    font-weight: bold;
}

/*== Game Tooltips ==*/
.game-tooltip{
    display: none;
    opacity: 0;
    position: absolute;
    top: 35px;
    right: 10px;
    z-index: 990;
}

#game-hints-tooltip.available,
#game-tools-tooltip.available{
    display: inline-block;
}

/*adjust the white arrow img*/
#game-hints-tooltip > img{
    position: absolute;
    right: 60px;
}

#game-tools-tooltip > img{
    position: absolute;
    right: 0px;
}

.game-tooltip .container{
    background-color: #fff;
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.4);
    margin-top: 17px;
    max-width: 515px;
    min-width: 100px;
    border-radius: 5px;
    padding: 20px;
}

.game-tooltip .container .title{
    font-weight: bold;
    font-size: 110%;
    padding-bottom: 20px;
}

.game-tooltip .content img{
    width: 100%;
    height: auto;
}

/*== Game Question ==*/
#game-question{
    position: absolute;
    background-color: #d7d4c1;
    top: -560px;
    height: 560px;
    width: 800px;
    z-index: 700;
/*    transition-property: top;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0.17, 1, 0.5, 1);*/
}

#game-question .banner {
    display: none;
    color: #fff;
    position: absolute;
    right: -30px;
    width: 220px;
    -ms-transform: rotate(27deg);
    -webkit-transform: rotate(27deg);
    transform: rotate(27deg);
    text-align: right;
    padding: 10px 55px 10px 0;
    font-size: 18px;
    font-weight: bold;
}

#game-question.bonus .banner {
    display: initial;
    background-color: #d8461f;
}

#game-question.standard_easy .banner {
    display: initial;
    background-color: #a2ed40;
}

#game-question.standard_hard .banner {
    display: initial;
    background-color: #e9e33f;
}

#game-question .media-container{
    height: 290px;
    background-color: #000;
    background-image: url('../assets/preloader.gif');
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
}

#game-question .media-container .audio-inner-container {
    height: 100%;
    position: relative;
    background-color: #000;
    background-image: url('../assets/sound-icon-white.png');
    background-repeat: no-repeat;
    background-position: center;
}

#game-question .question-container,
#game-question .answers-container{
     width: 720px;
     margin-top: 20px;
     margin-left: auto;
     margin-right: auto;
}

#game-question .media-container video{
    height: 290px;
}

#game-question .media-container audio{
    position: absolute;
    bottom: 0;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
}

#game-question .answers-container .answer-button{
    display: block;
    float: left;
    color: #000;
    width: 350px;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 0;
    font-weight: normal;
    /*Avoid half pixel placement*/
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

#game-question .answers-container .answer-button:nth-child(2),
#game-question .answers-container .answer-button:nth-child(4){
    float: right;
}

#game-question .answers-container .answer-button.correct{
    background-color: #89c541;
}

/*#game-question .answers-container .answer-button.wrong{
    background-color: #e63c25;
}*/

#game-question .answers-container .answer-button span{
    display: block;
    float: left;
    margin: 0 10px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#game-question .answers-container .answer-button .tickbox{
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

#game-question .answers-container .answer-button.selected .tickbox{
    position: relative;
}


#game-question .answers-container .answer-button.selected .tickbox:before{
    content: '';
    display: block;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    width: 20px;
    height: 20px;
    top: 5px;
    left: 5px;
    border-radius: 3px;
}

#game-question .answers-container .answer-button .text{
    width: 280px;
}

#game-question .controls-container {
    text-align: center;
}

#ok-button.inactive {
    opacity: 0.4;
    cursor: default;
}

#ok-button.inactive:hover {
    background-color: #ef9921;
}

#ok-button {
    opacity: 1;
    cursor: pointer;
}


/*== Game Dice ==*/
#game-dice{
    position: absolute;
    overflow: hidden;
    top: 130px;
    z-index: 600;
    background-color: #37c5f3;
    background-image: url('../assets/dice-numbers.png');
    background-repeat: repeat-y;
    background-position: center 190px;
    height: 377px;
    width: 133px;
    border-left: none;
    border-radius: 0 5px 5px 0;
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.7);

    left: -160px;

    transition-property: left;
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}

#game-dice a{
    cursor: default; /*inactive*/
}

#game-dice.active a{
    cursor: pointer;
}

#game-dice .container{
    display: block;
    height: 100%;
    width: 100%;
    background-image: url('../assets/dice-overlay.png');
    background-repeat: no-repeat;
    z-index: 610;

}

/*== Game Buddy ==*/
#game-buddy {
    height: 100%;
    width: 100%;
    display: none;
    position: absolute;
    right: -360px;
    bottom: -450px;
    z-index: 800;
}

#game-buddy.available {
    display: block;
}

#game-buddy .buddy {
    background-position: right bottom;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 353px;
    height: 360px;
    position: absolute;
    right: 0;
    bottom: 0;
}

#game-buddy .buddy.level1 {
    background-image: url('../assets/level1_character.png');
}

#game-buddy .buddy.level2 {
    background-image: url('../assets/level2_character.png');
}

#game-buddy .buddy.level3 {
    background-image: url('../assets/level3_character.png');
}

#game-buddy.hint .buddy {
    background-position: 0 bottom;
}

#game-buddy.warning .buddy {
    background-position: -353px bottom;
}

#game-buddy.stop .buddy {
    background-position: -706px bottom;
}

#game-buddy .callout{
    position: absolute;
    background-image: url('../assets/buddy-callout.png');
    background-size: 100% 100%;
    bottom: 220px;
    right: 250px;
    max-width: 400px;
    text-align: center;
    opacity: 0;

    transition-property: all;
    transition-duration: .5s;
    transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
}

#game-buddy .callout.visible{
    opacity: 0.9;
}

#game-buddy .callout .text{
    display: block;
    text-align: center;
    padding: 50px 100px 50px 60px;
    font-size: 110%;
    cursor: default;
    line-height: 140%;
}

#game-buddy .callout .text a{
    font-weight: bold;
}


/*======= Difficulty Switch ========*/
.placeholder.switch{
    height: 60px;
    display: inline-block;
}

.placeholder.switch a{
    display: block;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #000;
    position: relative;
    height: 100%;
}

.placeholder.switch.active a{
    cursor: pointer;
}

.placeholder.switch .switch{
    background: linear-gradient(to bottom, #c6c6c6 0%,#ffffff 80%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c6c6c6', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
    box-shadow: inset 0px 0px 6px 0px rgba(255,255,255,1);
    display: block;
    position: absolute;
    height: 100%;
    width: 145px;
    border-radius: 2px;
    left: 0;
}

.placeholder.switch .label{
    display: block;
    text-align: center;
    width: 140px;
    line-height: 60px;
    float: left;
    color: #fff;
    font-size: 20px;
}

.placeholder.switch .label.easy{
    background-color: #049e00;
    padding-left: 5px;
}

.placeholder.switch .label.hard{
    background-color: #d8461f;
    padding-right: 5px;
}
