/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
@font-face {
  font-family: 'project-icons';
  src: url('../icons/fontello/font/project-icons.eot?26724111');
  src: url('../icons/fontello/font/project-icons.eot?26724111#iefix') format('embedded-opentype'),
       url('../icons/fontello/font/project-icons.woff?26724111') format('woff'),
       url('../icons/fontello/font/project-icons.ttf?26724111') format('truetype'),
       url('../icons/fontello/font/project-icons.svg?26724111#project-icons') format('svg');
  font-weight: normal;
  font-style: normal;
}


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}





html{
  height: 100%;
}

body,
#welcome{
  background: #113E53;
}

body{
  min-height: 100%;
  font-size: 18px;
  color: #FFF;
}

#templates{
  display: none;
}

#about{
  padding: 1em 3em;
  color: #FFF;
  line-height: 1.3;
  font-family: "Open Sans", sans-serif;
}


#about #teacher{
  float: left;
}

.teacher_say{
  color: #82bad4;
}

.activity_comment{
  font-style: italic;
  margin: 0.5em 0;
  font-size: 0.9em;
}

#about #container{
  max-width: 600px;
  margin: auto;
  margin-bottom: 10em;
}

#about p,
#about li{
  text-align: justify;
  padding: 0.4em 0;
}

#about h1{
  font-size: 3em;
  padding: 1em 0 0.5em 0;
}

#about h2{
  font-size: 1.6em;
  padding: 2em 0 0.5em 0;
  color: #34B6AF;
}

#about a{
  color: #84D6DF;
}

#about strong {
  font-weight: bold;
}

#about ul{
  padding-left: 2em;
}
#about li{
  list-style: disc;
}


.clearfix{
  clear: both;
}

#logo{
  color: #34B6AF;
  width: 184px;
  height: 267px;
  background: url(../img/title.jpg);
}

#hour_of_code #logo{
  background: url(../img/title_hour_of_code.jpg);
}

#hour_of_code_logo{
  width: 80px;
  margin-left: 47px;
  margin-top: 25px;
}


#hour_of_code_back{
  display: none;
  font-size: 0.8em;
  position: absolute;
  bottom: 0px;
  right: 0;
  z-index: 2000;
  text-decoration: none;
  color: #DDD;
  padding: 0.5em;
  background: rgb(0, 178, 192);
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

#hour_of_code #hour_of_code_back{
  display: inline;
}

#hour_of_code_back:hover{
  outline: 1px solid #BBB;
  color: #FFF;
}

#logo span{
  display: none;
}


#logo_python {
  display: none;
  z-index: 2001;
  bottom: 11vh;
  position: fixed;
  height: 29vh;
  left: calc(50% - 30vh);
}


.started #logo_python {
  bottom: auto;
  top: 237px;
  height: 82px;
  left: 126px;
}


#left{
  position: fixed;
  top: 32px;
  left: 30px;
}


#show_menu{
  background: url(../img/menu.png);
  width: 40px;
  height: 38px;
  color: #FFF;
  position: fixed;
  bottom: 120px;
  left: 38px;
  cursor: pointer;
  display: none;
}

#footer{
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
}

#footer a{
  text-decoration: none;
}

#main{
  padding-top: 40px;
  margin-left: 240px;
  margin-right: 40px;
  max-width: 700px;
  padding-bottom: 800px;
  position: relative;
  color: #295a71;
}

#antichamber{
  visibility: hidden;
}







.hand i{
  position: absolute;
  top: 8px;
  left: -1px;
  font-size: 41px;
}

.hand img{
  width: 35px;
}

.click_here{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.click_here .circle{
  position: absolute;
  top:  -8px;
  left: -8px;
  width:  16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #73aac2;
  border-radius: 100%;
  animation: 1.5s linear 0s infinite running growUp;
}

.click_here .hand{
  position: relative;
  left: -12px;
  top: 6px;
  z-index: 10;
  animation: 1.5s linear 0s 1 running slideIn;
}

@keyframes growUp {
  0%   { transform: scale(4); opacity: 0; }
  19%  { transform: scale(4); opacity: 0; }
  20%  { transform: scale(1); opacity: 1;}
  30%  { transform: scale(2.5); opacity: 1;}
  40%  { transform: scale(3.5); opacity: 0.8; }
  50%  { transform: scale(4); opacity: 0; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes slideIn {
  0%   { top: 20px;}
  20%  { top:  6px;}
  100% { top:  6px;}
}










.level_name{
    font-size: 1.5em;
    margin: 4em 0 1em 0;
}

.level_name a{
    color: #FFF;
}

#level_name{
    position: fixed;
    top:   0;
    right: 0;
    color: #aaa;
}


#dev_help{
  position: fixed;
  top:   30px;
  right: 0;
  color: #aaa;
  font-size: 0.8em;
}

#dev_help a,
#level_name a{
    color: #aaa;
}


