* {
    margin: 0;
    padding: 0;
    border: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    outline: none !important;
    outline-style: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

html,
body {
    -ms-touch-action: none
}

html {
    overflow: hidden
}

img {
    border: 0
}

body {
    text-align: center;
    background: #a46740 url('../images/bg.jpg');
    color: #fff;
}

#gameContainer {
    position: relative;
    width: 1280px;
    height: 720px;
    margin: 0 auto;
}

#cards {
    position: absolute;
    top: 100px;
    width: 1280px;
    height: 620px;
}

.card {
    -webkit-perspective: 600;
    width: 140px;
    height: 140px;
    position: absolute;
    -moz-transition: all .3s;
    -webkit-transition: all .3s;
    transition: all .3s;
}

.face {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    position: absolute;
    -moz-transition-property: opacity, -moz-transform, -moz-box-shadow;
    -moz-transition-duration: .3s;
    -webkit-transition-property: opacity, -webkit-transform, -webkit-box-shadow;
    -webkit-transition-duration: .3s;
    transition-property: opacity, transform, box-shadow;
    transition-duration: .3s;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.front {
    background: url('../images/deck.png') -2520px 0;
    /* background: #999 url('../images/deck.png') 0 -520px; */
    z-index: 10;
}

.back {
    background: url('../images/deck.png');
    /* background: #efefef url('../images/deck.png'); */
    -moz-transform: rotate3d(0, 1, 0, -180deg);
    -webkit-transform: rotate3d(0, 1, 0, -180deg);
    transform: rotate3d(0, 1, 0, -180deg);
    z-index: 8;
}

.card:hover .face {
    -webkit-box-shadow: 0 0 20px #f00;
    box-shadow: 0 0 10px #f00;
}

.card-flipped .face {
    -webkit-box-shadow: 0 0 20px #aaa;
    box-shadow: 0 0 10px #aaa;
}

.card-flipped .front {
    -moz-transform: rotate3d(0, 1, 0, 180deg);
    -webkit-transform: rotate3d(0, 1, 0, 180deg);
    transform: rotate3d(0, 1, 0, 180deg);
    z-index: 8;
}

.card-flipped .back {
    -moz-transform: rotate3d(0, 1, 0, 0deg);
    -webkit-transform: rotate3d(0, 1, 0, 0deg);
    transform: rotate3d(0, 1, 0, 0deg);
    z-index: 10;
}

.card-removed {
    opacity: 0.2;
}

/* .cards1 {background-position: -2040px 0;}
.cards2 {background-position: -1920px 0;}
.cards3 {background-position: -1800px 0;}
.cards4 {background-position: -1680px 0;}
.cards5 {background-position: -1560px 0;}
.cards6 {background-position: -1440px 0;}
.cards7 {background-position: -1320px 0;}
.cards8 {background-position: -1200px 0;}
.cards9 {background-position: -1080px 0;}
.cards10 {background-position: -960px 0;}
.cards11 {background-position: -840px 0;}
.cards12 {background-position: -720px 0;}
.cards13 {background-position: -600px 0;}
.cards14 {background-position: -480px 0;}
.cards15 {background-position: -360px 0;}
.cards16 {background-position: -240px 0;}
.cards17 {background-position: -120px 0;}
.cards18 {background-position: 0 0;} */

.cards1 {
    background-position: -2380px 0;
}

.cards2 {
    background-position: -2240px 0;
}

.cards3 {
    background-position: -2100px 0;
}

.cards4 {
    background-position: -1960px 0;
}

.cards5 {
    background-position: -1820px 0;
}

.cards6 {
    background-position: -1680px 0;
}

.cards7 {
    background-position: -1540px 0;
}

.cards8 {
    background-position: -1400px 0;
}

.cards9 {
    background-position: -1260px 0;
}

.cards10 {
    background-position: -1120px 0;
}

.cards11 {
    background-position: -980px 0;
}

.cards12 {
    background-position: -840px 0;
}

.cards13 {
    background-position: -700px 0;
}

.cards14 {
    background-position: -560px 0;
}

.cards15 {
    background-position: -420px 0;
}

.cards16 {
    background-position: -280px 0;
}

.cards17 {
    background-position: -140px 0;
}

.cards18 {
    background-position: 0 0;
}

.hide {
    display: none;
}

#loading {
    z-index: 1;
    background: #fff
}

#rotateHint {
    background: rgba(255, 255, 255, 0.85);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    display: none;
    z-index: 99999;
    font-family: Arial, Helvetica, Sans-serif;
    padding: 2em;
    color: #000
}

#rotateHint h2 {
    font-size: 20px
}

#rotateHint img.rotate {
    width: 80%;
    max-width: 400px
}

#rotateHint #rotateClose {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer
}

#gameContainer {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    -ms-transform-origin: 0 0
}

.backPos {
    position: absolute;
    left: 0;
    top: 0
}

.progressbar {
    position: absolute;
    top: 300px;
    left: 190px;
    width: 900px;
    border-radius: 8px;
    padding: 4px;
    background-color: #fff;
    box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4) inset;
    border-collapse: separate
}

