body {
    background-image: url("https://static.vecteezy.com/ti/vecteur-libre/p1/4775601-poker-table-vector-illustration-isolated-poker-or-black-jack-table-with-green-carpet-realistic-casino-online-poker-table-element-gambling-room-concept-design-vector-illustration-vectoriel.jpg");
    background-size: 1300px;
    background-repeat: no-repeat;
    background-position: 10% 10%;
    font-family: "pixelify sans", sans sherif;
}

.titre {
    display: flex;
    justify-content: center;
    font-size: 75px;   
    margin: 0;
    padding: 0;
    color:#FF0000
}

p {
    display: flex;
    justify-content: center;
    font-size: 25px
}

.memory-game {
  width: 640px;               
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  grid-template-rows: repeat(3, 1fr);   
  grid-gap: 10px;
}

.memory-card {
  width: 100%;                  
  height: 150px;                
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  cursor: pointer;
  border-radius: 10px;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.memory-card img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  backface-visibility: hidden;
}

.memory-card .front-face {
  transform: rotateY(180deg);
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease; 
}


h1 {
    display: flex;
    justify-content: center;
}

.button {
  display: inline-block;
  border: 0;
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgb(220 0 0 / 100%);
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 20%),
    rgb(0 0 0 / 20%) 30%,
    rgb(0 0 0 / 0%)
  );
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 60%),
    inset -2px -2px 3px rgb(0 0 0 / 60%);
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
}

.button:hover {
  background-color: rgb(255 0 0 / 100%);
}

.button:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 60%),
    inset 2px 2px 3px rgb(0 0 0 / 60%);
}

#next-button {
  display: none; /* caché au début */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* mêmes styles que .styled pour l'apparence */
  display: inline-block;
  border: 0;
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgb(220 0 0 / 100%);
  background-image: linear-gradient(
    to top left,
    rgb(0 0 0 / 20%),
    rgb(0 0 0 / 20%) 30%,
    rgb(0 0 0 / 0%)
  );
  box-shadow:
    inset 2px 2px 3px rgb(255 255 255 / 60%),
    inset -2px -2px 3px rgb(0 0 0 / 60%);
  cursor: pointer;
  text-decoration: none;
}

#next-button:hover {
  background-color: rgb(255 0 0 / 100%);
}

#next-button:active {
  box-shadow:
    inset -2px -2px 3px rgb(255 255 255 / 60%),
    inset 2px 2px 3px rgb(0 0 0 / 60%);
}