.answer,
.left_arrow,
.challenge_question,
.challenge{
  transition-duration: 1s;
}


.challenge{
  background: #FFF;
  position: relative;
  padding: 15px 15px 5px 45px;
  margin-left: 20px;
  border-bottom: 2px solid #F0F0F0;
  transition-property: margin-left;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

.current{
  margin-left: 0;
  box-shadow: 7px -1px 10px rgba(0, 0, 0, 0.5);
}

.current .challenge_question{
  margin-left: 20px;
}

.challenge_question{
  padding: 0 0.5em;
  transition-property: margin-left;
}

.centered_question{
  text-align: center;
}

.current .centered_question{
  margin-right: 20px;
}

.left_arrow{
  position: absolute;
  bottom: 1.2em;
  left: 15px;
  height: 43px;
  width: 22px;
  background: url(../icons/answer2.png);
  transition-property: width;
}


.multiple_choices .left_arrow{
  display: none;
}



.current .left_arrow{
  width: 44px;
}


.answer{
  padding: 3px;
  margin-bottom: 5px;
  background: #34B6AF;
  position: relative;
  margin-left: 0px;
  transition-property: margin-left;
}

.answer.retract{
  transition: margin-left 1s, height 0.7s;
}

.current .answer.after{
  margin-left: 20px;
  transition-duration: 0s;
}

.lose .answer,
.lose .answer .button{
  background-color: #FAB;
}

.tooLate .answer {
  background: #9AB;
}

#mail_form .submit,
.answer .button{
  background: url(../icons/submit.png) no-repeat right 50%;
  cursor: pointer;
  width: 41px;
}


.answer .button{
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
}


.win .answer .button{
  background-image: url(../icons/true.png);
  cursor: default;
}

.lose .answer .button{
  background-image: url(../icons/false.png);
  cursor: default;
}

.lose .after.answer .button{
  background-color: transparent;
}

.tooLate .answer .button{
  background-image: url(../icons/late.png);
  cursor: default;
}

button.win{
  background-color: #34B6AF;
}

button.lose{
  background-color: #E22968;
}



.multiple_choices{
  padding-left: 15px;
}

.multiple_choices .answer{
  background: none;
  padding: 10px 0 0 0;
}

.multiple_choices .answer .row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.multiple_choices .answer .row{
  padding: 0 1.3em;
}

.multiple_choices .answer .row:last-child{
  padding: 0;
}


.multiple_choices.lose .answer,
.multiple_choices.win .answer,
.multiple_choices.withHelp .answer{
  display: block;
}

.multiple_choices.win .user_answer_and_correction{
  background: #34b6af;
  background-position: right;
  background-repeat: no-repeat;
  background-image: url(../icons/true.png);
}


.answer .choice_button{
  position: relative;
  appearance: none;
  box-sizing: content-box;
  color:      inherit;
  background: #ff8570;
  color: #ffede8;
  flex-grow: 1;
  cursor: pointer;
  margin: 0.25em;
  padding: 4px 0.5em;
  min-width: 1.2em;
  text-align: center;
  font-size: 1em;
  height: 1.3em;
  line-height: 1.3em;
  border-radius: 14px;
  transition: background-color 0.7s;
}



.answer .choice_button:hover{
  transition: background-color 0.1s, transform 0.1s;
  background: #f25363;
  color: #FFF;
  transform: scale(1.06, 1.1);
}



.multiple_choices.helpMe .choice_button:not(.good_button){
  transition: background-color 0.4s, color 0.4s;
  transform: none;
  background-color: #dce7eb;
  color: #FFF;
  cursor: default;
}

.multiple_choices.helpMe .choice_button.good_button{
  transition: background-color 0.4s, color 0.4s;
}

.answer .choice_button.helpMe_button{
  flex-grow: 1.5;
}

.answer .choice_button.helpMe_button,
.multiple_choices.helpMe .choice_button.good_button{
  background: #ffd147;
  color: #745701;
}

.answer .helpMe_button:hover,
.multiple_choices.helpMe .choice_button.good_button:hover{
  background: #ffe23d;
}

.win.multiple_choices .good_button{
  background: #34b6af;
}


.answer .helpMe_button .click_here{
  left: 70%;
  top: 55%;
  color: #6e99ac;
  transition: opacity 0.4s;
}

.answer .helpMe_button:hover .click_here{
  opacity: 0;
}


.lose .choice_button.clicked{
  animation: 0.5s linear 0s 1 running shakeX;
}


@keyframes shakeX {
  from,
  to {
    transform: translateX(0);
  }

  15%, 45%, 75% {
    transform: translateX(-5px);
  }

  30%, 60%, 90%{
    transform: translateX(5px);
  }
}




.particles{
  position: relative;
}

.particle{
  position: absolute;
  top:  0;
  left: 0;
  width: 50px;
  height: 50px;
}




.answer .user_answer_and_correction{
  padding: 4px 9px;
  height: 1.3em;
  line-height: 1.3em;
}


.current .answer .user_answer_and_correction{
  padding-left: 29px;
}

.win .answer .user_answer_and_correction{
  color: #FFF;
}

.lose .answer .user_answer_and_correction{
  background: #FFF;
}


.answer .interro,
.answer input,
.answer .choice_button,
.user_answer_and_correction,
code.language-python,
code.language-javascript{
  font-family: Monaco, Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;
}

.answer .interro,
.answer input{
  background: #FFF;
  font-size: 1em;
  padding: 4px 0em;
  display: block;
  float: left;
  border: none;
  outline:none;
  height: 1.3em;
  line-height: 1.3em;
}

.answer input{
  padding-left: 0.1em;
  border-radius: 0;
}

.answer .interro{
  width: 21px;
  padding: 4px 3px;
  text-align: center;
}


.challenge .after.answer,
.challenge .after .user_answer_and_correction{
  background: #FFF;
}

.lose .answer .user_answer_and_correction,
.challenge .after.answer .user_answer_and_correction,
.lose .answer .user_answer_and_correction .correct_answer,
.withHelp .answer .user_answer_and_correction .correct_answer,
.lose .answer_in_place,
.withHelp .answer_in_place{
  color: #E22968;
}

.lose .answer .user_answer_and_correction .correct_answer,
.withHelp .answer .user_answer_and_correction .correct_answer,
.lose .answer_in_place,
.withHelp .answer_in_place{
  display: inline-block;
  animation: 1.2s ease-in-out 0.3s 2 running pulse;
}

@keyframes pulse {
  0%   { transform: scale(1);}
  50%  { transform: scale(1.18);}
  100% { transform: scale(1);}
}

.correct_answer{
  display: none;
}

.lose .answer .user_answer_and_correction span{
  color: #f677a2;
}

.tooLate .correct_answer{
  color: #FFF;
}

.after.answer .user_answer_and_correction span{
  color: #FAB;
}

.win .after.answer .user_answer_and_correction span,
.win .answer_in_place{
  color: #10b4ab;
}

.withHelp .after.answer .user_answer_and_correction .user_answer{
  color: #b0cddb;
}

.win .answer .user_answer_and_correction img{
  display: none;
}

.arrow{
  width: 30px;
  height: 10px;
  padding: 0 10px;
}





.challenge_question pre.language-python,
.challenge_question pre.language-javascript{
  padding: 0 0 3px 0;
  margin:  0 0 0 3px;
  background: none;
}

.language-python .token.string,
.language-python .token.char,
.language-javascript .token.string,
.language-javascript .token.char{
    color: #23ad00;
}


.inside_parenthesis{
  font-size: 0.8em;
  color: #6790a3;
}




.challenge_question pre.text,
.geoscreen .answer_placeholder,
.geoscreen .answer_in_place{
  font-family: "Monaco", "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
  line-height: 1.7;
  padding: 7px 0;
}



.geoscreen{
  position: relative;
}

.geoscreen .answer_placeholder{
  position: absolute;
}

.geoscreen .answer_placeholder,
.geoscreen .answer_in_place{
  padding: 0;
}

.geoscreen .answer_placeholder{
  animation: 1.2s ease-in-out 0.3s 2 running pulse;
}

.vector_name{
  position: relative;
  font-style: italic;
}

.two_letters_vector_arrow{
  position: absolute;
  top:  -1em;
  left:  0.3em;
}

.one_letter_vector_arrow{
  position: absolute;
  top:  -1em;
  left:  0.05em;
}

.custom_icon {
  font-family: "project-icons";
  font-style: normal;
  font-weight: normal;
}

.visible_question_mark {
  border-radius: 5px;
  margin:  0 0.1em;
  padding: 0 0.1em;
  color: #ffede8;
  background-color: #ff8570;
  display: inline-block;
  animation: 1.2s ease-in-out 0.3s 4 running pulse;
}



.machine{
  height: 48px;
  line-height: 48px;
}

.scissors_icon, .counter_icon{
  display: inline-block;
  height: 48px;
  width:  48px;
  background-size: cover;
  vertical-align: middle;
}

.scissors_icon{
  background-image: url(../icons/scissors_96.png);
}

.counter_icon{
  background-image: url(../icons/counter_96.png);
}



.blurry{
  -webkit-filter: blur(5px);
  -moz-filter:    blur(5px);
  -o-filter:      blur(5px);
  -ms-filter:     blur(5px);
  filter:         blur(5px);
}


#mask{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.7;
  display: none;
}


