#container{
    position: relative;
    margin: 0px auto;
    padding: 0px;
    box-sizing: border-box;
    width: 845px;
    height: 508px;
    height: calc(100px + 317px + 200px);
    height: -moz-calc(100px + 317px + 200px);
    overflow: hidden;
}

#header{
    position: relative;
    width: 100%;
    height: 100px;
    margin: 0px;
    padding: 0px 20px;
    box-sizing: border-box;
    background-color: #FFF;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}
.title{
    display: flex;
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    width: 100%;
    width: calc(100% - 80px);
    width: -moz-calc(100% - 80px);
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.title h1{
    display: block;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;

    font-family: 'FSJoey-Medium';
    font-size: 18px;
    color: #012d90;
    text-align: left;
    font-weight: normal;
    line-height: normal;
}
.title p{
    display: block;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;

    font-family: 'FSJoey-Bold';
    font-size: 24px;
    color: #012d90;
    text-align: left;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
}

/*
.logo{
    display: block;
    position: relative;
    width: 57px;
    height: 82px;
    margin: 0px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url(../images/logo.svg);
}*/


#game{
    position: relative;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}
#controles{
    display: none;
}
#escenario{
    position: relative;
    width: 100%;
    height: auto;
    margin: 0px;
    padding: 0px;
    cursor: grab;
}
.escenario-move #escenario-img,
.escenario-move #escenario-situaciones{
    cursor: grabbing !important;
    transition: left 0.1s ease-out;
    -webkit-transition: left 0.1s ease-out;
}
.escenario-move .escenario-situacion > div{
    cursor: grabbing !important;
}
#escenario-img{
    position: relative;
    margin: 0px;
    padding: 0px;
    left: 0px;
    box-sizing: border-box;
}
#escenario-situaciones{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
}
#escenario-situaciones-content{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
}
#escenario-correct-icon,
#escenario-incorrect-icon,
.correcto-box > div,
.incorrecto-box > div
{
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 0px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 50%;
    box-shadow: 2px 2px 4px 1px rgba(0,0,0,0.4);
}
#escenario-correct-icon,
#escenario-incorrect-icon{
    top: 0px;
    left: 0px;
}
.correcto-box > div,
.incorrecto-box > div{
    top: -2px;
    left: -2px;
}
#escenario-correct-icon,.correcto-box > div{
    background-image: url(../images/correct-icon.png);
}
#escenario-incorrect-icon,.incorrecto-box > div{
    background-image: url(../images/incorrect-icon.png);
}
#escenario-correct-icon::after,
#escenario-incorrect-icon::after,
.correcto-box > div::after,
.incorrecto-box > div::after{
    position: absolute;
    content: "";
    width: 25px;
    height: 25px;
    margin: 0px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    top: 50%;
    top: calc(50% - 12.5px);
    top: -moz-calc(50% - 12.5px);
    left: 50%;
    left: calc(50% - 12.5px);
    left: -moz-calc(50% - 12.5px);
}
#escenario-correct-icon::after,
.correcto-box > div::after{
    background-image: url(../images/correct-icon.svg);
}
#escenario-incorrect-icon::after,
.incorrecto-box > div::after{
    background-image: url(../images/incorrect-icon.svg);
}

.icon-appear-result{
    animation-name: animacion-icon-result-appear;
    animation-duration: 0.25s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    -webkit-animation-name: animacion-icon-result-appear;
    -webkit-animation-duration: 0.25s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: 1;
}
@keyframes animacion-icon-result-appear{
    0%{
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -o-transform: scale(0.5);
        opacity: 0;
    }
    50%{
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -o-transform: scale(1.2);
        opacity: 1;
    }
    80%{
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
        -o-transform: scale(0.8);
        opacity: 1;
    }
    100%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        opacity: 1;
    }
}
.icon-move-result{
    transition: left 0.5s, top 0.5s;
    -webkit-transition: left 0.5s, top 0.5s;
}
.icon-off-result{
    visibility: hidden;
}


