 body {
  background-color: #ddd;
}

#jeu {
  width: 650px;
  height: 500;
  border: 20px solid rgb(10, 52, 91, 0.753);
  margin: auto;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* titre de la page */

.title {
  text-align: center;
  font-size: 20px;
  text-decoration: underline;
  color: rgb(198, 16, 16);
}

/* message d'accueil */

#msg {
  display: flex;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  justify-content: center;
  flex-direction: column;
}

#message{
  text-decoration: underline;  
  text-align: center;
}

#credits {
  margin-top: 220px;
  font-size: 12px;
} 

/* menu pause */

#pause {
  width: 350px;
  height: 250px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: none;
  background: rgb(123, 123, 123, 0.9);
  z-index: 1;
}

#pause1 {
  width: 100px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

#resume {
  cursor: pointer;
  font-size: 1.25em;
  color: #fff;
  text-align: center;
  margin-top: 50px;
}

#restart {
  cursor: pointer;
  font-size: 1.25em;
  color: #fff;
  margin: auto;
  text-align: center;
  margin-top: 50px;
}

/* Game Over */

#gameover {
  position: fixed;
  width: 650px;
  height: 500px;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#won {
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
  display: none;
  width: 135px;
  height: 160px;
}

#lose {
  margin-left: auto;
  margin-right: auto;
  margin-top: 150px;
  display: none;
  width: 125px;
  height: 125px;
}

#restart1 {
  cursor: pointer;
  font-size: 1.25em;
  color: #fff;
  text-align: center;
  margin-top: 120px;
}

/* Carte 1 */
.wrapper,
.card {
  height: 450px;
  float: left;
}

.wrapper {
  margin-top: 50px;
  margin-left: 10px;
}

.card {
  text-align: center;
  transition: all 1s cubic-bezier(0.7, -0.5, 0.3, 1.8);
  transform-style: preserve-3d;
}

.wrapper:hover .card {
  transform: rotateY(180deg);
}

/* Carte 2 */

.wrapper2,
.card2 {
  height: 450px;
  float: right;
}

.wrapper2 {
  margin-top: 50px;
  margin-right: 10px;
}

.card2 {
  text-align: center;
  transition: all 1s cubic-bezier(0.7, -0.5, 0.3, 1.8);
  transform-style: preserve-3d;
}

.wrapper2:hover .card2 {
  transform: rotateY(180deg);
}

/* Texte */

.item-front,
.item-back {
  width: 300px;
  top: 0;
  backface-visibility: hidden;
  box-shadow: 0 0 5px black, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff,
    0 0 25px black, 0 0 30px #fff, 0 0 35px black;
}

.item-front {
  height: 100%;
  border-radius: 25px;
  display: flex;
  background: rgba(63, 116, 181, 0.8);
  
}

.item-back {
  transform: rotateY(180deg);
  position: absolute;
  border-radius: 25px;
  background: rgba(63, 116, 181, 0.8);
}

.item-front h3 {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 35px;
}

.content {
  height: 400px;
  padding: 25px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.item-title h4 {
  text-shadow: 0 0 5px black, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff,
    0 0 25px #fff, 0 0 30px #fff, 0 0 35px black;
  font-size: 25px;
}

.item-text {
  text-shadow: 0 0 5px black, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #fff,
    0 0 25px #fff, 0 0 30px #fff, 0 0 35px black;
}
