/*PERSONALIZATION BY AUTHOR*/

#counter {
    padding: .4% .9%;
    position: relative;
    bottom: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-family: arial, sans-serif;
    display: inline-block;
    text-align: center;
}

.conditions a,
.conditions {
    color: #000;
    font-family: arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

.popup h1 {
    color: red;
}

.popup p {
    color: #333333;
}

@media screen and (min-width:470px) {
    #counter {
        font-size: 1em;
    }
}

@media screen and (min-width:768px) {
    #counter {
        font-size: 1.2em;
    }
}

@media screen and (min-width:1080px) {
    #counter {
        font-size: 1.4em;
    }
}

@media screen and (min-width:1300px) {
    #counter {
        font-size: 1.8em;
    }
}


/*--------------------------*/


/*--------------------------*/


/*--------SYSTEMCORE--------*/


/*--------STYLESHEET--------*/


/*--------------------------*/


/*--------------------------*/
html[data-useragent*='MSIE 8.0'] .flip .card .face {
    z-index: 1;
}

html[data-useragent*='MSIE 9.0'] .flip .card .face {
    z-index: 1;
}

html,
body {
    min-height: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    background-size: auto !important;
}

.wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.clear:after {
    clear: both;
    content: "";
    display: table;
}

.surround_board{
    -webkit-box-shadow: 0px 1px 50px 1px rgba(0, 0, 0, 0.6) !important;
	-moz-box-shadow: 0px 1px 50px 1px rgba(0, 0, 0, 0.6) !important;
	box-shadow: 0px 1px 50px 1px rgba(0, 0, 0, 0.6) !important;
    top: 0px;
    position: absolute;
}

#headers {
    margin-top: 0px;
    width: 100%;
    text-align: center;
    position: relative;
}

#headers img {
    width: 100%;
    display: block;
}

#top {
    width: 100%;
    text-align: center;
    height: auto;
}

.timer {
    width: 100%;
    text-align: center;
    height: auto;
    position: absolute;
    bottom: 0;
}

.conditions {
    width: 100%;
    text-align: center;
}

.warning {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    z-index: 1;
    margin: 50px 0
}

.popup {
    height: 50%;
    width: 50%;
    padding: 50px;
    overflow: auto;
    margin: auto;
    position: relative;
    text-align: center;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: white;
    z-index: 2;
    box-shadow: 0 0 2em black;
}


/*       GAME STYLE      */

#memory_board {
    transition: .5s;
    width: 100%;
    max-width: 960px;
    margin: 0px auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

#memory_board .front {
    height: 100%;
    width: 100%;
    cursor: pointer;
    text-align: center;
    border-radius: 3px;
}

.flip {
    -webkit-perspective: 800;
    -ms-perspective: 800;
    -moz-perspective: 800;
    -o-perspective: 800;
    position: relative;
    float: left;
    border-radius: 3px;
    margin-bottom: 20px;
}

.flip .card.flipped {

    -ms-transform: rotatey(-180deg);

    -moz-transform: rotatey(-180deg);

    -webkit-transform: rotatey(-180deg);

    -o-transform: rotatey(-180deg);

    transform: rotatey(-180deg);
}

.flip .card.flipped.zoomEffect{
    zoom:1.2;
    transition:.5s;
}

.flip .card {
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    -webkit-transition: 0.5s;
    -moz-transform-style: preserve-3d;
    -moz-transition: 0.5s;
    -ms-transform-style: preserve-3d;
    -ms-transition: 0.5s;
    -o-transform-style: preserve-3d;
    -o-transition: 0.5s;
    transform-style: preserve-3d;
    transition: 0.3s;
    margin: 0 auto;


    box-shadow: 0 0 8px rgba(0, 0, 0, .5);
}
.flip .card.flipped .face.back{
  display: block!important;
}

.flip .card.flipped .face.front{
  display: none!important;
}

.flip .card .face.back{
  display: none;
}

.flip .card .face.front{
  display: block;
}
.flip .card .face {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;


/*    backface-visibility: hidden;

    -webkit-backface-visibility: hidden;

    -moz-backface-visibility: hidden;

    -ms-backface-visibility: hidden;

    -o-backface-visibility: hidden;*/
}

.flip .card .front {
    position: absolute;
    z-index: 1;
    background: black;
    color: white;
    cursor: pointer;
}

.flip .card .back {
    background: blue;
    background: white;
    color: black;
    cursor: pointer;
    -ms-transform: rotatey(-180deg);

    -moz-transform: rotatey(-180deg);

    -webkit-transform: rotatey(-180deg);

    -o-transform: rotatey(-180deg);

    transform: rotatey(-180deg);
}

.card {
    width: 80px!important;
    height: 117px!important;
}


