@font-face {
    font-family: 'bebas_neueregular';
    src: url('fonts/bebasneue_2.woff2') format('woff2'),
         url('fonts/bebasneue_2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body,html{
    /*overflow: hidden;*/
}
body{   
	/*background: #fbfbfb;*/
    height: 100vh;
    background: linear-gradient(#18d0dc, #0b959d);
	margin: 0;
    overflow: hidden;
    font-family: 'bebas_neueregular';
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}
button, a{
    cursor: pointer;
    font-family: 'bebas_neueregular';
    font-size: 19px;
    line-height: 15px;
    transition: all 100ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

/*=============*/



main{
    /*background: #fff;*/
    position: absolute;
    /*width: 320px;*/
    /*height: 568px;*/
    width: 100vw;
    height: 100vh;
    top: 0;
    /*left: 50%;*/
    margin: 20px 0 0 0;
    overflow: hidden;
}

/* TOPO */
topo{
	/*background: #fff;*/
	position: absolute;
	width: 100vw;
	height: 50px;
    z-index: 102;
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}
cartaz{
    background: url(img/cartaz.png) center no-repeat;
    background-size: cover;
    display: none;
    width: 130px;
    height: 64px;
    position: absolute;
    margin: -508px 0 0 2px;
    transition: all 600ms cubic-bezier(0.215, 0.61, 0.355, 1);
}
logo{
    background: url(img/logo_megapix.svg) center no-repeat;
    background-size: cover;
    display: block;
    /*width: 180px;
    height: 30px;*/
    width: 268px;
    height: 47px;
    position: absolute;
    left: 50%;
    /*margin: 10px 0 0 -90px;*/
    margin:40px 0 0 -139px;
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}
fasesStatus{
    background: url(img/fases_status.png) no-repeat;
    background-position: 0px 0px;
    background-size: cover;
    display: block;
    width: 76px;
    height: 67px;
    position: absolute;
    top: 100vh;
    left: 100%;
    margin: -110px 0 0 -80px;
    display: none;
}
texto {
    position: absolute;
    width: 200px;
    left: 50%;
    margin: 65px 0 0 -55px;
    font-size: 16px;
    text-align: right;
    color: #fff;
    opacity: 0;
    transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);
}


/* ON/OFF */

#home{display: block;}
#escolheposter{display: none;}
#escolhefoto{display: none;}
#fazedor{display: none;}


/* HOME */
#home{
    position: absolute;
	background: url(img/cartaz_.png) no-repeat center;
	background-size: contain;
	width: 100%;
	height: 100%;
    z-index: 101;
}

#home button{display: none;}
#home .vitrine{display: none;}


/* ETAPAS */
.etapas logo{
    width: 150px;
    height: 26px;
    margin: 20px 0 0 -5px;
}
.etapas cartaz{
    margin: 8px 0 0 10px;
    display: block;
}
.etapas fasesStatus{
    display: block;
}
.etapas texto{
    display: block;
}


/* ETAPA 1 */
.escolheposter{
	/*background: #3dc92b;*/
}
#escolheposter{
	width: 100vw;
	height: 100vh;
    overflow: scroll;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
}
.vitrine{
    position: static;
    width: 280vw;
    padding: 0 10px;
    left: 50%;
    margin-top: 70px;
    margin-left: 0;
}

.vitrine li{
    position: relative;
    width: 90vw;
    height: 132vw;
    padding: 0;
    margin-right: 2vw;
    float: left;
    list-style: none;
    cursor: pointer;
    z-index: 0;
    transition: all 100ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.vitrine li:last-child{
    /*background: url(img/poster3.png), url(img/bg_posteres.jpg);
    background-size: contain;
    background-position: center;*/
    margin-right: 0px;
}





/* ETAPA 2 */
.escolhefoto{
    /*background: #542785;*/
}
.escolhefoto fasesStatus{
    background-position: -76px 0px;
}
#escolhefoto{
    position: absolute;
    width: 220px;
    height: 100px;
    color: #fff;
    top: 50%;
    left: 50%;
    margin: -50px 0 0 -110px;
}
#escolhefoto span{
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}
#escolhefoto button{
    position: relative;
    width: 100%;
    height: 50px;
    border: none;
    /*border-radius: 8px;*/
    font-family: 'bebas_neueregular';
    font-size: 25px;
    color: #fff;
    padding-top: 0px;
}
#mesmaFOTO{display: none;}
#pegaMesma{ background: linear-gradient(#ffdf00, #ffaa00);}
#pegaFoto{ background: linear-gradient(#72dd5e, #17a50d);}
#pegaFace{
    background: linear-gradient(#7995c4, #3c5997);
    font-size: 15px !important;
}
#escolhefoto form{
    display: block;
    background: rgba(39,12,70,.9);
    width: 320px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -130px 0 0 -160px;
    /*border-radius: 20px;*/
    /*display: none;*/
}

#escolhefoto input{
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    margin: 0 0 0 -110px;
    opacity: 0; 
    background: rgba(0,0,0,.5);
    height: 50px;
    cursor: pointer;
}

