@font-face {
  font-family: 'tartine';
  src: local("tartine"),
       url("fonts/tartinescriptblack-webfont.woff2") format('woff2');
}

body{
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background-color: #2897b2;
}

#cache {
    height: 0px;
    width: 0px;
    overflow: hidden;
}

#cache > img{
    height: 0px;
    width: 0px;
}

.wrap{
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.wrap > * {
    margin: 0 auto;
    min-height: 100%;
    min-width: 100%;
}

.inline-fixer{
    height: 100%;
    vertical-align: middle;
}

.full{
    height: 100%;
    width: 100%;
}

.relative{
    position: relative;
}

.absolute{
    position: absolute;
}

.inner-image{
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.none{
    display: none;
}

#loader{
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url(images/hourglass.svg);
    background-position: center center;
    background-repeat: no-repeat;
    position: fixed;
    z-index: 1999;
    top: 0;
    left: 0;
}

#win, #lost{
    background-image: url(images/home/background.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    font-size: 50px;
    opacity: 0;
}

#lvlup, #loser{
    background-color: rgba(70,70,70,0.8);
    z-index: 0;
    overflow: hidden;
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: #fff;
}

#lvlup .movepop1{
    position: absolute;
    left: -100%;
    top: 38%;
}

#lvlup .movepop2{
    position: absolute;
    right: -100%;
    top: 51%;
}

#lvlup .movepop1 img{
    max-width: 335px;
}

#lvlup .movepop2 img{
    max-width: 500px;
}

#loser .movepop3{
    position: absolute;
    top: -300px;
    width: 100%;
}

#loser .movepop3 img{
    width: 540px;
    margin:0 auto;
}



.movepop{
    text-align: center;
    font-weight: bold;
    font-style: italic;
    font-size: 80px;
}

#win .poptitle{
    background-image:url(images/end/youwin.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70%;
    width: 100%;
    height: 200px;
    margin-top: 150px;
}

#lost .poptitle{
    background-image:url(images/end/youlose.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50%;
    width: 100%;
    height: 200px;
    margin-top: 80px;
}

.newgame {
    width: 100%;
    height: 170px;
    z-index: 15;
    top: 700px;
    left: 0;
    display: none;
    position: absolute;
}

.newgame > .inner-image{
    background-image: url(images/end/playagain.png);
    
    width: 150px;
    height: 150px;
    cursor: pointer;
}

.newgame > .inner-image:active{
    background-size: 135px 135px;
}

.page{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    color: #fff;
}

#mobile-landscape-blocker{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #212121;
    z-index: 1998;
}

#mobile-landscape-blocker-inside{
    background-image:url(images/turn.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50%;
    width: 100%;
    height: 100%;
}

/*********************
    
    Welcome Page

**********************/


#welcome-page .background {
    background-image: url(images/home/background.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

#welcome-head{
    width: 100%;
    z-index: 10;
    top: 10px;
    left: 0;
}

#welcome-head > .inner-image{
    background-image: url(images/home/face.png);
    height: 300px;
    width: 600px;
}

#welcome-card{
    width: 100%;
    z-index: 5;
    top: 200px;
    left: 0;
}

#welcome-card > .inner-image{
    background-image: url(images/home/logo.png);
    height: 650px;
    width: 400px;
}

#welcome-button {
    width: 100%;
    height: 170px;
    z-index: 15;
    top: 765px;
    left: 0;
}

#welcome-button > .inner-image{
    background-image: url(images/home/playbutton.png);
    
    width: 150px;
    height: 150px;
    cursor: pointer;
}

#welcome-button > .inner-image:active{
    background-size: 135px 135px;
}


/*********************
    
   Select Hero Page

**********************/

#select-hero-page .background {
    background-image: url(images/pregame/bacjground.jpg);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}

#select-hero-head{
    width: 100%;
    z-index: 10;
    top: 10px;
    left: 0;
    box-sizing: border-box;
    padding: 5px 20px
}

#select-to-play {
    width: 252px;
    bottom: 0;
    left: 20;
}

#select-to-play > .inner-image{
    background-image: url(images/pregame/call_to_action.png);
    height: 164px;
    width: 252px;
}

