/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
    background-image: url(images/page-background.jpg);
    background-size: cover;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}

* {
    box-sizing: border-box
}

html {
    -webkit-text-size-adjust: none;
    touch-action: manipulation;
}

#wrapper {
    height: 100vh;
}

.game .sidebar {
    display: none;
}

.game .header {
    width: 100%;
    position: relative;
    max-width: 100%;
    color: #fff;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 343px;
}

#js-game {
    background-color: #fff;
    padding: 8px;
    width: 936px;
	margin: 0;
	transform-origin: 0 0;
}

#wrapper {
	overflow: hidden;
}

#main {
	height: 100vh;
	overflow: hidden;
}

.content {
	width: 100%;
}

.game-grid {
	width: 100%;
}

@media (min-width: 1024px) {
    #js-game {
        display: flex;
        width: 1273px;
    }

    .game .sidebar {
        flex: 0 0 325px;
        margin-right: 12px;
        max-width: 325px;
        padding: 0;
        padding-top: 73%;
        display: block;
        width: 100%;
        position: relative;
        color: #fff;
        overflow: hidden;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .game .header {
        display: none;
    }
}

.sidebar-inner {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    padding-left: 155px;
    background: #479dd4; /* Old browsers */
    background: -moz-linear-gradient(left, #479dd4 0%, #58a4d8 21%, #61a8d9 43%, #5da6d9 70%, #479dd4 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #479dd4 0%, #58a4d8 21%, #61a8d9 43%, #5da6d9 70%, #479dd4 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #479dd4 0%, #58a4d8 21%, #61a8d9 43%, #5da6d9 70%, #479dd4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#479dd4', endColorstr='#479dd4', GradientType=1); /* IE6-9 */
}

.sidebar-inner {
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 1024px) {
    .sidebar-inner {
        display: block;
        padding: 20px;
    }
}

.game h1 {
    width: 150px;
    font-size: 14px;
    margin: auto auto -15px;
    text-align: center;
}

.main-block {
    max-width: 215px;
}

@media (min-width: 1024px) {
    .game h1 {
        width: auto;
        font-size: 20px;
        margin: 0 0 20px;
    }

    .main-block {
        max-width: none;
        margin-bottom: 100px;
    }
}

.main-block .img-text {
    text-align: center;
}

.main-block .img-text p {
    margin-top: 0;
    text-align: center;
}

.img-text p br {
    display: none;
}

@media (min-width: 1024px) {
    .img-text p br {
        display: block;
    }
}

.top-bg-mobile {
    width: 153px;
    height: 51px;
    margin: auto auto 12px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (min-width: 1024px) {
    .top-bg-mobile {
        display: none;
    }
}

.top-bg {
    display: none;
    width: 286px;
    height: 95px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: auto auto -20px;
}

@media (min-width: 1024px) {
    .top-bg {
        display: block;
    }
}

.bottom-bg {
    display: none;
    width: 264px;
    height: 88px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: auto;
}

@media (min-width: 1024px) {
    .bottom-bg {
        display: block;
    }
}

.main-img {
    position: absolute;
    top: -51px;
    left: -57px;
    border: 1px solid #fff;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: auto auto 30px;
}

@media (min-width: 1024px) {
    .main-img {
        position: static;
        width: 250px;
        height: 250px;
    }
}

.main-img img {
    width: 100%;
    height: auto;
}

.logo-block {
    width: 35%;
    text-align: center;
}

@media (min-width: 1024px) {
    .logo-block {
        width: 100%;
    }
}

.logo-block .text {
    font-size: 11px;
    margin: 0 0 13px;
}

.logo-block .text p {
    margin: 0;
}

.logo {
    margin-bottom: 10px;
}

@media (min-width: 1024px) {
    .logo {
        margin-bottom: 30px;
    }
}

.logo a {
    display: inline-block;
}

/*------------------- content --------------------------*/
.content {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.game .content {
    position: relative;
}

@media (min-width: 1024px) {
    .game .sidebar {
        width: 325px;
        /*flex: 0 0 325px;*/
        margin-right: 12px;
    }

    .sidebar-inner {
        /*height: 100%;*/
    }

    .game .content {
        max-width: 920px;
        flex: 1 0 1%;
    }
}

.game-grid {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-card {
    width: 230px;
    height: 230px;
    padding: 0;
    opacity: 0;
    -webkit-perspective: 1200px;
    perspective: 1200px;
    -moz-transform: perspective(1200px);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    /*-webkit-transform: translate3d(0,0,0);*/
    /*-o-transform: translate3d(0,0,0);*/
    /*-ms-transform: translate3d(0,0,0);*/
    /*transform: translate3d(0,0,0);*/
    transition:  .3s linear;
    overflow: hidden;
}

.not-ie .game-card {
    -webkit-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.load .game-card {
    opacity: 1;
    animation: mymove .3s;
}

.load .game-card:nth-child(1) {
    animation-delay: .1s;
}

.load .game-card:nth-child(2) {
    animation-delay: .2s;
}

.load .game-card:nth-child(3) {
    animation-delay: .3s;
}

.load .game-card:nth-child(4) {
    animation-delay: .4s;
}

.load .game-card:nth-child(5) {
    animation-delay: .5s;
}

.load .game-card:nth-child(6) {
    animation-delay: .6s;
}

.load .game-card:nth-child(7) {
    animation-delay: .7s;
}

.load .game-card:nth-child(8) {
    animation-delay: .8s;
}

.load .game-card:nth-child(9) {
    animation-delay: .9s;
}

.load .game-card:nth-child(10) {
    animation-delay: 1s;
}

.load .game-card:nth-child(11) {
    animation-delay: 1.1s;
}

.load .game-card:nth-child(12) {
    animation-delay: 1.2s;
}

.load .game-card:nth-child(13) {
    animation-delay: 1.3s;
}

.load .game-card:nth-child(14) {
    animation-delay: 1.4s;
}

.load .game-card:nth-child(15) {
    animation-delay: 1.5s;
}

.load .game-card:nth-child(16) {
    animation-delay: 1.6s;
}

@keyframes mymove {
    0% {
        transform: matrix(.5, 0, 0, .5, 0, 0);
        opacity: 0;
    }
    100% {
        transform: matrix(1, 0, 0, 1, 0, 0);
        opacity: 1;
    }
}

.game-card.active {
    pointer-events: none;
}

.not-touch-device .game-card:hover {
    /*padding: 10px;*/
    transform: scale(.9);
}

.game-card .inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 12px;
    background-color: #c1d331;
    border: 1px solid #fff;
    cursor: pointer;
    opacity: 1;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform: rotateY(0);
    transition: transform .3s, opacity 0s linear .3s;
    /*-webkit-backface-visibility: hidden;*/
    /*-moz-backface-visibility: hidden;*/
    /*-ms-backface-visibility: hidden;*/
    /*backface-visibility: hidden;*/
}

.game-card.active .inner {
    padding: 0;
}

.not-ie .game-card .inner {
    -moz-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.game-card.active .inner {
    transform: rotateY(-180deg);
}

.game-card.active .for-img {
    padding: 10px;
    opacity: 1;
    visibility: visible;
}

.game-card.hide .inner {
    opacity: 0;
    transform: scale(.1);
    /*transition-delay: .5s;*/
}

.game-card.hide .for-img {
    opacity: 0;
    visibility: hidden;
}

.for-img {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    /*
    border: 1px solid #fff;
    border-radius: 14px;
    background-color: #fff;
    */
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(180deg);
    /*-webkit-backface-visibility: hidden;*/
    /*-moz-backface-visibility: hidden;*/
    /*-ms-backface-visibility: hidden;*/
    /*backface-visibility: hidden;*/
    transition: opacity .3s linear, transform .3s linear;
}

.for-img .img {
    position: relative;
    width: 100px;
    height: 100px;
}

.for-img img {
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.game-grid .for-bg {
    position: absolute;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    /*top: 12px;*/
    /*left: 12px;*/
    /*right: 12px;*/
    /*bottom: 12px;*/
    /*  width: calc(100% - 24px);
    height: calc(100% - 24px); */
    border: 1px solid #fff;
    border-radius: 14px;
    background: #c1d331 url('images/rhombus.png');
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    /*-webkit-backface-visibility: hidden;*/
    /*-moz-backface-visibility: hidden;*/
    /*-ms-backface-visibility: hidden;*/
    /*backface-visibility: hidden;*/
    overflow: hidden;
    background-position: center;
}

.game-grid .text {
    width: 100%;
    max-height: 100px;
    overflow-y: hidden;
    margin: 27px 0 0;
    padding: 0 10px;
}

.game-grid p {
    font-size: 17px;
    color: #0091cf;
    margin: 0;
}

.btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    visibility: visible;
    opacity: 1;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    transition: .5s linear;
    transform: scale(1);
}

.content .btn-wrap.hidden {
    visibility: hidden;
    opacity: 0;
    transform: scale(0);
}

.content .btn {
    display: inline-block;
    padding: 44px 55px;
    padding-top: 37px;
    font-size: 18px;
    font-size: 50px;
    background-color: #eee;
    text-decoration: none;
    color: #15669c;
    line-height: 1;
    min-width: 250px;
    text-align: center;
    border: 2px solid #15669c;
    border-radius: 6px;
    border-radius: 70px;
    transition: .3s;
}

.content .btn:hover {
    border: 2px solid #8bba48;
    background-color: #8bba48;
    color: #fff;
}

.btn-wrap {
            /* background-color: rgba(255, 255, 255, 0.80); */
            width: 100%;
        }

        .done-container {
            font-family: "Futura W02 Book","Open Sans",sans-serif;
            letter-spacing: 0.05rem;
            border: 2px solid #fff;
            border-radius: 18px;
            background-color: #0082c8;
            color: #fff;
            margin: 3rem 7rem 1rem 7rem;
            padding: 1rem 5rem;
            text-align: center;
        }

            .done-container a {
                color: #fff;
            }

                .done-container a.sans {
                    font-family: "Futura W02 Book","Open Sans",sans-serif;
                    letter-spacing: 0.05rem;
                    font-weight: normal;
                }

            .done-container h2 {
                font-size: 1.5em;
                line-height: 1.5em;
                text-align: center;
            }

            .done-container h3 {
                font-size: 1.25em;
                line-height: 1.25em;
                text-align: center;
            }

            .done-container h4 {
                font-size: 1em;
                line-height: 1.4em;
                text-align: left;
            }

        .banner-done {
            margin-top: -6rem;
            max-width: 90%;
        }

        .cover-guide-book {
            margin-left: 6.5rem;
            margin-top: -1rem;
            position: fixed;
        }

        .content .btn {
            font-size: 1rem;
            padding: 1rem 0.5rem;
            padding-top: 1rem;
        }

        #js-game {
            background-color: #fff;
            padding: 0.5rem;
        }

        @media (min-width: 1024px) {
            .cover-guide-book {
                margin-left: 3.5rem;
            }

            .banner-done {
                margin-top: -4rem;
            }
        }

        .btn-finish h4 {
            width: 50%; 
            padding: 2em 0.4em 3em 0.4em;
            margin: 0; 
            display: block;
            float: left;
        }

        .btn-finish img {
            position: absolute;
        }