
@font-face {
  font-family: 'SilentTeacher';
  src: url('SilentTeacher.eot');
  src: url('SilentTeacher.eot?#iefix') format('embedded-opentype'),
    url('SilentTeacher.woff') format('woff'),
    url('SilentTeacher.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'project-icons';
  src: url('../icons/font/project-icons.eot?65964485');
  src: url('../icons/font/project-icons.eot?65964485#iefix') format('embedded-opentype'),
       url('../icons/font/project-icons.woff?65964485') format('woff'),
       url('../icons/font/project-icons.ttf?65964485') format('truetype'),
       url('../icons/font/project-icons.svg?65964485#project-icons') format('svg');
  font-weight: normal;
  font-style: normal;
}




body {
    margin     : 0;
    height     : 100%;
    font-size  : 18px;
    font-family: 'Cutive Mono', Monaco, Consolas, 'Courier New', Courier, monospace;
    line-height: 1;
    min-height : 100%;
    color      : #666;
    background : #F8F8F8;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}

#main{
  touch-action: none;
  overscroll-behavior: none;
}

#swipe_zone{
  position: absolute;
  width: 100%;
  height: 100%;
}



.back-to-compute-it {
  text-decoration: none;
  color: #666;
  font-size: 25px;
}

.back-to-compute-it:hover {
  color: black;
}

.compute-it {
  font-family: 'SilentTeacher';
  text-transform: uppercase;
  letter-spacing: -2px;
  font-weight: normal;
  word-spacing: 0.2em;
  font-size: 16px;
}

/*DEBUG
#sourceCode .syntaxhighlighter,
#mapContainer {
    background: #ABC;
}

body #sizeSetterContainer{
    visibility: visible;
    z-index: 100;
    opacity: 0.5;
}
*/




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




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




#mapContainer {
    position: absolute;
    width:  50%;
    height: 80%;
    top:    10%;
    left:   8%;
}



#map {
    margin: auto;
}


#toxicode_logo {
    z-index: 200;
    position: absolute;
    bottom: 10px;
    left: 30px;
}




#end_page {
    position:  absolute;
    width:     100%;
    height:    100%;
    top:       0px;
    left:      0px;
    display:   none;
    font-size: 2rem;
    z-index:   300;
    background-color: #EEE;
}

#end_page .container {
    width:      100%;
    position:   absolute;
    top:        50%;
    text-align: center;

    transform:  translateY(-50%);
}


#end_page .container>p {
    transform:  translateY(-100%);
}

#end_page .container>div,
#end_page .container>p {
    display: inline-block;
}

#end_page {
    font-size: 3em;
}

#end_page .laurel-right,
#end_page .laurel-left {
    position: relative;
}

#end_page .laurel-right {
    left: 10px;
}

#end_page .laurel-left {
    transform: scaleX(-1);
    right: 10px;
}



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

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

.custom_icon.icon-team {
  font-size: 6em;
}

.challenge_block .custom_icon.icon-lock {
  position: relative;
  top:      3px;
  left:     0;
}

.custom_icon.icon-mute,
.custom_icon.icon-sound {
  display: none;
  font-size: 5em;
}

.custom_icon.icon-mute.active,
.custom_icon.icon-sound.active {
  display: inline-block;
}

.keyboard-keys {
  width: 130px;
  height: 90px;
  position: absolute;
  left: calc(50% - 65px);
}

.keyboard-key {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #65778d;
  border-radius: 4px;
  line-height: 40px;
  vertical-align: middle;
  text-align: center;
}

.keyboard-key.up-key {
  left: 45px;
  top: 0;
}

.keyboard-key.right-key {
  left: 90px;
  top: 45px;
}

.keyboard-key.down-key {
  left: 45px;
  top: 45px;
}

.keyboard-key.left-key {
  left: 0;
  top: 45px;
}

.keyboard-key .custom_icon {
  color: white;
  font-size: 22px;
  line-height: 40px;
  vertical-align: middle;
  display: block;
}

.keyboard-key.active, .keyboard-key.call-to-action {
  animation-name: highlight;
  animation-direction: alternate;
  animation-timing-function: ease-out;
  animation-duration: 0.9s;
  animation-iteration-count: infinite;
}

.keyboard-key.call-to-action {
  animation-duration: 1.2s;
}

@keyframes highlight {
  0% {
    opacity: 0.2;
  }
  100% {
    color: 1;
  }
}


button.menu,
button.mute,
button.reset,
button.team,
button.about {
    color: #999;
    position: absolute;
    display:  block;
    width:    50px;
    height:   50px;
    background: none;
    cursor : pointer;
}







button.menu,
button.mute,
button.reset,
button.about {
  left: 24px;
}

button.menu {
    opacity: 0.4;
    z-index: 100;
}


button.mute:hover,
button.reset:hover,
button.team:hover,
button.about:hover {
    color: #555;
}

button.menu:hover{
    opacity: 0.6;
}

button.menu {
    top: 23px;
}

button.mute {
    display: none;
    bottom:  140px;
    left:   26px;
    z-index: 200;
}


