/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 20 févr. 2015, 18:02:19
    Author     : lsmpascal
*/

/* Mobile : To avoid blue blink on scene touch */
#game_outer { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
/* Mobile : To avoid the menu to appear on long touch */
#game_outer:not(input):not(textarea) {
  -webkit-user-select: none; /* disable selection/Copy of UIWebView */
  -webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}


#game_outer_container{margin-top:20px;}

/* RESET selector for element and children */

/*#game_outer a:hover,
#game_outer a:visited,
#game_outer a:active,*/
#game_outer, 
#game_outer .label{
    background:none;
    border:none;
    bottom:auto;
    clear:none;
    cursor:default;
    display: block;
    float:none;
    
    font-size:medium;
    font-style:normal;
    font-weight:normal;
    height:auto;
    left:auto;
    letter-spacing:normal;
    line-height:normal;
    max-height:none;
    max-width:none;
    min-height:0;
    min-width:0;
    overflow:visible;
    position:static;
    right:auto;
    text-align:left;
    text-decoration:none;
    text-indent:0;
    text-transform:none;
    top:auto;
    visibility:visible;
    white-space:normal;
    width:auto;
    z-index:auto;
}

/* Common ressources */
table.vAlign{width: 100%;}
table.vAlign td{vertical-align: middle;}

/* Base css */


/* ----- */

/*

*/

#waiter_game_load{padding: 220px;}

#game_outer{ 
  margin: auto; 
  letter-spacing: -0.06em;
  font-size: 14.4px;
}
#game_outer .popup{width:300px; height:400px; background:#e2f9ff; position: absolute; top:90px; 
	margin-top:0px;
    padding: 15px;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-shadow: 1px 3px 1px rgba(0,0,0,0.2);
    box-shadow: 1px 3px 1px rgba(0,0,0,0.2);
}

/*
BUTTONS
 */
.button{background:#fee145; color: #994d04; font-weight: bold;
            text-align: center;
              cursor: pointer;
              border:none;
              -webkit-border-radius: 20px; border-radius: 20px;
              -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.2);
              }

.button:hover{background-color: #FEF0A7;}
.button:active{background-color: #ffCded;}

/* To avoid the browser frame on focus */
.button:focus{
    outline: none;
}
.MathJax:focus {
    outline: none;
}

.button_interface{font-size:2em; display:inline-block;
padding:6px 25px 6px 25px; webkit-box-shadow: 2px 3px 0px rgba(0,0,0,0.2);
                  box-shadow: 2px 3px 0px rgba(0,0,0,0.2);}

.button_interface.small{font-size:1.5em;}
/*
#game_outer .button{
    padding:5px 25px;
	color:#333;
    display:inline-block;
    font-size: 2em;
    font-weight: bold;
    background: #ccc;
    border:solid 4px #fff;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0px 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

#game_outer .button:hover{
    background: #66F;
}

#game_outer .button:active{
    background: #0ff;
}
*/


/* winOverlay */
#winOverlay{
  position: absolute;
  top: 1px;
  left: 0px;
  width: 840px;
  height: 565px;
  background: rgba(87, 144, 247, 0.3);
  border-radius: 20px;
}


/* winIntro */
#winIntro.popup{right:20px; text-align: center;}
#winIntro_inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
}
/*#winIntro tr:first-child{height: 250px;}
#winIntro tr:nth-child(2){height: 120px;}
#winIntro tr:last-child{height: 50px; text-align: center;}*/
#winIntro .label{
    padding:0px 20px;
    color:#427ECF;
    text-align: center;
    font-size:2em;
    font-weight: bold;
   }
#winIntro .label .notice{
  font-size:0.6em;
  font-weight: 200;
}
#winIntro label{cursor:pointer;color:#427ECF;}
#winIntro #playMode{text-align: left;}
#winIntro .playModeButtonBloc{margin-left:50px; margin-bottom:15px; font-size:1.3em;}
#winIntro .playModeButtonBloc:last-child{margin-bottom:0px;}

#winIntro .perso_prof{position: absolute; top: 245px; left: 230px;
                  width: 150px; height: 150px;}

#button_training_notes{color:#427ECF; cursor:pointer;}

#winIntro #buttonStart{ margin-top: -10px;}

/* winEndGame */
#winEndGame {left:50%; margin-left: -168px;}

#winEndGame tr:first-child{height: 140px;}
#winEndGame tr:first-child td{padding-bottom: 40px;}
#winEndGame tr:nth-child(2){height: 140px;}
#winEndGame tr:nth-child(3){height: 100px;}
#winEndGame tr:last-child{height: 50px; text-align: center;}

#winEndGame .text{
    padding:0px 20px;
    color:#427ECF;
    text-align: center;
    font-size:1.8em;
    font-weight: bold;
   }
#winEndGame .percentSuccessTitleLabel{font-size:1.5em;}
#winEndGame .scoreTitleLabel{font-size:3.5em;}
#winEndGame .scoreLabel{font-size:4em; font-weight: bold;}
#winEndGame .scoreTitleLabel{font-size:1.5em;}
#winEndGame .scoreLabel{font-size:4em; font-weight: bold;}
#winEndGame .bonusTitle{font-size:2em; font-weight: bold;}
#winEndGame .bonusLabel{font-size:3.5em; font-weight: bold;}
#nbErrorsTitle{}
#nbErrorsLabel{}

