/* ============================================================== */
/* ====================== NEW GAME MODAL ======================== */
/* ============================================================== */

/* LOGIC */

html {
    font-family: "Quicksand", sans-serif;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    height:100%;
}

body 
{
    width:100%;
    position: relative;
    float:left;
    padding:0;
    margin:0;
    background: rgb(102,55,151);
background: linear-gradient(356deg, rgba(102,55,151,1) 44%, rgba(56,29,98,1) 100%);
}
button {font-family: "Quicksand", sans-serif;}


/* ====================================================================== */
/* ============================== GAMEPLAY ============================== */
/* ====================================================================== */

.container 
{
    max-width:640px;
    width:100%;
    height:100%;
    position: relative;
    left:50%;
    transform:translateX(-50%);
    -webkit-transform:translateX(-50%);
    -moz-transform:translateX(-50%);
    -o-transform:translateX(-50%);
    padding-top: 10px;
}
/* ========== Logic ============= */

.gameplay_bg {
    width: 100%;
    height: 100vh;
    display: block;
    position: relative;
    top: 0;
    float: left;
    overflow: hidden;
}

#container > svg > path:nth-child(1) {
    stroke: rgba(255,255,255,0.2);
}


.gameplay_title_container {
    /* height: 160px; */
    width: 100%;
    display: flex;
    justify-content: center;
    
}

.gameplay_title {
    text-align: center;
    font-size: 25px;
    color: #ffffff;
    font-weight: bold;
    position: relative;
    float: left;
    width: 100%;
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.gameplay_title p
{
    font-weight: 400;
    /* white-space: pre; */
}
.gameplay_title h3
{
    display: block;
    color:#e288d3;
    font-size:38px;
    margin:0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gameplay_title h3::after
{
    content:'';
    color:#e288d3;
    border-bottom:1px solid #e288d3;
    position: relative;
    width: 140px;
    display: block;
    padding-top: 20px;
}

/* ================= End Logic ============== */

/*timer*/
.game-timer {
    -ms-flex: 0 0 10%;
    flex: 0 0 10%;
    /* max-width: 10%; */
    text-align: center;
    -ms-flex-align: center;
    align-items: center;
    top: 10px;
    margin:0 auto;
    /* background: #1a0a34;
    padding: 15px;
    border-radius: 12px; */
    width:130px;
}

.timer-container {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    background: #1a0a34;
    padding: 15px;
    border-radius: 12px;
    width: 100px;
}
.icon {
    margin-right: 10px;
    position: relative;
    float: left;
    width: 25px;
    height: 25px;
}
.icon img {width:25px;}
#timer {width: 67px;}

/* ================= Memory 1b ============== */

.gameplay_btn.memory:focus,
.gameplay_btn.memory:active {
    /* border: 4px solid #F24973; */
    outline: none;
}

/* ================= End Memory 1b ============== */


/* ================= Memory 1a ============== */

.gameplay_game_box_list {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin: -5px auto 0px auto;
    position: relative;
    text-align: center;
    
}


/* ================= End Memory 1a ============== */




/* ================= Memory 2a ============== */

.gameplay_list_row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.gameplay_list_col {
    display: flex;
    flex-direction: column;
    margin-left: 30px;
    margin-right: 30px;
}

/* ================= End Memory 2a ============== */




/* ================= Memory 3b ============== */

.card {
    width: 100px;
    height: 100px;
    transition: transform 1s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    margin: 10px;
    
}

.card.is-flipped {
    transform: rotateY(180deg);
}

.flip_face {
    position: absolute;
    width: 100px;
    height: 100px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2px;
}

.flip_face_front {
    background: #d7ccc8;
}

.flip_face_back {
    transform: rotateY(180deg);
}

@media only screen and (max-width: 540px) {
    .card {
        width: 85px;
        height: 85px;
        margin: 5px;
    }
    .flip_face {
        width: 85px;
        height: 85px;
    }
}

/* ================= End Memory 3b ============== */





/* ================= Memory 3a ============== */

.gameplay_tap_container.pair {
    padding-bottom: 30px;
}

.pair_img {
    width: 100px;
    height: 100px;
    border: none;
    border-radius: 2px;
    margin: 10px;
    cursor: default;
}

@media only screen and (max-width: 540px) {
    .pair_img {
        width: 85px;
        height: 85px;
        margin: 5px;
    }
    .gameplay_tap_container.pair {
        padding-bottom: 0;
    }
}

/* ================= End Memory 3a ============== */




/* ================= Memory 4b ============== */
.gameplay_tap_box {border-radius: 10px;}


.gameplay_tap_container {
    /* max-width: 400px; */
    margin: 0px auto;
    padding-top: 30px;
    padding-bottom: 60px;
}

.gameplay_tap_row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.tap_btn {
    width: 80px;
    height: 80px;
    background-color: #CCCCCC;
    border: none;
    border-radius: 10px;
    margin: 10px;
    transition: 0.2s;
}

.tap_btn:focus,
.tap_btn:active {
    outline: none;
}

.change_btn_color {background-color: #55FF00;}
.worng_tap {background-color: #F70000;}

@media only screen and (max-width: 540px) {
    .tap_btn {
        width: 68px;
        height: 68px;
        margin: 5px;
    }
}

/* ================= End Memory 4b ============== */




/* ================= Memory NEW ============== */

.memory4 .img_box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #C24F6E;
    width: 100%;
    max-width: 80px;
    height: 80px;
    margin: 10px;
}

.memory4 .img_box img {
    width: 100%;
    max-width: 50px;
}

.memory4 .card {
    width: 100%;
    max-width: 120px;
    height: 120px;
    transition: transform 1s;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    margin: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}


.memory4 .flip_face {
    width: 100%;
    max-width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #C24F6E;
    border-radius: 20px;
}

.memory4 .flip_face img {
    width: 100%;
    max-width: 50px;
}

.memory4 .flip_face_front {
    background: #2a125e;
}

.memory4 .flip_face_back {
    transform: rotateY(180deg);
}

.gameplay_btns_col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
}



.black {color: #000000!important;}
.green {color: #7CB342!important;}
.orange {color: #FE9054!important;}
.red {color: #DE1E21!important;}
.blue {color: #0F8DA9!important;}
.purple {color: #BA68C8!important;}


.match .flip_face.flip_face_back {background: #7CB342;}
.notmatch .flip_face.flip_face_back {background: #DE1E21;}

@media only screen and (min-width: 1700px)
{
    html {height:100%;}
    .gameplay_bg {height:100%;}
}

@media only screen and (max-width: 1699px) {
    html {height:auto;}

    .gameplay_bg {height:100%; background-size: 100%; padding-bottom: 0px;}

    .gameplay_list_items p {font-size: 20px;}

    .gameplay_list_button {
        width: 70px;
        height: 70px;
        font-size: 20px;
        border-radius:50%;
        margin-top: 25px;
    }

}

@media only screen and (max-width: 540px) {
    .memory4 .img_box, 
    .memory4 .card, 
    .memory4 .flip_face {
        max-width: 60px;
        height: 60px;
    }

    .memory4 .img_box img, 
    .memory4 .flip_face img {
        max-width: 35px;
    }

    .container {width:80%;}
}


@media only screen and (max-width: 480px) {
   


}

@media only screen and (max-width: 360px)  {
    .memory4 .img_box, 
    .memory4 .card, 
    .memory4 .flip_face {
        max-width: 55px;
        height: 55px;
        margin: 5px;
    }

   
    .memory4 .img_box img, 
    .memory4 .flip_face img {
        max-width: 30px;
    }

   
    
}
/* ================= End Memory NEW ============== */




