*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6{
    font-family: sans-serif;
    text-transform: capitalize;
    margin: 2% 0;
}
nav ul{
    display: flex;
    justify-content: flex-end;
}
nav ul li{
    list-style: none;
    margin: 1% 5% 0 5%;
}
nav ul li a{
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    text-transform: capitalize;
    font-family: sans-serif;
}
.container{
    position: absolute;
    width: 100%;
    height: auto;
    min-height: -webkit-fill-available;
    min-height: 100%;
    background-color: #a2a2fc;
}
nav{
    width: 100%;
    height: 50px;
}
/* tiles grid */
.gird10n20{
    grid-template-columns: repeat(5,15%);
}
.gird30n40{
    grid-template-columns: repeat(8,12%);
}
.game-box{
    display: grid;
    justify-content: center;
    grid-template-rows: auto;
    width: 100%;
    position: relative;
    grid-gap: 40px;
    padding-bottom: 40px;
    justify-items: center;
    /* transform-style: preserve-3d;*/
    perspective: 1000px; 
}
.status{
    display: flex;
    justify-content: space-between;
    color: #d00909;
    font-weight: bold;
    height: 30px;
    margin: 0 20px;
    text-transform: capitalize;
}
.status .player{
    position: relative;
    overflow: hidden;
}
.player-active::after{
    content: "";
    position: absolute;
    border-bottom: 5px solid #651168;
    width: 100%;
    left: 0;
    bottom: 0;
    animation: ani 1s linear infinite ;
}
@keyframes ani{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(100%);
    }
}
.cards{
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    border-radius: 10px;
    background-color: #f83f3f;
    transition: all .5s linear;
    cursor: pointer;
}
.cards::after{
    content: "";
    width: inherit;
    height: inherit;
    position: absolute;
    border-radius: 10px;
    background-color: #cf4708;
    transition: inherit;

}
.cards .inner-card{
position: absolute;
border-radius: inherit;
background-color: #f89494;
width: 100%;
height: 100%;
background-image: inherit;
background-size: inherit;
z-index: 1;
pointer-events: none;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
}
.flip-back .inner-card{
    z-index: 1;
}
.flip-front .inner-card{
    z-index: 1;
    border-block-style:solid;
    border-block-color: yellow;
}
.flip-front{
    box-shadow:1px 2px 1px #f0e7e780;
    border:1px solid yellow;
    cursor: default;
    box-sizing: content-box;
}
.flip-back{
    transform: rotateY(180deg);
}
.game-control{
    height: 100px;
    text-align: center;
}
/* button */
.btn{
    width: 100px;
    height: 30px;
    border-radius: 5px;
    font-weight: bold;
    outline: none;
    cursor: pointer;
}
.close{
    background-color: #f53535;
    color: #ffffff;
    border: 1px solid #ffffff;
}
.open{
    background-color: #3572f5;
    border: 1px solid #f1dddd;
    color: #f1dddd;
}
.help{
    background-color: #35f54f;
    border: 1px solid #1f0b0b;
    color: #1f0b0b;
}
label{
    font-size: 15px;
    color: #3572f5;
    font-weight: bold;
}
.game-setting{
    position: fixed;
z-index: 10;
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #000c;
top: 0;
min-height: auto;
}
.game-setting .field{
    display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 60%;
background: #fffe;
height: 80%;
border-radius: 20px;
}
.game-setting .input{
    width: 150px;
    margin: 2%;
}
.game-help{
    transition: all .8s linear;
    position: fixed;
z-index: 10;
width: 100%;
height: 100%;
min-height: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #000c;
top: 0;
}
.game-help article{
    color: #a51e1e;
width: 60%;
background-color: #ffffff;
border-radius: 20px;
height: 80%;
padding-left: 5%;
}
.game-help article button{
    margin-top: 2%;
    text-align: center;
}
.hide{
    display: none;
    transition: all .8s linear;
}
@media only screen and (max-width : 700px){
    .game-box{
        grid-gap: 10px;
    }
    nav ul li a{
        font-size: 15px;
    }
}