.progressbar>div {
    width: 0;
    height: 20px;
    border-radius: 10px;
    background: #b61515;
    background: -moz-linear-gradient(top, hsl(120, 98%, 48%) 0, #096d1c 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #096d1c), color-stop(100%, #096d1c));
    background: -webkit-linear-gradient(top, #096d1c 0, #096d1c 100%);
    background: -o-linear-gradient(top, #096d1c 0, #096d1c 100%);
    background: -ms-linear-gradient(top, #096d1c 0, #096d1c 100%);
    background: linear-gradient(to bottom, #096d1c 0, #096d1c 100%)
}

#label {
    font-family: 'Aldrich', sans-serif;
    position: absolute;
    display: block;
    width: 40px;
    height: 30px;
    line-height: 30px;
    top: 35px;
    left: 0px;
    background: rgb(76, 76, 76);
    background: -moz-linear-gradient(top, rgba(76, 76, 76, 1) 0%, rgba(38, 38, 38, 1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(76, 76, 76, 1)), color-stop(100%, rgba(38, 38, 38, 1)));
    background: -webkit-linear-gradient(top, rgba(76, 76, 76, 1) 0%, rgba(38, 38, 38, 1) 100%);
    background: -o-linear-gradient(top, rgba(76, 76, 76, 1) 0%, rgba(38, 38, 38, 1) 100%);
    background: -ms-linear-gradient(top, rgba(76, 76, 76, 1) 0%, rgba(38, 38, 38, 1) 100%);
    background: linear-gradient(to bottom, rgba(76, 76, 76, 1) 0%, rgba(38, 38, 38, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#262626', GradientType=0);
    font-weight: bold;
    font-size: 12px;
    color: #fff;
    text-align: center;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.3);
    text-shadow: 0px -1px 0px #000000, 0px 1px 1px #000000;
    filter: dropshadow(color=#000000, offx=0, offy=-1);
}

#label span {
    position: absolute;
    display: block;
    width: 12px;
    height: 9px;
    top: -9px;
    left: 14px;
    background: transparent;
    overflow: hidden;
}

#label span:before {
    position: absolute;
    display: block;
    content: "";
    width: 8px;
    height: 8px;
    top: 4px;
    left: 2px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: rgb(86, 86, 86);
    background: -moz-linear-gradient(-45deg, rgba(86, 86, 86, 1) 0%, rgba(76, 76, 76, 1) 50%);
    background: -webkit-gradient(linear, left top, right bottom, color-stop(0%, rgba(86, 86, 86, 1)), color-stop(50%, rgba(76, 76, 76, 1)));
    background: -webkit-linear-gradient(-45deg, rgba(86, 86, 86, 1) 0%, rgba(76, 76, 76, 1) 50%);
    background: -o-linear-gradient(-45deg, rgba(86, 86, 86, 1) 0%, rgba(76, 76, 76, 1) 50%);
    background: -ms-linear-gradient(-45deg, rgba(86, 86, 86, 1) 0%, rgba(76, 76, 76, 1) 50%);
    background: linear-gradient(135deg, rgba(86, 86, 86, 1) 0%, rgba(76, 76, 76, 1) 50%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#4c4c4c', GradientType=1);
    -webkit-box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.15);
    box-shadow: 0px -1px 2px 0px rgba(0, 0, 0, 0.15);
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.mouse2Div {
    cursor: pointer
}

@font-face {
    font-family: "CarterOne";
    font-style: normal;
    font-weight: normal;
    src: local("CarterOne Regular"), local("CarterOne-Regular"), url("CarterOne.eot?#iefix") format("embedded-opentype"), url("CarterOne.ttf") format("truetype");
}

.loogText {
    position: absolute;
    text-align: left;
    font: 24px Helvetica, Sans-serif;
    color: #fff;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 rgba(6, 2, 1, 0.98);
}

.number {
    position: absolute;
    width: 100px;
    text-align: center;
    font: 20px Arial, Helvetica, Sans-serif;
    color: #fff;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#title {
    animation-name: flyIn, shark;
    animation-duration: 1500ms, 6000ms;
    animation-timing-function: linear, linear;
    animation-delay: 0ms, 1500ms;
    animation-iteration-count: 1, infinite;
    transform-origin: center top;
    -webkit-animation-name: flyIn, shark;
    -webkit-animation-duration: 1500ms, 6000ms;
    -webkit-animation-timing-function: linear, linear;
    -webkit-animation-delay: 0ms, 1500ms;
    -webkit-animation-iteration-count: 1, infinite;
    -webkit-transform-origin: center top;
    -moz-animation-name: flyIn, shark;
    -moz-animation-duration: 1500ms, 6000ms;
    -moz-animation-timing-function: linear, linear;
    -moz-animation-delay: 0ms, 1500ms;
    -moz-animation-iteration-count: 1, infinite;
    -moz-transform-origin: center top;
    -o-animation-name: flyIn, shark;
    -o-animation-duration: 1500ms, 6000ms;
    -o-animation-timing-function: linear, linear;
    -o-animation-delay: 0ms, 1500ms;
    -o-animation-iteration-count: 1, infinite;
    -o-transform-origin: center top;
}

@-webkit-keyframes flyIn {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes flyIn {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes shark {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes shark {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@-webkit-keyframes flyUp {
    0% {
        -webkit-transform: translate(-200px, 600px);
    }
    100% {
        -webkit-transform: translate(0, 0);
    }
}

@keyframes flyUp {
    0% {
        transform: translate(-200px, 600px);
    }
    100% {
        transform: translate(0, 0);
    }
}

.flyUp {
    -webkit-animation-name: flyUp;
    animation-name: flyUp;
    -webkit-animation-duration: .5s;
    animation-duration: .5s;
    -webkit-animation-fill-mode: ease-in;
    animation-fill-mode: ease-in
}