/* 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 {
  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 #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;
}

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

#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: 150px;
  position: relative;
  color: #295a71;
}

#antichamber{
  visibility: hidden;
}


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

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


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

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

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


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

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


.answer .choice_button{
  background: #caebe9;
  flex-grow: 1;
  flex-basis: 8%;
  cursor: pointer;
  margin: 0.3em;
  padding: 4px 0.5em;
  min-width: 1.2em;
  text-align: center;
  font-size: 1em;
  height: 1.3em;
  line-height: 1.3em;
  border-radius: 4px;
}

.answer .choice_button:hover{
  background: #1f918b;
  color: #FFF;
}

.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{
  background: #FFF;
}

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

.correct_answer{
  display: none;
}

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

.too_late .correct_answer{
  color: #FFF;
}

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

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

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

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







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

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




.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    : 170px;
    left      : 35px;
    width     : 50px;
    height    : 50px;
    background: none;
    cursor    : pointer;
    border    : none;
    display   : none;
}

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

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