/* Styles of tool: Memory Game (Find the Pairs) */
.mg{display:grid;gap:8px;max-width:520px;margin:0 auto}
.tool-box .mg-c{aspect-ratio:1;padding:0!important;font-size:2rem!important;background:var(--primary)!important;border:0!important;border-radius:8px!important;perspective:600px;transition:background .25s,transform .25s!important}
.mg-c span{opacity:0;transition:opacity .2s}
.tool-box .mg-c.open,.tool-box .mg-c.ok{background:var(--bg)!important;transform:rotateY(180deg) scaleX(-1)!important}
.mg-c.open span,.mg-c.ok span{opacity:1}
.tool-box .mg-c.ok{background:#e8f6e3!important}