#winEndGame #stars_in_winEndGame{font-size: 4em; text-align: center;}
#winEndGame #stars_in_winEndGame i{position: absolute;}
#winEndGame #stars_in_winEndGame i.star_1{top: 50px; left: 37px;}
#winEndGame #stars_in_winEndGame i.star_2{top: 85px; left: 122px;}
#winEndGame #stars_in_winEndGame i.star_3{top: 50px; right: 43px;}

/* winEdnGame without table 200817 */
#winEndGame{
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start; /*space-between;*/
    flex-direction: column;
}


#stars_in_winEndGame{
    position: absolute;
    width: 310px;
    top: -15px;
    left: -5px;
}

#winEndGame .scoreTitleLabel{margin-top: 80px;}
#winEndGame .bonusTitle{margin-top: 12px;}

#buttonContainerInWinEndGame{
    /*display: flex;*/
    /*justify-content: center;*/
    margin-top: 25px;
    text-align: center;
}
/* --- end --- */


#timerBloc{position: absolute; bottom: 40px; right: 20px; width: 20px; height: 500px; border: solid 3px #fff;
           -webkit-border-radius: 6px;
           border-radius: 6px;
           -webkit-box-shadow: 0px 1px 4px rgba(0,0,0,0.2);
           box-shadow: 0px 1px 4px rgba(0,0,0,0.2);}
#timerBar{background: #3F3;height: 500px; width: 16px;position: absolute; bottom: 0px; right: -1px;
          -webkit-border-radius: 6px;;
          border-radius: 6px;}



#best_score_student_bloc{position: absolute; bottom:5px; left:40px;width: 700px;}
#best_score_student_bloc .student_name, #best_score_student_bloc .best_score_bloc, #best_score_student_bloc .best_percent_success_bloc{display:inline-block; margin-right: 30px;}

/* G_KID_INTERFACE == false */
.no_kid .perso_prof{display:none;}

/* Button */
#buttonPlayAgain, #buttonBack{display:inline-block;}
#buttonBack{margin-right: 10px;}


/*gamespecialid_note*/
.gamespecialid_note{position: absolute;
bottom: 20px;
right: 70px;
font-family: arial;
font-size: 0.6em;
text-align: right;
letter-spacing: 0.01em;}


/*PublishScoreWin*/
#game_outer .popup#winPublishScore{right:20px; top: 170px; text-align: center; height: 250px; width: 250px; z-index:200;}
.labelPublishScore{margin-top:30px; color: #427ECF;}



/*btn_fullscreen*/
#btn_fullscreen{
    position: absolute;
    bottom: 7px;
    left: 630px;
    text-align: center;
    z-index: 200;
}

/*fullscreen*/
#game_outer_container.fullscreen_mozilla{position: fixed; z-index: 9999;
    top:0px; left:0px; background: #FFF; margin:auto; width:100%; height:100%;
}



/* winEndGame reduction and move to display the video */
.winEndGameReducedAndMoved {
    transition:1s ease-in-out;
    transform: translate(-304px, -110px) scale(0.6);
}

#game_outer .popup#winEndVideo{
 /* width: 600px;
  height: 355px;
  padding: 20px;
  top:130px;
  left:233px;
  z-index: 900;*/


    width: 600px;
    height: 355px;
    padding: 20px;
    top: 125px;
    left: auto;
    right: 70px;
    z-index: 900;
    transform: scale(0.9);
    transform-origin: top;
    transform-origin: right;
}



/*#########################################
# >>    MOBILE
#########################################*/

@media (max-width: 768px), (max-width: 1024px) and (max-height: 700px) and (orientation: landscape) {

    .mobile_full_screen .page-content {
        margin-bottom:0px;
    }
    .mobile_full_screen #game_outer_container{
        height: 200px;
    }
    

    .mobile_full_screen #game_outer_row{
        height: auto;
    }

    #ico_portrait_to_landscape {
        position: fixed;
        height: 100%;
        width: 100vw;
        left: 0px;
        top: 0px;
        display: flex;
        justify-content: center;
        background: #FFF;
        z-index: 900;
        flex-direction: column;
        background: var(--bgGradBlue), var(--colBluePrimary);
    }
    #ico_portrait_to_landscape img {
        transform: scale(0.6);
    }

    #btn_back_in_portrait_landscape_bloc{
        font-size: 0.5em;
        color:#FFF;
    }

    #text_in_portrait_landscape_bloc{
        text-align: center;
        max-width: 60vw;
        margin: 0px auto;
        margin-bottom: 25px;
    }

    #ico_portrait_to_landscape .btn_bloc {
        text-align: center;
        font-size: 3em;
    }

    .mobile_full_screen #mainScoreLabel {
        color: #FFF !important;
        text-shadow: -1px 0 2px #000, 0 1px 2px #000, 1px 0 2px #000, 0 -1px 2px #000;
        font-size: 2.5em;
        top: -5px;
    }

    .mobile_full_screen .wrap_reg #questionLabelBloc, .mobile_full_screen .wrap_reg #mainScoreLabel {
        top: -2px;
        background: #FFFFFF;
        padding: 1px 19px 4px !important;
        border-radius: 20px;
        color: #225164 !important;
        text-shadow: none;
    }

    #topInterface {
        top: 55px !important;
    }

    /*#game_outer #textFrame{
        top: auto !important;
        bottom: 37px;
    }*/


}