#select-logo > .inner-image{
    background-image: url(images/pregame/logo.png);
    width: 110px;
    height: 165px;
}

#select-hero-content{
    padding: 0px 20px 0px 20px;
    box-sizing: border-box;
    left: 0;
    top: 190px;
    white-space: wrap;
    display: flex;
    flex-wrap: wrap;
}

#select-hero-content > .hero-items{
    flex: 33.33%;
    display: inline-block;
    padding: 5px;
    box-sizing: border-box;
}

#select-hero-content > .hero-items > .hero-items-inner{
    background-image: url(images/pregame/selection_frame.png);
    background-repeat: no-repeat;
    background-position: center center;
    width: 218px;
    height: 356px;
    margin: auto;
    cursor: pointer;
}

.hero{
    background-position: center center;
    top: 0;
    left: 0;
    z-index: 5;
    background-repeat: no-repeat;
}

.lock-hero{
    background-image: url(images/pregame/locked_level.png);
    top: 0;
    left: 0;
    z-index: 10;
    opacity: 0.8;
}

.unlock .lock-hero{
    display: none;
}

.hero-items-inner .shadow{
    background-image: url(images/pregame/shadow.png);
    background-repeat: no-repeat;
    background-position: center 97%;
    background-size: 105%;
}

/** Hero 1 **/
#hero1 .hero{
    background-image: url(images/pregame/char-1.png);
}

/** Hero 2 **/
#hero2 .hero{
    background-image: url(images/pregame/char-2.png);
}

/** Hero 3 **/
#hero3 .hero{
    background-image: url(images/pregame/char-3.png);
}

/** Hero 4 **/
#hero4 .hero{
    background-image: url(images/pregame/char-4.png);
}

/** Hero 5 **/
#hero5 .hero{
    background-image: url(images/pregame/char-5.png);
}

/** Hero 6 **/
#hero6 .hero{
    background-image: url(images/pregame/char-6.png);
}

/*********************
    
   Shaving Gabros Page

**********************/

#shave-hero-page .background {
    background-image: url(images/pregame/bacjground.jpg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

#shave-hero-head{
    width: 100%;
    z-index: 10;
    top: 10px;
    left: 0;
    box-sizing: border-box;
    padding: 5px 20px
}

#shave-to-play {
    width: 261px;
    bottom: 0;
    left: 20;
}

#shave-to-play > .inner-image{
    background-image: url(images/levels/call_to_action.png);
    height: 171px;
    width: 261px;
}

#shave-logo > .inner-image{
    background-image: url(images/levels/logo.png);
    width: 110px;
    height: 165px;
}

#time-to-play{
    width: 170px;
    top: 20px;
    right: 20px;
}

#time-to-play-svg{
    width: 200px;
    height: 200px;
    top: -10px;
    right: 10px;
}

#time-to-play-svg > .svg-count{
    height: 100%;
    width: 100%;
    -webkit-transform: rotate(-180deg) rotateY(180deg);
    -moz-transform: rotate(-180deg) rotateY(180deg);
    -ms-transform: rotate(-180deg) rotateY(180deg);
    -o-transform: rotate(-180deg) rotateY(180deg);
    transform: rotate(-180deg) rotateY(180deg);
}


#time-to-play-feel{
    width: 170px;
    top: 20px;
    right: 20px;
}

#time-to-play-feel .counter{
    text-align: center;
    font-family: 'tartine','Open Sans', sans-serif;
    font-size: 100px;
    font-weight: 700;
    margin-top: 0px;
    text-shadow: 4px 4px 2px #454545;
    color: #d43726;
}

#time-to-play > .inner-image{
    background-image: url(images/levels/clock.png);
    width: 150px;
    height: 150px;
    text-align: center;
}

#time-to-play > .inner-image > .inner-image{
    background-image: url(images/levels/clock_pointer.png);
    background-size: 14px 29px;
    background-position: center top;
    top: 51px;
    left: 60px;
    width: 30px;
    height: 51px;
    
    /* Transforms */
    -moz-transform: rotate(0deg)
    -o-transform: rotate(0deg)
    -ms-transform: rotate(0deg); 
    -webkit-transform: rotate(0deg); 
    transform: rotate(0deg);
}

