* {
    margin: 0;
    padding: 0;
}

body,
.backdrop header {
    font-size: 22px;
    color: #666;
}

@media (max-width: 767px) {

    body,
    .backdrop header {
        font-size: 18px;
    }
}

#cenario {
    cursor: pointer;
    position: relative;
    width: 90%;
    /*height:325px;*/
    height: 400px;
    overflow: hidden;
    margin: 30px auto;
    /*border:1px solid #6b6b6b;*/
    /*background:#CAE3EE url(https://image.ibb.co/fEhpSo/i8e3QQ9.png) repeat-x 165px 0;*/
    background: #CAE3EE url('../img/bg2.png');
    background-position-x: 0;
    background-position-y: -57px;
}

#cenario.loop {
    -webkit-animation: parallax 60s linear infinite;
}

@media (min-width: 390px) and (max-width:1299px) {
    #cenario.loop {
        -webkit-animation: parallax 30s linear infinite;
    }
}

#cenario #piso {
    position: absolute;
    top: 346px;
    left: 0;
    width: 100%;
    height: 54px;
    /*background: white url(https://image.ibb.co/kUH0YT/1hvUfeW.gif);*/
    background: url('../img/piso2.png');
    background-size: contain;
}

#cenario #piso.fase1 {
    -webkit-animation: play 1s linear infinite;
}

#cenario #personagem {
    position: relative;
    display: inline-block;
    margin: 227px 0 0 0;
    width: 92px;
    height: 97px;

    /*background: url(https://media1.giphy.com/media/s1VXy8TpCQIwM/200.gif) no-repeat;*/
    background: url('../img/animation.gif') no-repeat;
    background-size: contain;
    z-index: 01;
}

@media (min-width: 390px) {
    #cenario #personagem {
        width: 148px;
        height: 155px;
        margin: 170px 0 0 40%;

    }
}

/*#cenario #personagem.activo{
    background: url('../img/animation.gif') no-repeat;
}*/

.salto {
    background: url('../img/salto.png') no-repeat !important;
    background-size: contain !important;
}

/* #cenario #personagem.active{background:blue url(hhttps://media1.giphy.com/media/s1VXy8TpCQIwM/200.gif) no-repeat;no-repeat;background-size:contain;} */
#cenario #personagem.animate {
    -webkit-transition: All 0.35s;
}

#cenario #pulo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    width: 0;
    height: 0;
    cursor: default;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #6b6b6b;
    border-right: 0;
    background: none;
    outline: none;
}

#cenario #hit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    font-family: 'Share', cursive;
    color: #fff;
    text-shadow: 1px 1px 0px #000;
}

@-webkit-keyframes play {
    from {
        background-position: 0;
    }

    to {
        background-position: -165px;
    }
}

@-webkit-keyframes parallax {
    from {
        background-position-x: 0;
    }

    to {
        background-position-x: -2000px;
    }
}

























#cenario #obstaculos {
    position: absolute;
    top: 300px;
    left: 0;
    width: 100%;
    height: 67px;
}

#cenario #obstaculos .bloco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 70%;
    background: url('../img/obstaculo.png');
    background-repeat: repeat;
    background-size: auto;
    background-size: contain;
    background-repeat: no-repeat;
}

@media (min-width: 390px) {
    #cenario #obstaculos .bloco {
        width: 40px;
        height: 100%;
    }
}

#cenario #obstaculos .bloco.active {
    /*-webkit-animation: playObstaulo 4s linear infinite;*/
    -webkit-animation: playObstaulo 1.3s linear infinite;
}

@media (min-width: 390px) {
    #cenario #obstaculos .bloco.active {
        /*-webkit-animation: playObstaulo 4s linear infinite;*/
        -webkit-animation: playObstaulo 3s linear infinite;
    }
}

.progreso {

    position: relative;
    top: 10px;
    height: 50px;
    width: 170px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
}

@media (min-width: 390px) {
    .progreso {

        left: 10px;
        margin: 0;
    }
}

.e0 {
    background-image: url('../img/e0.png');
}

.e1 {
    background-image: url('../img/e1.png');
}

.e2 {
    background-image: url('../img/e2.png');
}

.e3 {
    background-image: url('../img/e3.png');
}

.e4 {
    background-image: url('../img/e4.png');
}

.e5 {
    background-image: url('../img/e5.png');
}

/*#pulo:focus{background:green;}*/
/*#cenario #obstaculos.active{background: url(https://imgur.com/O2Q3FJf.gif) repeat-x;z-index:0;-webkit-animation: playObjetos 4s linear infinite;}*/



@-webkit-keyframes playObjetos {
    from {
        left: 0;
    }

    to {
        left: -1400px;
    }
}

@-webkit-keyframes playObstaulo {
    from {
        right: 0;
    }

    to {
        right: 110%;
    }
}

.paused {
    -webkit-animation-play-state: paused !important;
    -moz-animation-play-state: paused !important;
    -o-animation-play-state: paused !important;
    animation-play-state: paused !important;
}



/*Modal*/

.modalBichos .modal-dialog {
    min-height: 90%;
    max-width: 800px;
    width: 96%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;

    margin-right: auto;
}

.modalBichos .modal-content {
    background-image: url(../img/pattern-puntos.png);
    background-repeat: repeat;
    background-color: hsl(47, 100%, 88%);
    padding: 20px;
    border-radius: 15px;
    border: #FFDC5D 4px dashed;
    position: relative;
    min-width: 400px;
}

.modal-1 {
    background-color: #FFDC5D;
    border: #FFDC5D 4px dashed;
}


.modal-2 {
    background-color: #00C2BC;
    border: #FFDC5D 4px dashed;
}

@media (max-width: 390px) {
    .modalBichos .modal-content {
        min-width: 100%;
    }
}

.modalBichos .modal-body {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 30px;
    text-align: center;
    font-size: 19px;
    color: #666;
}

@media (min-width: 767px) {
    .modalBichos .modal-body {
        font-size: 22px;
    }
}

.modalBichos .modal-body h2 {
    font-weight: 600;
}

.modalBichos .modal-body .modal-title {
    color: #016D38;
}

.modalBichos .btnReiniciar {
    padding: .2em 1em .3em;
    color: #fff;
    background-color: #016D38;
    border: 0;
    font-size: 20px;
    margin: 20px auto;
    border-radius: 1.3em;
}

.modalAmarillo .modal-content {
    background-color: #FFE19F !important;
}


.modalAmarillo .modal-body {
    color: #016D38 !important;
}

.modalAmarillo .btnReiniciar {
    background-color: #016D38 !important;
}

.stars {
    background-image: url('../img/nemesis.png');
    height: 50px;
    width: 100%;
    max-width: 280px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto;
    margin-top: 25px;
}

.numeracion {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    font-size: 25px;
    border: 3px solid #FFDC5D;
    background-color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

@media (max-width: 767px) {
    .numeracion {
        left: -5px;
        font-size: 20px;
        border: 2px solid #FFDC5D;
        width: 30px;
        height: 30px;
    }
}





.backdrop .contenido {
    display: block;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    overflow: auto;
}







.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.fade.in {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}

.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: #000;
}

.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

@media (min-width: 768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto;
    }
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}


.redi__contenido {
    max-width: none !important;
}