/*
       Force full width & height.
       If this block is removed, the layout height/length will be determined by
       the amount of content in the page. That might result in a page which has
       a footer only a few inches from the top of the viewport, or one which
       scrolls beyond the viewport.
       This forces the layout to always be full screen regardless of how much,
       or how little, content is in place. Neither is "right" or "wrong", there
       are valid cases for each. I just want to be clear what's controlling the
       page/viewport height.
     */
 .Badge1 {
   -webkit-align-self: flex-start;
       -ms-flex-item-align: start;
           align-self: flex-start;
   z-index: 25;
 }

 .pause {
   position: absolute;
   bottom: 20px;
   left: 10px;
   width: 40px;
   height: 40px;
   background-size: cover;
   z-index: 15;
 }

 .fullscreen {
   position: absolute;
   bottom: 20px;
   right: 20px;
   width: 40px;
   height: 40px;
   background-image: url("../img/fs.png");
   background-size: cover;
 }

.fullscreen:-webkit-full-screen	{ display: none }
.fullscreen:-moz-full-screen		{ display: none }
.fullscreen:-ms-full-screen		{ display: none }
.fullscreen:-o-full-screen		{ display: none }
.fullscreen:full-screen			{ display: none }

 .Layer_4 {
   background-image: url("../img/badge/Layer_4.png");
   background-repeat: no-repeat;
   background-size: contain;
   position: relative; /* IE 9 */
   -webkit-transform: rotate(7.1deg); /* Chrome, Safari, Opera */
   transform: rotate(7.1deg);
   left: 140px;
   top: 437px;
   width: 298px;
   height: 361px;
   z-index: 24;
 }
 .Fernando_AVILA {
   font-size: 40px;
     font-family: sans-serif;
     color: rgb(12, 12, 13);
     font-weight: bold;
     text-transform: uppercase;
     line-height: 1.167;
     text-align: center;
     position: relative;
     left: 30px;
     top: 425px;
     width: 450px; /* IE 9 */
     -webkit-transform: rotate(7.1deg); /* Chrome, Safari, Opera */
     transform: rotate(7.1deg);
     z-index: 23;
     text-align: center;
 }
 .Group_1 {
   background-image: url("../img/badge/Group_1.png");
   background-repeat: no-repeat;
   width: 724px;
   height: 1993px;
   z-index: 22;
 }



html, body, .viewport {
 width: 100%;
 height: 100%;
  /*position: absolute;*/
 margin: 0;
 background-color: #000;
 color: #fff;
 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


.welcome-footer {
  width: 100%;
  pointer-events: none;
  -webkit-align-self: flex-end;
      -ms-flex-item-align: end;
          align-self: flex-end;
  background-image: url(../img/welcome_footer.png);
  background-color: transparent;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: contain;
}

.gameover-footer {
  width: 100%;
  -webkit-align-self: flex-end;
      -ms-flex-item-align: end;
          align-self: flex-end;
  background-image: url(../img/footer.png);
  background-color: transparent;
  background-position: bottom center;
  background-size: contain;
  background-repeat: no-repeat;
}

.gameover-text {
  -webkit-box-flex: 0.45;
  -webkit-flex: 0.45;
      -ms-flex: 0.45;
          flex: 0.45;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
    -ms-flex-direction: column;
        flex-direction: column;
font-family: 'Oswald', sans-serif;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
color: #a10000;
-webkit-box-pack: center;
-webkit-justify-content: center;
    -ms-flex-pack: center;
        justify-content: center;
-webkit-box-align: center;
-webkit-align-items: center;
    -ms-flex-align: center;
        align-items: center;
text-align: center;
}

.button {
  height: 100px;
}

.button:hover {
  background-color: rgba(255,255,255,0.8)
}

.rotate-alert {
  display: none
}

.header {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-height: 200px;
  margin: 40px 0px 0px 40px;
  width: 95%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-align-self: center;
      -ms-flex-item-align: center;
          align-self: center;
  background-color: transparent;
  background-position: top left;
  background-repeat: no-repeat;
  background-image: url(../img/landing_header_lg.png);
  /*background-attachment: fixed;*/
  background-size: contain;
}

.badge {
      background-color: transparent;
      background-size: contain;
      background-position: top center;
      background-repeat: no-repeat;
      background-image: url(../img/Badge.png);
      -webkit-box-align: end;
      -webkit-align-items: flex-end;
          -ms-flex-align: end;
              align-items: flex-end;
      -webkit-box-pack: end;
      -webkit-justify-content: flex-end;
          -ms-flex-pack: end;
              justify-content: flex-end;
      display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      -webkit-align-self: flex-start;
          -ms-flex-item-align: start;
              align-self: flex-start;
      margin: 0px 0px 0px 20px;
      pointer-events: none;
}

.logo_container {
  height: 173px;
  background-color: transparent;
  background-size: contain;
  background-position: top right;
  background-repeat: no-repeat;
  background-image: url(../img/tele_logo.png);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-self: flex-start;
      -ms-flex-item-align: start;
          align-self: flex-start;
  margin: 40px;
  pointer-events: none
}

.login {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  z-index: 1;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
      -ms-flex-align: start;
          align-items: flex-start;
  margin-left: 5%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}


#landing.fade {
  opacity:0;
  pointer-events: none
}

