/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

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 {
  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;
}


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

#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 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;
  display: none;
}

#hour_of_code_back{
  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;
  display: none;
}

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

#logo span{
  display: none;
}

#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: 600px;
  padding-bottom: 150px;
  position: relative;
}


.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;
}

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




.current .left_arrow{
  width: 44px;
}


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

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



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

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

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

#korben_form .submit{
  background: url(../icons/submit.png) no-repeat 50% 50%;
  cursor: pointer;
  width: 100%;
}

.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;
}

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


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


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

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

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


.answer .interro,
.answer input,
.user_answer,
.syntaxhighlighter table{
  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{
  background: #FFF;
}

.lose .answer .user_answer,
.challenge .after.answer .user_answer,
.lose .answer .user_answer .correction{
  color: #E22968;
}

.correction{
  display: none;
}

.lose .answer .user_answer span{
  color: #000;
}

.too_late .correction{
  color: #FFF;
}

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

.win .after.answer .user_answer span{
  color: #34B6AF;
}

.arrow{
  padding: 0 10px;
}





.syntaxhighlighter{
  padding: 0;
  margin: 0 0 0 3px;
}

.syntaxhighlighter table td.code .line{
  padding-bottom: 7px;
}


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



.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;
}




.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 .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;
  text-align: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #FFF;
  z-index: 2000;
}

#teacher,
#hour_of_code_welcome{
  visibility: hidden;
}

#hour_of_code_welcome{
  position: absolute;
  bottom: 0;
  left: 0;
}


#ask_for_mail,
#for_korben,
#end_korben{
  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;
}

#for_korben,
#end_korben{
    position: absolute;
    top: 30px;
    left: 250px;
    width: 26em;
}

#end_korben{
  position: fixed;
}

#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;
}

#for_korben p,
#end_korben p{
  margin-bottom: 0.8em;
  padding-left: 10px;
}

#for_korben input,
#for_korben textarea{
  width: 90%;
}

#for_korben input{
  font-size: 1em;
}

#for_korben textarea{
  font-size: 0.9em;
  height: 3em;
}

#for_korben .input{
  text-align: center;
  padding-left: 0;
}

#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,
#for_korben .controls{
  margin: auto;
  width: 7em;
  height: 1.7em;
}

#for_korben .controls{
  background: #34B6AF;
}

#mail_form .submit,
#mail_form .cancel,
#for_korben .submit{
  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;
}

