@font-face {
  font-family: 'Aleo';
  src: url('../fonts/Aleo-BoldItalic.woff2') format('woff2'),
  url('../fonts/Aleo-BoldItalic.woff') format('woff');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aleo';
  src: url('../fonts/Aleo-Regular.woff2') format('woff2'),
  url('../fonts/Aleo-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DINPro';
  src: url('../fonts/DINPro-Regular.woff2') format('woff2'),
  url('../fonts/DINPro-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  min-height: 100%;
  width:100%;
  font-family: 'Aleo', 'Arial', sans-serif;
  font-size:14px;
  line-height: 18px;
  position: inherit !important;
  color: #ffffff;
  padding-top: 20px;
  padding-bottom: 20px;
  background: url("../img/pointilles-haut-1.png") 56em top no-repeat #ef7b68;
}

/*#exampleModal{*/
/*  position: absolute;*/
/*}*/

.modal-dialog .modal-header,
.modal-dialog .modal-body,
.modal-dialog .modal-footer{
  color: #3c6a71;
  font-family: 'Aleo', 'Arial', sans-serif !important;
}

h1 {
  font-size: 2em;
  margin-bottom: 0.8em;
  line-height: 1em;
}

h2 {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.8em;
}

#texteReglesDuJeu p {
  margin-bottom: 0.7em;
}

.img-responsive {
  display: inline-block;
  width: 100%;
  height: auto;
}

.container{
  max-width: 1000px;
}

.btn-jeu-1 {
  display: inline-block;
  background-color: #ffffff;
  padding: 0.5em 1em;
  font-size: 1.5em;
  font-family: 'Aleo', 'Arial', sans-serif;
  font-style: italic;
  color: #3c6a71;
  -webkit-box-shadow: 8px 8px 5px 0 #955649;
  box-shadow: 8px 8px 5px 0 #955649;
  margin: 30px auto;
}

.btn-jeu-2 {
  position: relative;
  display: inline-block;
  background-color: #ffffff;
  padding: 0.5em 1em;
  font-size: 2em;
  font-family: 'Aleo', 'Arial', sans-serif;
  font-style: italic;
  color: #3c6a71;
  -webkit-box-shadow: 8px 8px 5px 0 #52423e;
  box-shadow: 8px 8px 5px 0 #52423e;
  margin: 30px auto;
}

.btn-jeu-2:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 135%;
  height: 115%;
  background-color: #3c6a71;
  -moz-transform: rotate(-10deg) translateX(-10%) translateY(-10%);
  -webkit-transform: rotate(-10deg) translateX(-10%) translateY(-10%);
  -o-transform: rotate(-10deg) translateX(-10%) translateY(-10%);
  -ms-transform: rotate(-10deg) translateX(-10%) translateY(-10%);
  transform: rotate(-10deg) translateX(-10%) translateY(-10%);
  z-index: -1;
}

.btn-jeu-2 span.rouge {
  color: #ef7b68;
}

.btn-jeu-1:hover,
.btn-jeu-2:hover {
  text-decoration: none;
  color: #80aeaa;
}

#header {
  padding-bottom: 3em;
}

#footer {
  padding-top: 3em;
  padding-bottom: 2em;
  font-family: 'DINPro', 'Arial', sans-serif;
  width: 100%;
}

#footer a {
  color: #ffffff;
}

#pointillesFooter {
  max-width: 530px;
}


/** PAGE D'ACCUEIL **/
#leMansOfCourse {
  max-width: 227px;
}

#leGrandJeu img{
  margin-top: 30px;
  margin-bottom: 20px;
  margin-left: 13em;
}

#leMansCityPass img{
  max-width: 384px;
}

#leMansCityPass a{
  margin-left: 20em;
}

@media (max-width: 576px) {
  #leGrandJeu, #leMansCityPass {
    text-align: center;
  }
  #leGrandJeu img, #leMansCityPass a{
    margin-left: 0px;
  }
  #leMansCityPass img{
    max-width: 250px;
  }
  #leGrandJeu img{
    max-width: 200px;
  }
}

#textIntro {
  font-size: 1.8em;
  font-weight: normal;
  line-height: 1.3em;
}

#vehicules {
  margin: 10px auto 10px auto;
  max-width: 379px;
}
/** FIN PAGE D'ACCUEIL **/




/** Page JOUER **/
#enSavoirPlusSurVous {
  color: #3c6a71;
  font-size:2em;
  line-height:1.3em;
  font-family: 'Aleo', 'Arial', sans-serif;
  font-weight: bold;
  font-style: italic;
  margin-bottom: 10px;
}

#infosParticipant {
  background-color: #3c6a71;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

#champsObligatoires {
  font-style: italic;
  font-size: 0.8em;
  font-weight: normal;
}

