*,
    ::after,
    ::before {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    body,
    html {
        height: 100%;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        min-height: 100%;
    }

    .-posrel {
        position: relative;
    }

    .-posabs {
        position: absolute;
    }

    .-inlineblock {
        display: inline-block;
    }

    .-vatop {
        vertical-align: top;
    }

    .wrap {
        position: relative;
        padding-bottom: 20px;
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
        background: transparent;
    }

    .game {
        transform-style: preserve-3d;
        perspective: 500px;
        min-height: 100%;
    }

    @keyframes matchAnim {
        0% {
            background: #bcffcc;
        }

        100% {
            background: #fff;
        }
    }

    .card {
        display: inline-block;
        vertical-align: middle;
        width: 25%;
        max-width: 120px;
        height: 25vw;
        max-height: 120px;
        text-align: center;
        perspective: 500px;
        position: relative;
        cursor: pointer;
        z-index: 50;
        -webkit-tap-highlight-color: transparent;
        margin: 0 -2px;
        padding: unset !important;
  
    }

    .card .inside {
        width: 100%;
        height: 100%;
        display: block;
        transform-style: preserve-3d;
        transition: 0.4s ease-in-out;
        background-color: #fff;
        border-radius: 7px;
    }

    .card .inside.matched,
    .card .inside.picked {
        transform: rotateY(180deg);
    }

    .card .inside.matched {
        animation: 1s matchAnim ease-in-out;
        animation-delay: 0.4s;
    }

    .card .back,
    .card .front {
        backface-visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
    }

    .card .back img,
    .card .front img {
        max-width: 80%;
        display: block;
        max-height: 100%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .card .front {
        transform: rotateY(-180deg);
    }

    .card .back {
        transform: rotateX(0);
    }

    .-banner {
        height: 80px;
        width: 95%;
        margin: 0 auto;
    }

    .-banner .-posabs {
        width: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

    .-banner .-left {
        left: 0;
        width: 40%;
    }

    .-banner .-right {
        right: 0;
        width: 60%;
    }

    .-banner .-left img {
        width: 80%;
        display: block;
    }

    .-banner .-right img {
        width: 100%;
        display: block;
        margin-left: auto;
    }

    .-banner .-posabs .-txt {
        text-align: center;
        text-transform: uppercase;
        font-size: 1.2em;
        width: 100%;
        font-weight: 700;
    }

    .-how-tos {
        width: 98%;
        margin: 0 auto;
    }

    .-how-tos .-how-to {
        width: calc(97% / 2);
        font-weight: 500;
        background-color: #f90;
        height: 32px;
        padding: 5px;
        font-size: 0.65em;
        margin: 0.5%;
        box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.2);
        text-align: center;
        line-height: 32px;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .-moves {
        text-align: center;
    }

    .-gamename {
        margin: 20px 0;
        text-align: center;
        margin-top: unset;
    }

    .-gamename .-txt {
        font-size: 1.4em;
        font-weight: 700;
        color: #f90;
    }

    .t-c {
        width: 95%;
        margin: 0 auto;
        margin-bottom: 15px;
        background-color: #ff9900;
        color: #000;
    }

    .t-c h2 {
        text-align: center;
        text-transform: uppercase;
        font-weight: 600;
        font-size: 1.2em;
    }

    .t-c ol {
        margin-left: 20px;
    }

    @media (max-width: 480px) {
        .modal .winner {
            font-size: 40px;
        }
    }

    @media (max-width: 800px) {
        .card {
            width: 23.75%;
            margin: 0.625% calc(0.625% - 1.75px);
        }

        .card .front {
            padding: 5px;
        }

        .card .back {
            padding: 10px;
        }
    }



    div.input-fields,
    .button {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
    }

    div.input-fields input {
        width: 47%;
        padding: 5px;
        border: 1px solid #000;
    }

    .button {
        margin: 3px 0px;
    }

    .button p {
        margin: 0px;
        font-size: 10px;
        margin-left: 10px;
        font-style: italic;
    }

    .form-box {
        margin: 5px 0px;
    }



    .terms-box p {
        font-size: 12px;
    }



    button.space {
        width: 50vw;
        display: block;
        margin: auto;
        padding: 2px 34px;
        background: transparent;
        border: none;
        box-shadow: 0 0 0.1em rgba(0, 0, 0, 0.6);
    }

    div.space-bar {
        color: #fff;
        padding: 2px;
    }

    .highlighted {
        -webkit-animation: highlight 0.1s linear;
        -moz-animation: highlight 0.1s linear;
        -ms-animation: highlight 0.1s linear;
        -o-animation: highlight 0.1s linear;
        animation: highlight 0.1s linear;
    }

    @keyframes highlight {
        0% {
            background: rgba(0, 0, 0, 0.3);
        }

        50% {
            background: rgba(0, 0, 0, 0.6);
        }

        100% {
            background: rgba(0, 0, 0, 0.3);
        }
    }

    #playButton {
        -webkit-animation: colorized 0.1s linear;
        -moz-animation: colorized 0.1s linear;
        -ms-animation: colorized 0.1s linear;
        -o-animation: colorized 0.1s linear;
        animation: colorized 0.1s linear;
    }

    @keyframes colorized {
        0% {
            font-weight: normal;
        }

        50% {
            font-weight: bold;
        }

        100% {
            font-weight: normal;
        }
    }

    .error {
        color: red;
        font-size: 10px;
        display: none;
    }

    #scr-frm {
        display: none;
    }

    .success-spin {
        position: absolute;
        top: 85px;
        left: 30px;
        right: 30px;
        height: auto;
        background: #fff;
        border-radius: 3px;
        padding: 4px;
        box-shadow: 0 0 0.4em #ddd;
        z-index: 10;
        display: none;
    }

    .try-again {
        position: absolute;
        top: 55px;
        left: 30px;
        right: 30px;
        height: auto;
        background: #fff;
        border-radius: 3px;
        padding: 4px;
        box-shadow: 0 0 0.4em #ddd;
        z-index: 10;
        display: none;
    }

    .try-again img {
        width: 100%;
        height: auto;
        border-radius: 3px;
    }

    #restartBTN {
        display: none;
    }