#photos {
    position: absolute;
    background: rgba(255,255,255,.7);
    width: 100%;
    height: 550px;
    top: 0px;
    display: none;
    padding: 0px;
    overflow-y: auto;
    z-index: 222;
}
#photos img{
    margin: 0 2px;
}
/* ETAPA 3 */
.fazedor{
    /*background: #542785;*/
}
.fazedor fasesStatus{
    background-position: -76px 0px;
}
#fazedor{
    /*display: none;*/
    /*overflow: hidden;*/
}

#fotofazedor {
    position: absolute;
    overflow: hidden;
    background: url(img/bg_posteres.jpg);
    background-size: contain;
    width: 90vw;
    height: 132vw;
    top: 70px;
    left: 50%;
    margin-left: -45vw;
}
#block{
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: none;
}
poster{
    position: absolute;
    display: block;
    background-image: url(img/poster1.png);
    background-size: contain;
    width: 100%;
    height: 100%;    
}

.quadro{
    position: absolute;
    display: block;
    width: 94vw;
    height: 94vw;
}
quadro{
    background: bottom left no-repeat;
    background-size: 20%;
    background-image: url(img/posicao.svg);
    border: 2px solid #fff;
    margin: 8px 0 0 8px;
    opacity: .5;
    cursor: pointer;
}
/*#avatar{
    background-image: url(img/avatar.jpg);
    background-size: contain;
    margin: 10px 0 0 10px;
}*/



#fotoeditor{
    position: absolute;
    background: rgba(40,12,71,.65);
    width: 350px;
    padding: 0;
    top: 100%;
    margin-top: -140px;
    /*margin-left: -430px;*/
}
#fotoeditor li{
    position: relative;
    background-size: contain;
    width: 55px;
    height: 40px;
    padding: 0;
    float: left;
    list-style: none;
    cursor: pointer;
}
#fotoeditor li:last-child{
    margin-right: 0px;
}
#fotoeditor p{
    background: #1c0038;
    position: absolute;
    margin: -20px 0 0 30px;
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 5px;
}
.bt_ativo svg polygon, .bt_ativo svg path{
  fill: #7edc28;
}

#flip{ margin-left: 20px; }
/*#flip{ background: url(img/flip.svg); margin-left: 20px; }*/
/*#posicao{ background: url(img/posicao.svg); }*/
/*#dimensoes{ background: url(img/dimensoes.svg);}*/
/*#angulo{ background: url(img/angulo.svg); }*/

#enviar{ background: #7edc28; }
#voltar{ background: #280c47; }
h6{
    color: #fff;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}


/* ETAPA 4 */
.etapa4{
    /*background: #280c47;*/
}
.etapa4 fasesStatus{
    background-position: -154px 0px;
}

#fotoexport {
    position: absolute;
    /* background: rgba(126,220,40,.8); */
    top: 100%;
    left: 50%;
    margin-top: -130px;
    margin-left: -110px;
    display: none;
    /* z-index: 102; */
    width: 350px;
}

#fazedor button, #fazedor a {
    /* background: rgba(126,220,40,.8); */
    /* position: relative; */
    /* width: 100%; */
    top: 100%;
    height: 40px;
    border: none;
    /* border-radius: 8px; */
    /* margin-top: -60px; */
    font-family: 'bebas_neueregular';
    font-size: 16px;
    line-height: 14px;
    float: left;
    margin-right: 5px;
}
#download{
    background: linear-gradient(#a7e956, #17a50d); 
    width: 45px;
    /*margin-left: -90px;*/
}
#download img{
    position: absolute;
    top: 3px;
    left: 50%;
    margin-left: -15px;
}

#shareFacebook{
    background: linear-gradient(#7995c4, #3c5997);
    width: 110px;
    left: 50%;
    /*margin-left: -40px;*/
    padding: 0;
}
#shareFacebook img{
    position: absolute;
    top: 10px;
    left: 50%;
    /*margin-left: -45px;*/
}

#sair{
    background: linear-gradient(#ffdf00, #ffaa00);
    width: 60px;
    /*margin-left: 25px;*/
    /*display: none;*/
    color: #fff;
    /*padding-top: 8px;*/
}
#sair img{
    width: 40px;
    margin: -2px 0 0 -2px;
    transform:scaleX(-1);
}
.posdesair{transition: all 300ms cubic-bezier(0.645, 0.045, 0.355, 1);}
/*.podesair #shareFacebook{ margin-left: -90px; }
.podesair #download{ margin-left: -140px; }
.podesair #sair{ display: block; */}

.etapa4 #fotoexport{
    display: block;
}
.etapa4 #fotoeditor{ 
    left: 0;
    margin-left: -175px;
}
.etapa4 quadro{ 
    display: none;
}

#export{
    margin-top: 100000px;
    /*background:rgba(0,0,0,.5);
    width: 800px;
    height: 1176px;*/
}
#carregando{
    position: fixed;
    background: #fff url(img/loading.gif) center no-repeat;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 99;
    opacity: .7;
    display: none;
}
#degrade{
    position: absolute;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
    width: 100%;
    height: 100%;
}
#avatarRENDER{
    position: fixed;
    top: 0;
    z-index: 1111111111111;
    /*opacity: 0;*/
    }



@media screen and (max-height: 540px) {
    topo{transform: scale(.95);}
    main{transform: scale(.9);
            top: -20px;
    }

}