#shave-hero-content{
    padding: 5px 20px;
    box-sizing: border-box;
    width: 100%;
    height: 721px;
    left: 0;
    top: 170px;
    margin-left: -85px;
}

#shave-hero-container{
    width: 359px;
    height: 721px;
    margin: 0 auto;
}

.face6.faces.oldface{
    height: 710px;
}




#shave-hero-container > .faces{
    /*width: 100%;*/
    max-height: 750px;
    top: 0px;
    box-sizing: border-box;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-drag: none; 
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

#shave-hero-container > canvas {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-drag: none; 
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

#shave-hero-panel{
    right: 10px;
    top: 220px;
}

#shave-hero-panel .level-title{
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 30px;
}

#shave-hero-panel .small-panel{
    background-image: url(images/levels/selection.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 180px;
    height: 110px;
    margin-bottom: 10px;
}

#shave-hero-panel .small-panel.selected{
    background-image: url(images/levels/waitting.png);
}

.razors{
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 90%;
    cursor: pointer;
}

.razor1{
    background-image: url(images/razors/black_razor.png);
}

.razor2{
    background-image: url(images/razors/naked-3-Sensitive-.png);
}

.razor3{
    background-image: url(images/razors/naked-4.png);
}

.razor4{
    background-image: url(images/razors/naked.png);
}

.mousi1.mousi {
    top: 421px;
    left: 0px;
}

.mousi2.mousi {
    top: 409px;
    left: 70px;
}

.mousi3.mousi {
    top: 385px;
    left: 1px;
}

.mousi4.mousi {
    top: 374px;
    left: 26px;
}

.mousi5.mousi {
    top: 160px;
    left: 2px;
}

.mousi6.mousi {
    top: 188px;
    left: 1px;
}


/*********************
    
        Forms

**********************/

.form{
    width: 500px;
    margin: 50px auto 20px;
    display: block;
}

.form label{
    width: 100%;
    display: block;
    font-size: 25px;
    margin-bottom: 25px;
    text-shadow: 4px 4px 2px #454545;
}

.form input{
    background-color: #fff;
    padding: 10px;
    color: #000;
    border: 0;
    outline: 0;
    font-size: 20px;
    line-height: 25px;
    border-radius: 5px;
    float: right;
    width: 300px;
}

.form .optional{
    width: 100%;
    text-align: right;
    font-style: italic;
    font-size: 18px;
}

.submit {
    width: 100px;
    /* height: 170px; */
    z-index: 15;
    top: 750px;
    left: 0;
    padding: 10px;
    display: block;
    font-size: 38px;
    line-height: 45px;
    margin: 0 auto;
    text-align: center;
    background-color: #ec845c;
    border-radius: 5px;
    -webkit-transition: all 0.05s ease-in-out;
    -moz-transition: all 0.05s ease-in-out;
    -o-transition: all 0.05s ease-in-out;
    transition: all 0.05s ease-in-out;
    cursor: pointer;
    font-weight: 700;
}

.submit:active{
    background-color: #e8561d;
}

.ajax{
    width: 100px;
    position: absolute;
    top: 650px;
    left: 47%;
}

.ajax > img {
    max-width: 100px;
}

.score{
    text-align: center;
    font-weight: 700;
    position: absolute;
    top: 350px;
    left: 0;
    width: 100%;
    text-shadow: 4px 4px 2px #454545;
}

#countdown{
    background-color: rgba(70,70,70,0.5);
    z-index: 10000;
    overflow: hidden;
    opacity: 1;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    color: #fff;
    display: none;
}

.cnum{
    font-family: 'tartine','Open Sans', sans-serif;
    position: absolute;
    top: 40%;
    text-align: center;
    font-size: 140px;
    font-weight: 700;
    width: 100%;
    display: none;
    color: #fff;
    text-shadow: -7px 7px 2px #454545;
}
.submit2 {
    background: transparent none repeat scroll 0 0;
    border: 0 none;
    color: #fff;
    cursor: pointer;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
}