* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
}

::selection {
    background: transparent;
    color: inherit;
}

::-moz-selection {
    background: transparent;
    color: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    border-width: 0;
    vertical-align: bottom;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15em;
    color: #3c281a;
    text-align: center;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: #edeeee;
}

#wrap {
    position: relative;
    transform-origin: top left;
    width: 100%;
    height: 100%;
}

.game {
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 910px;
    margin: auto;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    background: url('../img/background.jpg') center no-repeat;
    background-size: cover;
}

.left {
    text-align: left;
}

.backdrop {
    z-index: 5;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.preloader {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    position: absolute;
    left: 50%;
    top: 50%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20viewBox%3D'0%200%20120%20120'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20xmlns%3Axlink%3D'http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink'%3E%3Cdefs%3E%3Cline%20id%3D'l'%20x1%3D'60'%20x2%3D'60'%20y1%3D'7'%20y2%3D'27'%20stroke%3D'%23ffffff'%20stroke-width%3D'11'%20stroke-linecap%3D'round'%2F%3E%3C%2Fdefs%3E%3Cg%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(30%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(60%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(90%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(120%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.27'%20transform%3D'rotate(150%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.37'%20transform%3D'rotate(180%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.46'%20transform%3D'rotate(210%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.56'%20transform%3D'rotate(240%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.66'%20transform%3D'rotate(270%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.75'%20transform%3D'rotate(300%2060%2C60)'%2F%3E%3Cuse%20xlink%3Ahref%3D'%23l'%20opacity%3D'.85'%20transform%3D'rotate(330%2060%2C60)'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-position: 50%;
    background-size: 100%;
    background-repeat: no-repeat;
    -webkit-animation: ios-preloader-spin 1s steps(12, end) infinite;
    animation: ios-preloader-spin 1s steps(12, end) infinite;
}
@-webkit-keyframes ios-preloader-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes ios-preloader-spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.button-close {
    background: url('../img/ui/close.png') center no-repeat;
    background-size: 100% 100%;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}
.button-close:hover {
    transform: rotate(-12deg);
}

.button-beigt {
    background: url('../img/ui/buttons.png');
    background-size: 100% 300%;
    background-position-y: 0%;
    text-shadow: 0 0 7px #00000020;
    min-width: 120px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
}
.button-beigt:hover {
    background-position-y: 200%;
}
.button-beigt:active {
    background-position-y: 100%;
}

div.win-question {
    z-index: 12;
    background: url('../img/ui/win-question.png') center no-repeat;
    background-size: 100% 100%;
    width: 400px;
    height: 260px;
    margin: -150px 0 0 -200px;
    position: absolute;
    left: 50%;
    top: 50%;
}
div.win-question-header {
    pointer-events: none;
    padding: 6px 40px 0 40px;
    font-size: 1.2em;
    position: absolute;
    top: 4.4%;
    width: 100%;
    color: #fff;
    text-shadow: 1px 1px 0 #3c281a;
}
div.win-question-text {
    padding: 80px 40px 40px 40px;
}
div.win-question-buttons {
    text-align: center;
    position: absolute;
    bottom: 40px;
    padding: 0px 20px 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

div.purchase {
    z-index: 11;
    background: url('../img/ui/win-question.png') center no-repeat;
    background-size: 100% 100%;
    width: 460px;
    height: 330px;
    margin: -150px 0 0 -230px;
    position: absolute;
    left: 50%;
    top: 50%;
}
div.purchase-content {
    margin: 90px 25px 0 25px;
    position: relative;
    display: flex;
    justify-content: space-around;
}

div.game-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

div.content {
    width: 100%;
    height: 100%;
    padding-top: 32px;
}

div.map {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}
div.map-gobutton-bg {
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 39%, rgba(0,0,0,0.3) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.2) 39%,rgba(0,0,0,0.3) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.2) 39%,rgba(0,0,0,0.3) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#4d000000',GradientType=0 );
}
.map-gobutton {
    pointer-events: auto;
    display: inline-block;
    margin-top: 80px;
    width: 202px;
    height: 64px;
    background: url('../img/ui/button_yellow.png');
    background-size: 100% 300%;
    background-position-y: 0%;
    color: #3c281a;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    padding: 14px 6px;
    cursor: pointer;
}
.map-gobutton:hover {
    background-position-y: 200%;
}
.map-gobutton:active {
    background-position-y: 100%;
}

div.map-content {
    padding: 10px 10px 120px 10px;
}
div.map-line {
    width: 100%;
    height: 200px;
    display: flex;
    flex-wrap: nowrap;
}
div.map-line-levels {
    position: relative;
    min-width: 62px;
    height: 100%;
    white-space: nowrap;
    background: url('../img/ui/levels.png') center no-repeat;
}
.map-line-levels-one {
    position: relative;
    width: 100%;
    height: 67px;
    display: block;
}
div.map-line-levels-one-stars {
    width: 100%;
    margin: auto;
    padding-top: 28px;
}
.map-line-levels-one-blocked {
    position: absolute;
    bottom: 16px;
    left: 50%;
    margin-left: -10px;
}
div.map-line-text {
    flex-grow: 1;
    word-wrap: break-word;
    background-color: #fff1df69;
    margin: 10px 0 16px 0;
    padding: 2px;
}

div.card {
    width: 136px;
    height: 204px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
}
.card-purchase {
    width: 136px;
    height: 204px;
    color: #3c281a;
    text-decoration: none;
    position: relative;
}
div.card-up {
    transform: scale(1.05);
    z-index: 2;
}
div.card-shadow-no {
    width: 124px;
    height: 190px;
    left: 5px;
    top: 5px;
    position: absolute;
    pointer-events: none;
}
div.card-shadow {
    box-shadow: 0px 9px 11px -5px rgba(0,0,0,.2),
        0px 18px 28px 2px rgba(0,0,0,.14),
        0px 7px 34px 6px rgba(0,0,0,.12);
}
div.card-content {
    background: url('../img/ui/card_bg.png') center no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
div.card-image {
    margin-top: 9px;
    width: 112px;
    height: 112px;
    display: inline-block;
}
div.card-image-text {
    padding: 14px;
    height: 130px;
    display: table-cell;
    vertical-align: middle;
    width: 136px;
}
div.card-text-wrapper {
    position: absolute;
    bottom: 11px;
    width: 132px;
    height: 60px;
    padding: 0 8px 0 8px;
    display: table;
}
div.card-text {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    font-size: 14px;
    line-height: 15px;
}
div.card-txty {
    background: url(../img/ui/card_ribbon_with_border.png) center no-repeat;
    width: 136px;
    height: 134px;
    position: absolute;
    top: 8px;
    padding-top: 107px;
    color: #fff;
    text-shadow: 1px -1px 0 #3c281a;
}
div.card-price {
    background: url(../img/ui/price.png) center no-repeat;
    width: 104px;
    height: 34px;
    position: absolute;
    top: -7px;
    left: 15px;
    padding: 4px;
    color: white;
    line-height: 24px;
    text-shadow: 1px 1px 6px black;
}

div.round {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
div.round-header {
    background: url(../img/ui/round-header.png) center no-repeat;
    width: 100%;
    height: 94px;
    position: absolute;
    padding-top: 16px;
    top: 0;
}
div.round-header-text {
    font-weight: bold;
}
div.round-header-progress {
    background: url(../img/ui/progress-bg.png);
    background-size: 100% 100%;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 1px 2px 2px 2px;
    width: 384px;
    height: 10px;
}
div.round-header-progress-fill {
    background: -moz-linear-gradient(top,  #ffa476 1%, #ff5d4a 24%, #c62f32 58%, #c62f32 58%, #9e2a2a 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #ffa476 1%,#ff5d4a 24%,#c62f32 58%,#c62f32 58%,#9e2a2a 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #ffa476 1%,#ff5d4a 24%,#c62f32 58%,#c62f32 58%,#9e2a2a 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: 100%;
    width: 0%;
}
div.round-timer {
    position: absolute;
    top: 100px;
    right: 20px;
}
div.round-timeline {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    width: 100%;
}
div.round-timeline-center {
    background: url(../img/ui/timeline_line.png) repeat-x;
    background-size: 100% 100%;
    position: absolute;
    left: 18px;
    width: 94%;
    height: 16px;
    top: -8px;
}
div.round-timeline-left {
    background: url(../img/ui/timeline_arrow.png) left top no-repeat;
    position: absolute;
    top: -8px;
    left: 0;
    padding-top: 16px;
    font-size: 10px;
    padding-left: 5px;
    color: #a07e60;
}
div.round-timeline-right {
    background: url(../img/ui/timeline_arrow2.png) right top no-repeat;
    position: absolute;
    top: -8px;
    right: 0;
    padding-top: 16px;
    font-size: 10px;
    padding-right: 5px;
    color: #a07e60;
}
div.round-timeline-splitter {
    height: 240px;
    position: absolute;
    width: 38px;
    transform: translateY(-50%);
}
div.round-timeline-splitter1 {
    background: url(../img/ui/CardTarget2.png) center no-repeat;
    width: 38px;
    height: 60px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    -webkit-animation: 1s linear 0s infinite alternate move_splitter1;
    animation: 1s linear 0s infinite alternate move_splitter1;
}
@-webkit-keyframes move_splitter1 { from { margin-top: 0; } to { margin-top: 20px; }  }
        @keyframes move_splitter1 { from { margin-top: 0; } to { margin-top: 20px; }  }
div.round-timeline-splitter2 {
    background: url(../img/ui/CardTarget1.png) center no-repeat;
    width: 38px;
    height: 38px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
div.round-timeline-splitter3 {
    background: url(../img/ui/CardTarget2.png) center no-repeat;
    width: 38px;
    height: 60px;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleY(-1);
    -webkit-animation: 1s linear 0s infinite alternate move_splitter3;
    animation: 1s linear 0s infinite alternate move_splitter3;
}
@-webkit-keyframes move_splitter3 { from { margin-bottom: 0; } to { margin-bottom: 20px; }  }
        @keyframes move_splitter3 { from { margin-bottom: 0; } to { margin-bottom: 20px; }  }

div.round-usercards {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    width: 100%;
}

div.headline {
    position: absolute;
    top: 0;
    width: 100%;
    height: 34px;
    background-color: #a07e60;
    background-image: url(../img/line.png);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: 100% 2px;
}
.headline-heartbg {
    position: absolute;
    left: 6px;
    top: 0;
    width: 108px;
    height: 32px;
    background-image: url(../img/heart-off.png);
}
div.headline-plus {
    position: absolute;
    bottom: 1px;
    right: -8px;
    width: 21px;
    height: 21px;
    cursor: pointer;
    background-image: url(../img/plus2.png);
    transition: all .2s ease-in-out;
}
div.headline-plus:hover {
    transform: scale(1.1);
}
div.headline-heart {
    width: 72px;
    height: 32px;
    background-image: url(../img/heart-on.png);
}
div.headline-heart-broken {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 32px;
    background-image: url(../img/heart-on.png);
}
.headline-helps {
    position: absolute;
    left: 50%;
    top: 0;
    width: 70px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.headline-lang {
    position: absolute;
    right: 6px;
    top: 0;
}
.headline-score {
    position: absolute;
    right: 6px;
    top: 5px;
    color: white;
}

div.gameover {
    z-index: 10;
    background: url('../img/ui/win-question.png') center no-repeat;
    background-size: 100% 100%;
    width: 460px;
    height: 320px;
    margin: -150px 0 0 -230px;
    position: absolute;
    left: 50%;
    top: 50%;
}
div.gameover-stars {
    display: flex;
    justify-content: center;
}
div.gameover-star-bg {
    background: url('../img/ui/star_off.png') center no-repeat;
    background-size: 100% 100%;
    width: 64px;
    height: 64px;
    margin: 4px;
}
div.gameover-title {
    font-weight: bold;
    font-size: 22px;
}

div.tutor {
    pointer-events: none;
    position: absolute;
    width: 104px;
    height: 101px;
    background: url('../img/ui/hand.png') center no-repeat;
}
.tutor-press {
    transform: perspective(100px) rotateX(30deg) scale3d(1, 1, 1);
}

iframe {
    border: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}
div.okCloseBtn {
    background: url('../img/ok_close.png') center center no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    display: inline-block;
    cursor: pointer;
    z-index: 9999;
}
div.crazy-logo {
    pointer-events: none;
    background: url('../img/crazy-logo.png') right center no-repeat;
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 90%;
    height: 60px;
}