#levels{
  z-index: 100;
  position: fixed;
  display: none;
  top: 0;
  left: 0;
}

#levels .level{
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition-duration: 0.5s;
  transition-property: background-color, box-shadow, border;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.0);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

#levels .level .name{
  position: relative;
  top: 3.4em;
  left: -0.7em;
  text-align: center;
  width: 5em;
}

#levels .end_status{
  cursor: default;
}

#levels .level.done{
  background-color: rgba(255, 255, 255, 0.2);
}

#levels .level.done,
#levels .level.current_level{
  visibility: visible;
  border: 2px solid #FFF;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.6);
}

#levels .level.current_level{
  background-color: rgba(255, 255, 255, 0.6);
}








.end{
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 10px;
  font-size: 57px;
  color: #FFF;
  text-align: center;
  display: none;
}

.end h1{
  height: 80px;
}


.errors_count{
  color: #F44;
}

.end img{
  background: #F44;
}


#welcome{
  cursor: pointer;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2000;
}

#welcome img {
  margin:  auto;
  display: none;
}

#hour_of_code_welcome {
  position: absolute;
}


button.reset{
    color: #ccc;
    position: fixed;
    display: block;
    bottom: 113px;
    left: 32px;
    width: 50px;
    height: 50px;
    background: none;
    cursor: pointer;
    border: none;
    display: none;
}

