@font-face {
  font-family: "enchantedland";
  src: url("../../assets/fonts/enchantedland/EnchantedLand.otf")
    format("opentype");
}

@font-face {
  font-family: "roboto";
  src: local("roboto"),
    url("../../assets/fonts/roboto/Roboto-VariableFont_wdth,wght.ttf")
      format("truetype");
}

body {
  background-color: rgb(13, 10, 20);
}

a {
  text-decoration: none;
}

p {
  margin: 0;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  color: white;
  background-color: rgb(105, 60, 97);
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  font-family: "roboto";
  box-shadow: 0px 4px 4px rgb(13, 10, 20);
  margin-bottom: 60px;
}

#titre {
  display: flex;
  padding-left: 40px;
}

#maralye {
  border-radius: 16px;
  background-color: rgb(42, 28, 56);
  height: 50px;
  width: 80px;
  top: 5px;
  font-family: "enchantedland";
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  position: absolute;
  color: white;
  text-decoration: none;
}

#maralye:active {
  font-size: 22px;
  background-color: rgb(237, 215, 240);
}

#onglets {
  display: flex;
  gap: 24px;
  top: 5px;
  justify-content: flex-end;
  align-items: center;
  font-size: 16px;
  padding-right: 40px;
}

.pages {
  border-radius: 16px;
  color: white;
  border: 0px;
  font-size: 16px;
  background-color: rgb(42, 28, 56);
  height: 50px;
  width: 80px;
  font-family: "roboto";
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.pages:hover,
#maralye:hover {
  background-color: white;
  color: rgb(42, 28, 56);
}

.pages:active {
  background-color: rgb(237, 215, 240);
  font-size: 15px;
}

#pj {
  display: flex;
  justify-content: center;
  font-family: enchantedland;
  font-size: 60px;
  margin: 16px 0px;
  color: white;
  padding: 124px 0 64px 0;
  width: 100%;
}

#pnj {
  display: flex;
  justify-content: center;
  font-family: enchantedland;
  font-size: 60px;
  margin: 16px 0px;
  color: white;
  padding: 64px 0 64px 0;
  width: 100%;
}

#avatar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  padding: 0;
  margin: 0 0;
  @media (max-width: 2000px) {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin: auto;
  }
  @media (max-width: 864px) {
    grid-template-columns: repeat(1, 1fr);
    width: 100%;
    margin: auto;
  }
}

.cartes {
  width: 100%;
  height: 500px;
  perspective: 5000px;
  position: relative;
  cursor: pointer;
}

.flip {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.cartes.flipped .flip {
  transform: rotateY(-180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 4px 4px 4px black;
  background-color: rgb(42, 28, 56);
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
}

.front:hover {
  box-shadow: 0 0 10px #854c6e, 0 0 20px #854c6e, 0 0 30px #854c6e;
}

.back:hover {
  box-shadow: 0 0 10px #854c6e, 0 0 20px #854c6e;
}

.front {
  padding: 0;
  align-items: center;
}

.back {
  font-family: "roboto";
  font-size: 16px;
  transform: rotateY(-180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  box-sizing: border-box;
  padding-top: 20px;
}

.back:active {
  background-color: rgb(25, 15, 36);
}

.textFront,
.titreBack {
  font-weight: bold;
  font-family: "enchantedland";
  color: white;
  margin: 0px;
}

.titreBack span:hover {
  font-family: "enchantedland";
  color: white;
  font-size: 110%;
}

.titreBack span:active {
  font-size: 100%;
}

.textFront {
  font-size: 70px;
  padding: 50px;
  text-shadow: 4px 4px 2px #2a1c38, 6px 6px 2px #2a1c38, 8px 8px 2px #2a1c38;
}

.textFront a,
.titreBack a {
  color: white;
}

.titreBack {
  font-size: 60px;
}

.textBack {
  display: grid;
  font-size: 20px;
  grid-template-columns: 5% 25% 5% 15% 25% 5% 20%;
  justify-content: center;
  align-items: start;
  text-align: left;
  width: 100%;
  height: 75%;
  color: white;
}

.firstCol {
  grid-column: 2;
  font-weight: bold;
}

.secondCol {
  grid-column: 3;
  text-align: center;
}

.thirdCol {
  grid-column: 5;
  font-weight: bold;
}

.fourthCol {
  grid-column: 6;
  text-align: center;
}

.faceCarte {
  display: flex;
  justify-content: center;
  align-items: center;
  background-position: center 15%;
  background-size: cover;
  height: 100%;
  width: 100%;
  border-radius: 16px;
  background-repeat: no-repeat;
  text-transform: capitalize;
}

.faceCarte:active {
  height: 99%;
  width: 99%;
}

#feeCarte {
  background-image: url("../../images/fee.jpg");
}

#loupgarouCarte {
  background-image: url("../../images/loupgarou.jpg");
}

#vampireCarte {
  background-image: url("../../images/vampire.jpg");
}

#trollCarte {
  background-image: url("../../images/troll.jpg");
}

#elfeCarte {
  background-image: url("../../images/elfe.jpg");
}
