
/************************************************************************************/
/************************************ FONT FACE *************************************/
/************************************************************************************/

@font-face {
    font-family: "Amatic SC";
    src: url('../fonts/Amatic_SC/AmaticSC-Regular.ttf');
}
@font-face {
    font-family: "Amatic SC";
    font-weight: 700;
    src: url('../fonts/Amatic_SC/AmaticSC-Bold.ttf');
}
@font-face {
    font-family: "Dosis";
    font-weight: 800;
    src: url('../fonts/Dosis/Dosis-Bold.ttf');
}
@font-face {
    font-family: "Dosis";
    font-weight: 400;
    src: url('../fonts/Dosis/Dosis-Regular.ttf');
}
@font-face {
    font-family: "Press Start 2P";
    font-weight: 400;
    src: url('../fonts/Press_Start_2P/PressStart2P-Regular.ttf');
}

/************************************************************************************/

* {
  box-sizing: border-box;
}

.preload {
  visibility: hidden;
  position: absolute;
}

html, body {
  height: 100%;
}

body {
  background: black;
  min-height: 100%;
  font-family: "Amatic SC","Dosis", sans-serif;
}

header {
  height: 75px;
  padding: 15px;
}

header .logo {
  height: 40px;
}

header .filiere {
  background: #fafafa;
  font-size: 2em;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px;
  color: #000;
}

header .timer {
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  font-size: 1.5em;
  color: #fafafa;
}

.wrap {
  position: relative;
  height: 100%;
  min-height: 500px;
  /*padding-bottom: 20px;*/
  background: url("../img/back.jpg") repeat;
}

.selection {
  padding-right: 5em;
  padding-left: 5em;
}

.selection h2 {
  font-family: "Dosis", sans-serif;
  font-size: 3em;
  text-align: center;
  color: #fafafa;
  margin-top: 0;
}

.selectufr {
  max-height: 100%;
  max-width: 100%;
  cursor: pointer;
}

.game {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 500px;
          perspective: 500px;
          margin: 0 auto;
  min-height: 95%;
  height: 95%;
  width: 90%;
}

@-webkit-keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

@keyframes matchAnim {
  0% {
    background: #bcffcc;
  }
  100% {
    background: white;
  }
}

.card {
  float: left;
  width: 25%;
  height: 22%;
  padding: 5px;
  text-align: center;
  display: block;
  -webkit-perspective: 500px;
          perspective: 500px;
  position: relative;
  cursor: pointer;
  z-index: 50;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 800px) {
  .card {
    width: 25%;
    height: 22%;
  }
}
.card .inside {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transition: .4s ease-in-out;
  -moz-transition: .4s ease-in-out;
  transition: .4s ease-in-out;
  background-color: white;
}
.card .inside.picked, .card .inside.matched {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
          transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
          transform: rotateY(180deg);
}
.card .inside.matched {
  -webkit-animation: 1s matchAnim ease-in-out;
  -moz-animation: 1s matchAnim ease-in-out;
          animation: 1s matchAnim ease-in-out;
    -webkit-animation-direction: alternate;
    -moz-animation-direction: alternate;
    animation-direction: alternate;         
  -webkit-animation-delay: .4s;
  -moz-animation-delay: .4s;
          animation-delay: .4s;
}
.card .front, .card .back {
  border: 1px solid black;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow: hidden;
}
.back1  {
  background: url("../img/ufr1.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back2  {
  background: url("../img/ufr2.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back3  {
  background: url("../img/ufr3.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back4  {
  background: url("../img/ufr4.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back5  {
  background: url("../img/ufr5.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back6  {
  background: url("../img/ufr6.png") center;
  background-size: 100%;
  background-color: #293068;
}
.back7  {
  background: url("../img/ufr7.png") center;
  background-size: 100%;
  background-color: #293068;
}
.card .back img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  max-height: 100%;
}
.card .front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
  font-family: "Dosis", sans-serif;
  font-weight: 800;
  font-size: 1.6em;
  text-transform: uppercase;
  padding-top: 18%;
  line-height: 1em;
}

.card .front span {
  font-size: 0.7em;
}

@media (max-width: 800px) {
  .card .front {
    padding: 5px;
  font-size: 1em;
  }
}
@media (max-width: 800px) {
  .card .back {
    padding: 10px;
  }
}

.modal-overlay {
  display: none;
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal {
  display: none;
  position: relative;
  width: 500px;
  height: 400px;
  max-height: 90%;
  max-width: 90%;
  min-height: 380px;
  margin: 0 auto;
  background: white;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  padding: 30px 10px;
}
.modal .modaltitle {
  padding-top: 0.5em;
  font-size: 3.5em;
  text-align: center;
  font-family: "Amatic SC", sans-serif;
  color: #4d4d4d;
  text-shadow: 0px 3px 0 black;
}
.modal .modalsub {
  font-size: 2em;
  text-align: center;
}

@media (max-width: 480px) {
  .modal .modaltitle {
    font-size: 2em;
  }
}
.modal .restart {
  font-family: "Amatic SC", sans-serif;
  margin: 30px auto;
  padding: 20px 30px;
  display: block;
  font-size: 30px;
  border: none;
  background: #2f2f2f;
  background: -webkit-linear-gradient(#2f2f2f, #222);
  background: linear-gradient(#2d2d2d, #222);
  border: 1px solid #222;
  border-radius: 5px;
  color: white;
  text-shadow: 0px 1px 0 black;
  cursor: pointer;
}
.modal .restart:hover {
  background: -webkit-linear-gradient(#222, black);
  background: linear-gradient(#222, black);
}
.modal .retour {
  font-family: "Amatic SC", sans-serif;
  margin: 30px auto;
  padding: 20px 30px;
  display: block;
  font-size: 30px;
  border: none;
  background: #2f2f2f;
  background: -webkit-linear-gradient(#2f2f2f, #222);
  background: linear-gradient(#2d2d2d, #222);
  border: 1px solid #222;
  border-radius: 5px;
  color: white;
  text-shadow: 0px 1px 0 black;
  cursor: pointer;
}
.modal .retour:hover {
  background: -webkit-linear-gradient(#222, black);
  background: linear-gradient(#222, black);
}
.modal .message {
  text-align: center;
}
.modal .message a {
  text-decoration: none;
  color: #28afe6;
  font-weight: bold;
}
.modal .message a:hover {
  color: #56c0eb;
  border-bottom: 1px dotted #56c0eb;
}
.modal .share-text {
  text-align: center;
  margin: 10px auto;
}
.modal .social {
  margin: 20px auto;
  text-align: center;
}
.modal .social li {
  display: inline-block;
  height: 50px;
  width: 50px;
  margin-right: 10px;
}
.modal .social li:last-child {
  margin-right: 0;
}
.modal .social li a {
  display: block;
  line-height: 50px;
  font-size: 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.modal .social li a.facebook {
  background: #3b5998;
}
.modal .social li a.facebook:hover {
  background: #4c70ba;
}
.modal .social li a.google {
  background: #D34836;
}
.modal .social li a.google:hover {
  background: #dc6e60;
}
.modal .social li a.twitter {
  background: #4099FF;
}
.modal .social li a.twitter:hover {
  background: #73b4ff;
}

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;
  }
}