@media (max-width: 576px) {
  #champsObligatoires {
    margin-top: 10px;
  }
}
/** Fin Page JOUER **/




/** Page JEU **/
#memorisez {
  font-size: 2em;
  line-height: 1em;
  margin-bottom: 0.5em;
}
#vite {
  font-size: 2em;
  line-height: 1em;
}
#vousAvezXSec {
  font-size: 1.5em;
  line-height: 1em;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.wrap {
  position: relative;
  /*min-height: 600px;*/
  /*max-height:750px;*/
}

.score {
  display: none;
}

.game-over {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}

.final-score,
.time {
  display: none;
}



.timer {
  text-align: center;
  font-weight: 600;
  font-size: 2em;
  margin-bottom: 0.5em;
}

.game {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 500px;
          perspective: 500px;
  /*min-height: 600px;*/
  /*max-height:750px;*/
  /*height:100%;*/
}


.cache-pc{display:none;}
.cache-mobile{display:block;}

.card {
  float: left;
  width: 20%;
  height: 139px;
  padding: 0px !important;
  text-align: center;
  display: block;
  -webkit-perspective: 500px;
          perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
  border: solid 1px #ef7b68;
}



@media (min-width: 500px) and (max-width: 800px){
.card {
    width: 20%;
    height: 18.666%;
  }
}
@media (max-width: 499px){
.card {
    width: 25%;
    height: 25%;
  }
}
@media (max-width: 800px) {
  .modal .col-md-12{
    padding: 0px !important;
  }
  .imageinscr{display: none;}
  .namepadding{padding-top:20px;}
}
.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: .4s ease-in-out;
  transition: .4s ease-in-out;
  background: white;
}
.card .inside.picked, .card .inside.matched {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
  -webkit-animation-delay: .4s;
          animation-delay: .4s;
}
.card .front, .card .back {
  border: solid 1px #ef7b68;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
}
.card .front img, .card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}
.card .front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

/** Fin Page JEU **/



/** Page PERDU **/

#dommage {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 307px;
}

#texteDommage {
  font-size: 1.2em;
  line-height: 1.2em;
  margin-bottom: 1.5em;
}

/** Fin Page PERDU **/

/** Page GAGNE **/

#bravo {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 303px;
}

#texteBravo {
  font-size: 1.2em;
  line-height: 1.2em;
  margin-bottom: 1.5em;
}

/** Fin Page GAGNE **/

/** Page FINI **/

#fini {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 100%;
}

#texteFini {
  font-size: 1.2em;
  line-height: 1.2em;
  margin-bottom: 1.5em;
}

/** Fin Page FINI **/












.presentationmobile{display: none;}
.presentationpc{display: block;}

.logomobile{display: none;}
.logopc{display: block;}


@media (max-width: 1200px) {
  .logomobile{display: block;}
  .logopc{display: none;}
}


@media (max-width: 800px) {
.cache-mobile{display:none;}
.cache-pc{display:block;}

  .correction-header-mobile{margin-top:100px !important;}
  .presentationmobile{display: block;}
  .presentationpc{display: none;}


  .modal-overlay {background-color: rgba(136, 195, 233, 1) !important;}
  .card .front {
    padding: 0px;
  }


  .wrap {
  height:300px !important;
}

.game {
  height:300px !important;
}



}
.card .back {
  -webkit-transform: rotateX(0);
          transform: rotateX(0);
}
@media (max-width: 800px) {
  .card .back {
    padding: 0px !important;
  }
}

.modal-overlay {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal {
  display: none;
  position: relative;
  width: 100%;
  max-width: 90%;
  min-height: 380px;
  margin: 0 auto;
  top: 10%;
  -webkit-transform: translateY(-10%);
          transform: translateY(-10%);
}


footer {
  height: 20px;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 0;
}
footer .disclaimer {
  line-height: 20px;
  font-size: 12px;
  color: #727272;
  text-align: center;
}
@media (max-width: 767px) {
  footer .disclaimer {
    font-size: 8px;
  }
}


input {width:100% !important;border-radius: 0 !important;margin:10px 0;}








.gamewinn {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
}


.card {
  padding: 0px !important;
}




@media (max-width: 900px) {
  .chebxsdf {
    float: left !important;
    max-width: 50px !important;
    height: 50px !important;
    width: 50px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .chetretitre {
    max-width: 500px !important;
    float: left !important;
    padding: 0 !important;
  }
}

@media (max-width: 899px) {
  .margintop2 {
    margin-top: 20px !important;
  }

  .border-menu-contenu {
    border: 0px !important;
  }
}


@media (max-width: 500px) {
  .chetretitre {
    max-width: 220px !important;
    float: left !important;
    padding: 0 !important;
  }
}