.escenario-situacion{
    position: absolute;
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.escenario-situacion > div{
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    background-color: rgba(0,0,0,0);
}
.escenario-situacion-hover{
    animation-name: animacion-situacion-over;
    animation-duration: 0.2s;
    animation-iteration-count: 1;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    -webkit-animation-name: animacion-situacion-over;
    -webkit-animation-duration: 0.3s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: linear;
    -webkit-animation-fill-mode: forwards;
}
@keyframes animacion-situacion-over{
    0%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        filter: drop-shadow(0px 0px 0px rgba(0,0,0,0));
    }
    25%{
        transform: scale(1.1);
        -webkit-transform: scale(1.1);
        -o-transform: scale(1.1);
    }
    50%{
        transform: scale(0.9);
        -webkit-transform: scale(0.9);
        -o-transform: scale(0.9);
    }
    70%{
        transform: scale(1.05);
        -webkit-transform: scale(1.05);
        -o-transform: scale(1.05);
    }
    90%{
        transform: scale(0.95);
        -webkit-transform: scale(0.95);
        -o-transform: scale(0.95);
    }
    100%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
        filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.75));
    }
    
}

#footer{
    position: relative;
    width: 100%;
    height: fit-content;
    margin: 0px;
    padding: 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
#incorrectos-content{
    position: relative;
    width: 40px;
    width: calc(50px * 3);
    width: -moz-calc(50px * 3);
    height: auto;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}
#correctos-content{
    position: relative;
    width: 80%;
    width: calc(80% - ((50px * 3) + 20px));
    width: -moz-calc(80% - ((50px * 3) + 20px));
    height: auto;
    margin: 0px;
    padding: 0px;
    padding-left: 10px;
    padding-top: 5px;
    box-sizing: border-box;
    margin-right: 20px;

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.incorrecto-box,
.correcto-box
{
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    background-color: #FFFFFF;
    margin: 0px;
    padding: 0px;

}
.incorrecto-box{
    border: #E51915 solid 2px;
}
.correcto-box{
    border: #3BAA35 solid 2px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.correcto-box-off > div{
    visibility: hidden;
}
.incorrecto-box-off > div{
    visibility: hidden;
}

.correcto-box-on > div,
.incorrecto-box-on > div{
    animation-name: animacion-icon-result-dissapear;
    animation-duration: 0.25s;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    -webkit-animation-name: animacion-icon-result-dissapear;
    -webkit-animation-duration: 0.25s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-fill-mode: forwards;
}
@keyframes animacion-icon-result-dissapear{
    0%{
        opacity: 0;
        transform: scale(0.5);
        -webkit-transform: scale(0.5);
        -o-transform: scale(0.5);
    }
    100%{
        opacity: 1;
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
}
.correcto-box-on{
    border: none !important;
}
.incorrecto-box-on{
    border: none !important;
}


/**************CARGADOR***************/
#cargador{
    z-index: 700;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    background-color: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.cargador-on{
    display: flex;
}
.cargador-off{
    display: none;
}
.cargador-img{
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url(../images/cargador_v2g.gif);
    margin: 0px;
    padding: 0px;
    margin-bottom: 10px;
}
.cargador-txt{
    display: block;
    font-family: 'Barlow-Medium';
    font-size: 14px;
    color: #000000;
    text-align: center;
    font-weight: normal;
    line-height: normal;
    margin: 0px;
    padding: 0px;
}


#instrucciones{
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    left: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.instrucciones-off{
    visibility: hidden;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    opacity: 0;

    transition: visibility 0.5s, opacity 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
    -webkit-transition: visibility 0.5s, opacity 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
}
.instrucciones-on{
    visibility: visible;
}

#instrucciones-box{
    position: relative;
    width: 600px;
    margin: 0px auto;
    padding: 15px;
    padding-bottom: 0px;
    border-radius: 5px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 3px 2px rgba(0,0,0,0.2);
    height: auto;
    box-sizing: border-box;
}
#instrucciones-box > h1{
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0px;
    padding: 0px;

    font-family: 'FSJoey-Bold';
    font-size: 19px;
    color: #003D7E;
    text-align: center;
    font-weight: normal;
    line-height: normal;

    margin-bottom: 10px;
}
#instrucciones-box > h1 span{
    display: inline-block;
    margin: 0px;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    padding: 0px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../images/instrucciones-icon.svg);
}

