* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'mathjax_mathregular';
  src: url('../fonts/mathjax_math-regular-webfont.woff2') format('woff2'),
       url('../fonts/mathjax_math-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}

body {
  /*height: 100vh;*/
  display: flex;
  background: #efefef/*#060AB2*/;
  font-family: 'Special Elite', cursive;
  /*transform: scale(0.82);*/
 
}

.memory-game {
  /* width: 700px;
  height: 600px; */
  width: 100vw;
  height: 70vh;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  perspective: 1000px;
}

.memory-card:active {

  /*test pour compatibilité sous safari*/
  -webkit-transform: scale(0.97);
  -webkit-transition: transform .2s;
  /* fin test*/

  transform: scale(0.97);
  transition: transform .2s;
}

.memory-card.flip {

  /*test pour compatibilité sous safari*/
  -webkit-transform: rotateY(180deg);
  /* fin test*/

  transform: rotateY(180deg);
}

.front-face,
.back-face {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  border-radius: 5px;
  background:  	#FFA500/*#1C7CCC*/;
  backface-visibility: hidden;
}

.front-face {
  
  /*test pour compatibilité sous safari*/
  -webkit-transform: rotateY(180deg);
  /* fin test*/

  transform: rotateY(180deg);
}

/* pour les fade in fade out*/
.show {
  opacity: 1;
  transition: opacity 1000ms;
}

.hide {
  opacity: 0;
  transition: opacity 1000ms;
}

.mathJaxBold{
  font-family: 'mathjax_mathregular';
  font-weight: bold;
  /* font-size: 2em; */
  font-size: 1.75em;
}

.mathJaxBoldMax{
  font-family: 'mathjax_mathregular';
  font-weight: bold;
  /* font-size: 3em; */
  font-size: 1.75em;
}

/* mobile first <= 600px */
.expr-alg {
  font-family: 'mathjax_mathregular';
  width:100%;
  height:100%;
  line-height:4em;
  text-align : center;
  /*font-size : 35px;*/
  font-size : 1.2em;  
  vertical-align: middle;
}

/* .expr-alg {
  font-family: 'mathjax_mathregular';
  width:100%;
  height:100%;
  line-height:7em;
  text-align : center;  
  font-size : 0.30em;  
  vertical-align: middle;
} */

.memory-card {
  width: calc(29% );
  height: calc(15%);
  /* margin: 5px; */
  margin: 0.2em;
  position: relative;

  /*test pour compatibilité sous safari*/
  -webkit-transform: scale(1);
  -webkit-transform-style: preserve-3d;
  -webkit-transition: transform .5s;
  /* fin test*/

  transform: scale(1);
  transform-style: preserve-3d;
  transition: transform .5s;
  box-shadow: 1px 1px 1px rgba(0,0,0,.3);
 
}

h1 {
  /* color:red; */
}

/* pour mettre le focus sur la navigation vers le niveau suivant en cas de vistoire */
#next {
  color : rgb(21, 87, 36);
  margin-top : 15%;
}

#nextLevel {
  transition-property: transform; 
  transition-duration: 2s; /* La transition dure 1s */
}

.levelOkGoNext {
  /* background-color: #d4edda; */
  /* stroke : #d4edda; */
  stroke : rgb(21, 87, 36);
  /* transform : translateX(15px); */
  transform : scale(1.1,1.1);  
}

.topTitle {
  margin-top: 1rem;
}
@media screen and (min-width : 601px) {

  h1 {
    /* color: blue; */
  }

  .memory-card {
    /* width: calc(33.333% - 10px);
    height: calc(25% - 10px);
    margin: 5px; */
    width: calc(33.333% - 1.5vw);
    height: calc(25% - 1.5vh);
    margin: 0.2em;
    position: relative;

    /*test pour compatibilité sous safari*/
    -webkit-transform: scale(1);
    -webkit-transform-style: preserve-3d;
    -webkit-transition: transform .5s;
    /* fin test*/

    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 1px 1px 1px rgba(0,0,0,.3);
   
  }

  .expr-alg {
    font-family: 'mathjax_mathregular';
    width:100%;
    height:100%;
    /* line-height:100px; */
    line-height:3em;
    text-align : center;
    /*font-size : 35px;*/
    font-size : 1.2em;  
    vertical-align: middle;
  }

};


@media screen and (min-width : 768px) {

  h1 {
    /* color: green; */
  }
  .memory-card {
    /* width: calc(33.333% - 10px);
    height: calc(25% - 10px);
    margin: 5px; */
    width: calc(33.333% - 1.5vw);
    height: calc(25% - 1.5vh);
    margin: 0.2em;
    position: relative;

    /*test pour compatibilité sous safari*/
    -webkit-transform: scale(1);
    -webkit-transform-style: preserve-3d;
    -webkit-transition: transform .5s;
    /* fin test*/

    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 1px 1px 1px rgba(0,0,0,.3);
   
  }

  .expr-alg {
    font-family: 'mathjax_mathregular';
    width:100%;
    height:100%;
    /* line-height:100px; */
    line-height:4em;
    text-align : center;
    /*font-size : 35px;*/
    font-size : 1.5em;  
    vertical-align: middle;
  }


}


@media screen and (min-width : 1200px) {


  h1 {
    /* color: yellow; */
  }

  .memory-card {
    /* width: calc(33.333% - 10px);
    height: calc(25% - 10px);
    margin: 5px; */
    width: calc(33.333% - 1.5vw);
    height: calc(25% - 1.5vh);
    margin: 0.2em;
    position: relative;
    
    /*test pour compatibilité sous safari*/
    -webkit-transform: scale(1);
    -webkit-transform-style: preserve-3d;
    -webkit-transition: transform .5s;
    /* fin test*/

    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 1px 1px 1px rgba(0,0,0,.3);
   
  }

  .expr-alg {
    font-family: 'mathjax_mathregular';
    width:100%;
    height:100%;
    /* line-height:100px; */
    line-height:4em;
    text-align : center;
    /*font-size : 35px;*/
    font-size : 1.5em;  
    vertical-align: middle;
  }
  
}








