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

@font-face {
    font-family: "Cubadak";
    src: url('../fonts/Cubadak/Cubadak.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;
  display: none;
}

html, body {
  height: 100%;
}

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

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

header .logo {
    height: 60px;
    position: absolute;
    top: 20px;
    left: 30px;
}

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/bg.jpg");
  background-size: cover;
}

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

.selection h2 {
  font-family: "Cubadak","Dosis", sans-serif;
  font-size: 7em;
  font-style: italic;
  transform: skewY(-10deg);
  text-shadow: 8px 8px #004d9d;
  line-height: .7em;
  text-align: left;
  color: #fafafa;
  margin-top: 0;
  margin-bottom: .7em;
}
.selection h2 span {
  font-size: 50%;
  vertical-align: super;
}
.selection .aliens {
  position: absolute;
  top: 2em;
  right: 1em;
}
.selection .aliens img {
  width: 350px;
}
.selection .fusee {
  position: absolute;
  top: 3em;
  left: 12em;
}
.selection .fusee img {
  width: 360px;
}
.selection .astre {
position: absolute;
    overflow: hidden;
    bottom: 3em;
    right: 0em;
    width: 130px;
}
.selection .astre img {
  width: 200px;
}

.selectufr {
  /*max-height: 100%;*/
  /*max-width: 100%;*/
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  width: 190px;
  cursor: pointer;
  border-radius: 100%;
  border: 2px solid white;
}
.selectufr[data-id='1'] {
  background-color: #f7a600;
}
.selectufr[data-id='2'] {
  background-color: #00406c;
}
.selectufr[data-id='3'] {
  background-color: #ca4ed4;
}
.selectufr[data-id='4'] {
  background-color: #00abe9;
}
.selectufr[data-id='5'] {
  background-color: #078bcc;
}
.selectufr[data-id='6'] {
  background-color: #a9c30c;
}
.selectufr[data-id='7'] {
  background-color: #de2463;
}
.selection .row .col-xs-offset-1 {
  margin-left: 12.5%;
}
.selectufr p {
  font-family: "Cubadak","Dosis", sans-serif;
  font-style: italic;
  color: #fafafa;
  font-size: 2.3em;
  text-align: center;
  line-height: .9em;
  font-weight: 500;
  -ms-transform: skewY(-10deg); /* IE 9 */
  -webkit-transform: skewY(-10deg); /* Safari 3-8 */
  transform: skewY(-10deg);
}
.selectufr p span {
  font-weight: 300;
  font-size: 65%;
  line-height: .9em;
}
.selectufr p big {
  font-size: 180%;
  line-height: .9em;
}

.game {
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 500px;
          perspective: 500px;
          margin: 0 auto;
position: absolute;
    top: 130px;
    left: 64px;
  height: 80%;
  width: 88%;
}

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

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

.card {
  float: left;
  width: 180px;
  height: 150px;
  padding: 7px;
  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: 20%;
    height: 22%;
  }
}
.card .inside {
  width: 100%;
  height: 100%;
   display: flex;
  align-items: center;
  justify-content: center;
  -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 {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  position: absolute;
  overflow: hidden;
}

.card .back {
  width: 100%;
  height: 100%;
}
.back1  {
  background: url("../img/ufr1.png") center no-repeat;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back2  {
  background: url("../img/ufr2.png") center;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back3  {
  background: url("../img/ufr3.png") center;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back4  {
  background: url("../img/ufr4.png") center no-repeat;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back5  {
  background: url("../img/ufr5.png") center;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back6  {
  background: url("../img/ufr6.png") center;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.back7  {
  background: url("../img/ufr7.png") center;
  background-size: 100%;
    background-color: #223345;
    border: solid 2px #424f5c;
}
.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%;
}

.modalwindow {
  display: none;
  min-height: 680px;
  margin: 2em auto;
  padding: 30px 10px;
}
.modalwindow .modaltitle {
  padding-top: 0.5em;
  font-size: 3.5em;
  text-align: center;
  font-family: "Cubadak" , sans-serif;
  color: #fafafa;
  text-shadow: 0px 3px 0 #004d9d;
}
.modalwindow .modalsub1 {
  font-size: 7em;
  color: #1cbae1;
  font-family: "Cubadak" , sans-serif;
  text-align: center;
}
.modalwindow .modalsub2 {
  font-size: 2.1em;
  color: #fafafa;
  font-family: "Cubadak" , sans-serif;
  text-align: center;
}

@media (max-width: 480px) {
  .modalwindow .modaltitle {
    font-size: 2em;
  }
}
.modalwindow .restart {
  font-family: "Cubadak" , sans-serif;
  margin: 30px auto;
  padding: 90px 20px 0px 20px;
  display: block;
  font-size: 40px;
  border: none;
    width: 170px;
    height: 150px;
  background: #fafafa;
  color: #1cbae1;
  cursor: pointer;
}
.modalwindow .retour {
  font-family: "Cubadak" , sans-serif;
  margin: 30px auto;
  padding: 90px 20px 0px 20px;
  display: block;
  font-size: 40px;
  border: none;
    width: 170px;
    height: 150px;
  background: #fafafa;
  color: #1cbae1;
  cursor: pointer;
}
.modalwindow.retour:hover {
  background: -webkit-linear-gradient(#222, black);
  background: linear-gradient(#222, black);
}
.modalwindow.message {
  text-align: center;
}
.modalwindow.message a {
  text-decoration: none;
  color: #28afe6;
  font-weight: bold;
}
.modalwindow.message a:hover {
  color: #56c0eb;
  border-bottom: 1px dotted #56c0eb;
}