.instrucciones-list{
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    margin: 0px;
    margin-bottom: 5px;
    padding: 0px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.instrucciones-list span{
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 2px;
    background-color: #003D7E;
    align-items: center;
    justify-content: center;
    margin: 0px;
    padding: 0px;

    font-family: 'FSJoey-Bold';
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    font-weight: normal;
    line-height: normal;
}
.instrucciones-list p{
    display: flex;
    width: 100%;
    width: calc(100% - 40px);
    width: -moz-calc(100% - 40px);

    height: 100%;
    
    align-items: center;
    justify-content: flex-start;
    margin: 0px;
    padding: 0px;

    font-family: 'FSJoey-Medium';
    font-size: 16px;
    color: #333333;
    text-align: left;
    font-weight: normal;
    line-height: normal;
}

.instrucciones-gif{
    position: relative;
    width: 350px;
    height: 150px;
    margin: 10px auto;
    padding: 0px;
    overflow: hidden;
    box-sizing: border-box;
}
.instrucciones-gif-img{
    position: relative;
    height: 100%;
    width: auto;
    margin: 0px;
    padding: 0px;
    display: block;
}
.instrucciones-gif-cursor{
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 0px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url(../images/cursor.svg);
    top: 50%;
    top: calc(50% - 15px);
    top: -moz-calc(50% - 15px);
}

.instrucciones-on .instrucciones-gif-img{
    animation-name: animacion-instrucciones-img;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-name: animacion-instrucciones-img;
    -webkit-animation-duration: 4s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
@keyframes animacion-instrucciones-img{
    0%{
        left: 0px;
    }
    5%{
        left: 0px;
    }
    50%{
        left: -30%;
    }
    55%{
        left: -30%;
    }
    60%{
        left: -30%;
    }
    95%{
        left: 0px;
    }
    100%{
        left: 0px;
    }
}

.instrucciones-on .instrucciones-gif-cursor{
    animation-name: animacion-instrucciones-cursor;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-name: animacion-instrucciones-cursor;
    -webkit-animation-duration: 4s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
@keyframes animacion-instrucciones-cursor{
    0%{
        left: 90%;
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        -o-transform: scale(1.5);
    }
    5%{
        left: 90%;
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    50%{
        left: 10%;
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    55%{
        left: 10%;
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        -o-transform: scale(1.5);
    }
    60%{
        left: 10%;
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    95%{
        left: 90%;
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    100%{
        left: 90%;
        transform: scale(1.5);
        -webkit-transform: scale(1.5);
        -o-transform: scale(1.5);
    }
}

#instrucciones-btn,
#pista-btn,
#mensaje-btn
{
    outline: none;
    outline-width: 0;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0px auto;
    margin-bottom: -20px;
    margin-top: 20px;
    padding: 0px;
    box-sizing: border-box;
    background-color: #003D7E;
    border: none;

    font-family: 'Barlow-Bold';
    font-size: 16px;
    color: #FFFFFF;
    font-weight: normal;
    line-height: normal;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0px 2px 3px 2px rgba(0,0,0,0.2);

    transition: transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s, background-color 0.3s;
    -webkit-transition: transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s, background-color 0.3s;
}

#instrucciones-btn span,
#pista-btn span,
#mensaje-btn span
{
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0px;
    margin-right: 5px;
    padding: 0px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
#instrucciones-btn span{
    background-image: url(../images/instrucciones-btn.svg);
}
#pista-btn span{
    background-image: url(../images/buscar-icon.svg);
}
#mensaje-btn span{
    background-image: url(../images/continuar-icon.svg);
}

#pista,#mensaje{
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    left: 0px;
    top: 0px;
    background-color: rgba(0,0,0,0.5);
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.pista-off,.mensaje-off{
    visibility: hidden;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -o-transform: scale(1.1);
    opacity: 0;

    transition: visibility 0.5s, opacity 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
    -webkit-transition: visibility 0.5s, opacity 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
}
.pista-on,.mensaje-on{
    visibility: visible;
    transform: scale(1);
    -webkit-transform: scale(1);
    -o-transform: scale(1);
    opacity: 1;

    transition: visibility 0s, opacity 1s, transform 1s, -webkit-transform 1s, -o-transform 1s;
    -webkit-transition: visibility 0s, opacity 1s, transform 1s, -webkit-transform 1s, -o-transform 1s;
}

#pista-box,#mensaje-box{
    position: relative;
    width: 400px;
    margin: 0px auto;
    padding: 15px;
    padding-bottom: 0px;
    border-radius: 5px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 3px 2px rgba(0,0,0,0.2);
    height: auto;
    box-sizing: border-box;
    top: 0px;

    transition: top 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
    -webkit-transition: top 0.5s, transform 0.5s, -webkit-transform 0.5s, -o-transform 0.5s;
}

.pista-icon,#mensaje-icon{
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0px auto;
    padding: 0px;
    box-sizing: border-box;
    
    background-color: #FDD000;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 50px;
    background-position: center;
}
#mensaje-img{
    position: relative;
    width: auto;
    height: auto;
    /*max-height: 300px;*/
    height: 200px;
    
    margin: 0px auto;
    padding: 0px;
    box-sizing: border-box;
}
.mensaje-display-none{
    display: none;
}
.mensaje-display-block{
    display: block;
}
.pista-icon{
    background-image: url(../images/pista-icon.svg);
}
.mensaje-icon-bueno{
    background-image: url(../images/icon-good.svg);
}
.mensaje-icon-malo{
    background-image: url(../images/icon-bad.svg);
}
.pista-on .pista-icon,
.mensaje-on #mensaje-icon{
    animation-name: animacion-pista;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-name: animacion-pista;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
@keyframes animacion-pista{
    0%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    10%{
        transform: scale(1.2);
        -webkit-transform: scale(1.2);
        -o-transform: scale(1.2);
    }
    20%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
    100%{
        transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
}


#pista-txt,#mensaje-txt{
    display: block;
    width: 100%;
    height: auto;
    
    margin: 20px auto;
    padding: 0px;

    font-family: 'FSJoey-Medium';
    font-size: 16px;
    color: #333333;
    text-align: center;
    font-weight: normal;
    line-height: normal;
}
#pista-txt span,#mensaje-txt span{
    font-family: 'FSJoey-Bold';
    font-size: 18px;
}

#music-btn,#hint-btn{
    position: absolute;
    display: block;
    width: 35px;
    height: 35px;
    border-radius: 0px 0px 4px 4px;
    border: none;
    background-color: #003D7E;
    box-sizing: content-box;

    padding: 0px;
    margin: 0px;

    background-repeat: no-repeat;
    background-position: center 100%;
    background-position: center calc(100% - 7px);
    background-position: center -moz-calc(100% - 7px);
    background-size: 22px 22px;
    cursor: pointer;
    box-shadow: 0px 2px 1px 0px rgba(0,0,0,0.8);

    transition: box-shadow 0.3s, transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s, padding 0.3s;
    -webkit-transition: box-shadow 0.3s, transform 0.3s, -webkit-transform 0.3s, -o-transform 0.3s, padding 0.3s;
}
#music-btn{
    top: 0px;
    right: 10px;
}
#hint-btn{
    top: 0px;
    right: 55px;
    background-image: url(../images/hint-icon.svg);
}
.music-on{
    background-image: url(../images/music-on-icon.svg);
}
.music-off{
    background-image: url(../images/music-off-icon.svg);
}
