@font-face{
    font-family: "PraJad";
    src: url("Assets/Fonts/CSPraJad.woff2") format("woff2"),
        url("Assets/Fonts/CSPraJad.woff") format("woff"),
        url("Assets/Fonts/CSPraJad.ttf") format("truetype");
}

@font-face{
    font-family: "Kanit";
    src: url("Assets/Fonts/Kanit-Regular.woff2") format("woff2"),
        url("Assets/Fonts/Kanit-Regular.woff") format("woff"),
        url("Assets/Fonts/Kanit-Regular.ttf") format("truetype");
}
@font-face{
    font-family: "SMBAdvBol";
    src: url("Assets/Fonts/SMBAdvBol.woff2") format("woff2"),
        url("Assets/Fonts/SMBAdvBol.woff") format("woff"),
        url("Assets/Fonts/SMBAdvBol.ttf") format("truetype");
}

@font-face{
    font-family: "SMBAdv";
    src: url("Assets/Fonts/SMBAdvReg.woff2") format("woff2"),
        url("Assets/Fonts/SMBAdvReg.woff") format("woff"),
        url("Assets/Fonts/SMBAdvReg.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

html{
    min-height: 100vh;
}

body {
    margin: 0;
    /*background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.3) 10px

      ),
        
        linear-gradient(to bottom, rgba(150, 150, 150, 0.6), rgba(255, 255, 255, 0));
        
        url('Assets/Images/BG/FAMILY.jpg');
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: 100% auto;
        background-attachment: fixed;*/

        /*radial-gradient(#ffffff,#969696);*/
}

.page-title {
    display: flex;
    position: fixed;
    padding-left: 20px;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100px;
    margin-top: 0px;
    color:white;
    font-family: Kanit, serif;
    font-weight: normal;
    font-size: 4em;
    background-color:#876E4E;
    z-index: 102;
}

.logo {
    position: fixed;
    right: 0px;
    top: 0px;
    height: 100px;
}
.game-status{
    position: fixed;
    width: 100%;
    top: 100px;
    display: flex;
    justify-content: flex-end;
    background-color: #876E4E;
    z-index: 101;
    box-shadow: 0px 2px 4px #969696;
    font-family: Kanit, serif;
    font-weight: normal;
    font-size: 1em;
    color: white;
    padding-right: 50px;

}
/*.game-status > div{
    background-color: white;
    width: 75px;
    margin: 10px;
    text-align: center;
    line-height: 10px;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px;
    border: white;
}*/

.game-info-container{
    grid-column: 1 / -1;
    justify-content: space-between;
    display: flex;
}

.question{
    font-family: PraJad ;
    font-weight: bold;
    font-size: 2.6em;
}
.text-big{
    font-size: 1.5em;
}
.text-small{
    font-size: 0.7em;
}
.game-info {
    color: #777777;
    font-family: PraJad ;
    font-size: 2em;
}
.game{
    position: relative;
    top: 120px;
}
.game-container01 {
    /*display: grid;*/
    display: none;
    grid-template-columns: repeat(5,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}
.game-container02 {
    /*display: grid;*/
    display: none;
    grid-template-columns: repeat(5,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}
.cardq {
    position: relative;
    height: 605px;
    width: 125px;
}
.carda {
    position: relative;
    height: 125px;
    width: 125px;
}

.card-back {
    background-color:rgba(255,255,255,0.2);
    /*border-color:  #876E4E;*/
}

.card-front {
    transform: rotateY(180deg);
    background-color: lightcyan;
    border-color:  #876E4E;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /*border-radius: 12px;
    border-width: 1px;
    border-style: solid;*/
    /*transition: transform 500ms ease-in-out;*/
}

.card.matched .card-back {
    /*transform: rotateY(-180deg);*/
    opacity: 0;
}

.card.matched .card-front {
    transform: rotateY(0deg);
    opacity: 1;
}
.card.matched .card-value {
    background-color: lightgreen;
}

.card.visible .card-value {
    background-color: rgb(255, 247, 228);
}

.card-value {
    align-self: flex-start;
    transform: translateY(0px);
    transition: transform 100ms ease-in-out;
}

.card-face:hover .card-value{
    transform: translateY(-2px);
}

.overlay-text {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    display: none;
    color: #ffffff;
    font-family: PraJad, serif;
    font-weight: bold;
}
.overlay-text-finish {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    display: none;
    color: #ffffff;
    font-family: PraJad, serif;
    font-weight: bold;
}

.overlay-content {
    /*background-color:rgba(0, 0, 0, 0.5);
    width: 100%;*/
    text-align: center;
}
.overlay-content-finish {
    /*background-color:rgba(0, 0, 0, 0.5);
    width: 100%;*/
    text-align: center;
}
.overlay2-content {
    /*background-color:rgba(0, 0, 0, 0.5);*/
    width: 100%;
    text-align: center;
    font-family: PraJad, serif;
    font-weight: bold;
    font-size: 0.5em;
    position:relative;
}
.overlay2-text {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    display: none;
    color: #ffffff;
    font-family: PraJad, serif;
    font-weight: bold;
}
.overlay2-text.visible {
    display: flex;
    animation: overlay-grow 500ms forwards;
}
.overlay-text2-small {
    font-size: 0.5em;
}

.overlay-text-small {
    font-size: 0.5em;
}

.overlay-text.visible {
    display: flex;
    animation: overlay-grow 500ms forwards;
}
.overlay-text-finish.visible {
    display: flex;
    animation: overlay-grow 500ms forwards;
}
@keyframes overlay-grow {
    from {
        background-color: rgba(0, 0, 0, 0);
        font-size: 0em;
    }
    to {
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 6em;
    }

}

.game-container03{
    /*display: grid;*/
    display: none;
    grid-template-rows: repeat(5,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}

.QA-grid {
    position: relative;
    height: 90px;
    width: 665px;
}
.choice {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    background-color: rgb(255, 247, 228);
    border-color: #876E4E;
}
/*.answer-default {
    background-color: gray;
    border-color: cornflowerblue;
}*/
.choice-default {
    color: black;
    font-family: PraJad ;
    font-weight: bold;
    font-size: 2.5em;
    line-height: 1.0;
}

.choice.correct .choice-default {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /*border-radius: 12px;
    border-width: 1px;
    border-style: solid;*/
    background-color: lightgreen;
    /*border-color: cornflowerblue;*/
}

.choice.wrong .choice-default {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-color: lightcoral;
}

.game-container04 {
    /*display: grid;*/
    display: none;
    grid-template-columns: repeat(2,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}

.blockq {
    position: relative;
    height: 240px;
    width: 360px;
}
.blocka {
    position: relative;
    height: 240px;
    width: 360px;
}

.block-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #876E4E;
    /*transition: transform 500ms ease-in-out;*/
}

.block-face:hover .card-value{
    /*transform: translateY(-10px);*/
    transform: scale(1.1);
}

.block.matched .card-value {
    background-color:lightgreen;
}

.block.visible .card-value {
    background-color: rgb(255, 247, 228);
}

.game-container05{
    /*display: grid;*/
    display: none;
    grid-template-columns: repeat(2,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}

.game-container06{
    /*display: grid;*/
    display: none;
    grid-template-rows: repeat(5,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}
.game-container07{
    /*display: grid;*/
    display: none;
    grid-template-rows: repeat(5,auto);
    grid-gap: 10px;
    margin: 50px;
    justify-content: center;
    perspective: 700px;
}
.question{
    display: flex;
    flex-direction: column;
}