#landing {
    opacity:1;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
    z-index: 20;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow-y: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../img/landing.gif);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
        -ms-flex-align: start;
            align-items: flex-start;;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#landing2 {
    opacity:1;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
    z-index: 20;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    overflow-y: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../img/landing.gif);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
        -ms-flex-align: start;
            align-items: flex-start;;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}


.footer {
  width: 100%;
  pointer-events: none;
  -webkit-align-self: flex-end;
      -ms-flex-item-align: end;
          align-self: flex-end;
  background-image: url(../img/footer.png);
  background-color: transparent;
  background-position: bottom center;
  background-size: contain;
  background-repeat: no-repeat;
}


.gamepage {
  /*background-image: url(../img/landing_bg.gif);*/
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
}

.center-image{
  background-color: transparent;

  /* Background image is centered vertically and horizontally at all times */
  background-position: center center;

  /* Background image doesn't tile */
  background-repeat: no-repeat;

  /* Background image is fixed in the viewport so that it doesn't move when
     the content's height is greater than the image's height */
  background-attachment: fixed;

  /* This is what makes the background image rescale based
     on the container's size */
  background-size: cover;
}


@-webkit-keyframes flickerAnimation { /* flame pulses */
  0%   { opacity:0; }
  75%  { opacity:1; }
  100% { opacity:1; }
}


@keyframes flickerAnimation { /* flame pulses */
  0%   { opacity:0; }
  75%  { opacity:1; }
  100% { opacity:1; }
}