.custom_icon.icon-trash {
  font-size: 3em;
}

#modal_confirm_reset {
    position:         fixed;
    top:              0;
    left:             0;
    width:            100%;
    height:           100%;
    display:          none;
    font-size:        3rem;
    z-index:          300;
}

#modal_confirm_reset:hover {
    cursor: pointer;
}

#modal_confirm_reset .modal_content:hover {
    cursor: default;
}


#modal_confirm_reset .modal_content {
    position: absolute;
    top: 10%;
    left: 10%;
    text-align: center;
    width: 80%;
    color: #DDD;
    background-color: #113E53;
}

#modal_confirm_reset button {
    color: #FFF;
    background-color: #AAAAAA;
    opacity: 0.8;
    font-size: 0.5em;
    padding: 15px;
}

#modal_confirm_reset button:hover {
    opacity: 1;
    cursor: pointer;
}

.modal_content .confirmation {
  margin: 50px 0 0 0;
}

.modal_content button {
  margin: 50px 0;
  border: none;
}

#modal_confirm_reset button.confirm_reset {
  background: #FFB417;
}





#ask_for_mail{
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-weight: 300;
  background-color: #CCC;
  color: #113E53;
  padding: 1em;
  width: 19em;
  line-height: 1.3;
  border: 2px solid #FFF;
  position: relative;
  box-shadow: 0 0 13px rgba(0, 0, 0, 0.8);
  margin: auto;
  z-index: 100;
  display: none;
}

#mail_en{
  background: url(../icons/gb.png) no-repeat 0 7px;
}

#mail_fr{
  background: url(../icons/fr.png) no-repeat 0 7px;
}


#ask_for_mail p{
  margin-bottom: 0.8em;
  padding-left: 30px;
}


#mail_field{
  margin-top: 1.2em;
}

#mail_form input{
  background: #FFF;
  font-size: 1em;
  padding: 0.2em;
  border: none;
  outline:none;
  height: 1.3em;
  line-height: 1.3em;
  width: 16em;
  text-align: center;
}

#mail_form .controls{
  margin: auto;
  width: 7em;
  height: 1.7em;
}

#mail_form .submit,
#mail_form .cancel{
  font-size: 1em;
  height: 1.7em;
}


#mail_form .cancel{
  background: url(../icons/cancel.png) no-repeat right 50%;
  cursor: pointer;
  width: 41px;
  float: left;
}


#mail_form .submit{
  float: right;
}