button.reset {
    display: none;
    bottom:  80px;
    z-index: 200;
}

button.team {
  z-index: 200;
  display: none;
  bottom: 195px;
  left: 23px;
}

button.about {
  z-index: 200;
  display: none;
  bottom: 240px;
  left: 27px;
  font-size: 3em;
}



@media screen and (max-width: 600px) {

  #menu_buttons{
    background: #EEE;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    z-index: 200;
    border-top: 1px solid #888;
  }

  #menu_buttons button{
    position: relative;
    left: 0;
    bottom: 0;
    width: 22%;
    text-align: center;
  }

  #menu_buttons button.about{
    bottom: 5px;
  }

  #menu_buttons button.team{
    bottom: -8px;
  }

}



.modal {
    position:         absolute;
    top:              0;
    left:             0;
    background-color: rgba(0,0,0,0.4);
    width:            100%;
    height:           100%;
    display:          none;
    font-size:        3rem;
    z-index:          300;
}


.modal:hover {
    cursor: pointer;
}

.modal .modal_content:hover {
    cursor: default;
}


.modal .modal_content {
    position: absolute;
    top: 10%;
    left: 10%;
    text-align:       center;
    width: 80%;

    background-color: #F8F8F8;
}

.modal button {
    background-color: #AAAAAA;
    opacity: 0.6;
    font-size: 0.5em;
    padding: 15px;
}

.modal button:hover {
    opacity: 0.8;
    cursor: pointer;
}


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







#challenge_data {
  color: #AAA;
  position: absolute;
  top: 0;
  right: 0;
  text-align: right;
}


#challenge_data a.progression_for_challenge {
  display: block;
  color: #BBB;
  font-size: 0.7em;
}


#text_tutorial {
  position: absolute;
  top: calc(50% - 180px);
  left: 8%;
  width: 50%;
  height: 90px;
  font-weight: bold;
  text-align: center;
  font-size: 2em;
  display: none;
}



#challenge_selection {
    position:   absolute;
    width:      100%;
    height:     100%;
    top:        0px;
    left:       0px;
    display:    none;
    text-align: center;
    z-index:    100;
    background-color: #EEE;
}


#challenge_selection .container {
    position: relative;
    margin-left: 20%;
    padding-right: 10%;
    height: 100%;
    overflow-y: scroll;
}


@media screen and (max-width: 600px) {
  #challenge_selection .container{
    margin-left: 10%;
    padding-right: 10%;
  }

  #challenge_selection{
    height: calc(100% - 150px);
  }
}

.challenge_block {
    font-family  : 'Cutive Mono', Monaco, Consolas, 'Courier New', Courier, monospace;
    font-weight  : bold;
    width        : 100px;
    height       : 100px;
    line-height  : 100px;
    margin-bottom: 100px;
    position: absolute;
    text-align   : center;
    font-size    : 2em;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    color: #FFF;
    cursor: pointer;


    background: #FFB417;

    -webkit-transition: background 0.5s;
    transition: background 0.5s;

}


.challenge_block:hover {
    opacity: 0.7;
}


.challenge_block:active {
    background-color: #939393;
}

.challenge_block.locked {
    background: #F55;
}


.challenge_block.done {
    background: #4CB378;
}

.challenge_block.current {
    background: #FFF;
    color: #666;
}



.shake {
  animation: shake 0.3s linear both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}


#hour_of_code_back{
  font-size: 0.8em;
  position: absolute;
  bottom: 10px;
  right: 30px;
  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.big {
  font-size: 1.5em;
}

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



@keyframes shake {
  0%{
    transform: translateX(4px);
  }

  25%, 75% {
    transform: translateX(4px);
  }

  50%{
    transform: translateX(0)
  }

  12%, 37%, 62%, 87% {
    transform: translateX(-4px)
  }

}


#end_page .container>div.actions {
  display: block;
  width: 50px;
  margin: 0 auto;
}


.actions .menu {
  position: inherit;
}

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

.modal_content button {
  margin: 50px 0;
}

.modal button.confirm_reset,
.modal button.yes {
  background: #FFB417;
}





#team {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 50;
  background : #F8F8F8;

  padding: 1em 3em;
  color: #666;
  background: #F8F8F8;
  line-height: 1.3;
  font-family: "Open Sans", sans-serif;

  overflow: auto;
}

#team a {
  color: #949494;
}

#team .team_container {
    max-width: 900px;
    margin: auto;
    margin-bottom: 10em;
    text-align: center;
}

#team h1 {
  color: #e83878;
  font-size: 3em;
}

#team .team_container>div {
  margin-top: 10px;
}

#team .name {
  font-size: 1.4em;
  padding: 1em 0 0.5em 0;
  color: #29cbd3;

}





#about{
  padding: 1em 3em;
  color: #666;
  background: #F8F8F8;
  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 {
  color: #e83878;
  font-size: 3em;
  padding: 1em 0 0.5em 0;
}

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


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





#sounds {
  display: none;
}