.timer {
  position: absolute;
  top:40px;
  right: 40px;
  height: 120px;
  width: 120px;
    /*opacity:1;*/
    /*animation: flickerAnimation 1s infinite;*/
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */

/* Opera < 12.1 */
.fblogin {
  background-image: url(../img/fb_login.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 134px;
  background-color: none;
  height: 55px;
  border: 0px;
  background-color: transparent;
}

.btnz {
    display: block;
    float: left;
    padding: 10px 15px;
    border:none;
    background-color: #ececec;
    text-decoration: none;
    font-size: 18px;
    color: #FFF;
}

.btnz:hover {
    color: #efefef;
}

.facebook {
    /*background-color: #3b5998;*/
    background-image: url(../img/fb_share.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 150px;
    height: 40px;
    background-color: transparent;
}

.gplus {
    background-color: #dd4b39;
}

.twitter {
  background-image: url(../img/twitter_share.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 150px;
  height: 40px;
  background-color: transparent;
  margin-left: 20px;
}

.shareheader {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
      -ms-flex-align: end;
          align-items: flex-end;
  margin: 20px;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.shareheader-in {
  background-image: url(../img/share_header_two.png);
  min-height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  background-position: bottom center;
  -webkit-align-self: flex-end;
      -ms-flex-item-align: end;
          align-self: flex-end;
}

.sharebox {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  margin: 30px 0px 20px 30px;
}

.sharescreen {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
  position: absolute;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  background-image: url(../img/scene_0.gif);
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 10;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */ /* Firefox < 16 */ /* Internet Explorer */ /* Opera < 12.1 */
            animation: fadein 1s;
}

.scene {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  /*position: fixed;*/
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 10;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */ /* Firefox < 16 */ /* Internet Explorer */ /* Opera < 12.1 */
            animation: fadein 1s;
}

.scene-hidden {
  display: none;
  width: 100%;
  height: 100%;
  /*position: fixed;*/
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
              -ms-grid-row-align: center;
          align-items: center;
  z-index: 10;
  background-color: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;

    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */ /* Firefox < 16 */ /* Internet Explorer */ /* Opera < 12.1 */
            animation: fadein 1s;
}

.vidFull {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  left: 0;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  background-color: black;
}

.buttonBox {
  width: 50%;
  height: 50%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.escapar {
  background: transparent url(../img/buttons/escapar.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.escapar:hover {
  background: transparent url(../img/buttons/escapar.png) 0px -160px;
  background-repeat: no-repeat;
  background-size: cover;
}

.button {
  height: 160px;
}
/* encapsulate the various syntax in helper clases */
/* inspired by http://infrequently.org/2009/08/css-3-progress/ */
/* items flex/expand vertically */
header, footer {
 height: 100px;
}

.main {
 /* previous syntax */
 -webkit-box-flex: 1;
     -ms-box-flex: 1;
         box-flex: 1;
 /* current syntax */
 -webkit-flex: 1;
    -moz-flex: 1;
     -ms-flex: 1;
         flex: 1;
}

article {
 /* previous syntax */
 -webkit-box-flex: 5;
     -ms-box-flex: 5;
         box-flex: 5;
 /* current syntax */
 -webkit-flex: 5;
    -moz-flex: 5;
     -ms-flex: 5;
         flex: 5;
}

aside, nav {
 /* previous syntax */
 -webkit-box-flex: 1;
     -ms-box-flex: 1;
         box-flex: 1;
 /* current syntax */
 -webkit-flex: 1;
    -moz-flex: 1;
     -ms-flex: 1;
         flex: 1;
}

a {
  color: #4183c4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
  font-size: 12px;
  margin: 0 2px;
  padding: 0px 5px;
}

h1, h2, h3, h4 {
  font-weight: bold;
  margin: 0 0 15px;
  padding: 0;
}

h1 {
  border-bottom: 1px solid #ddd;
  font-size: 2.5em;
  font-weight: bold;
  margin: 0 0 15px;
  padding: 0;
}

h2 {
  border-bottom: 1px solid #eee;
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

p, ul {
  margin: 15px 0;
}

ul {
  padding-left: 30px;
}

body:after {
  display:none;
  content: url("../img/play.png") url("../img/pause.png") url("../img/timer/1.png") url("../img/timer/2.png") url("../img/timer/3.png") url("../img/timer/4.png") url("../img/timer/5.png") url("../img/buttons/enfrentarlo.png") url("../img/buttons/escapar.png") url("../img/buttons/esconderse.png") url("../img/buttons/huir.png") url("../img/buttons/salir.png") url("../img/buttons/trata.png") url("../img/buttons/cajon_dos.png") url("../img/buttons/cajon_uno.png") url("../img/buttons/acercarse_hover.png") url("../img/buttons/buscando_hover.png") url("../img/buttons/cajon_dos_hover.png") url("../img/buttons/cajon_uno_hover.png") url("../img/buttons/enfrentarlo_hover.png") url("../img/buttons/escapar_hover.png") url("../img/buttons/esconderse_hover.png") url("../img/buttons/huir_hover.png") url("../img/buttons/salir_hover.png") url("../img/buttons/trata_hover.png") url("../img/buttons/acercarse_hover.png") url("../img/buttons/buscando_hover.png") url("../img/buttons/cajon_dos_hover.png") url("../img/buttons/cajon_uno_hover.png");
}

#container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

/*//video */
.video-wrapper {
  z-index: 5;
	position: fixed;
	margin: 0 auto;
	max-width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.content {
	position: relative;
	margin: 0 auto;
	padding: 20px;
	max-width: 840px;
}

.video-responsive {
	padding-bottom: 56.25%;
	position: relative;
	width: 100%;
}

.canvas,
.video {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	background: #000;
	z-index: 5;
	cursor: pointer;
}

.video-timeline {
	background: rgba(255, 255, 255, 0.4);
	bottom: 0;
	cursor: pointer;
	height: 12px;
	left: 0;
	opacity: 1;
	position: absolute;
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
	width: 100%;
	z-index: 12;
}

.video-timeline-passed {
	background: #E81D31;
	height: 100%;
	width: 0;
}
@media screen and (min-width: 768px) {
	.video-timeline-passed {
		background: #E81D31;
	}
}


.video-wrapper:hover .video-timeline {
	height: 12px;
	opacity: 0.85;
}

.video-wrapper:hover .video-timeline-passed {
	background: #E81D31;
}

.video-wrapper:hover .video-event {
	bottom: 12px;
}

.video-wrapper:hover .video-timeline-event {
	background: #790c17;
	opacity: 0.8;
}
