@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);
  overflow-x: hidden;
}

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

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

#fond {
  height: 600px;
  width: 100%;
}

#bandeau {
  background-color: rgba(42, 28, 56, 0.4);
  height: 550px;
  width: 100%;
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 150px;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

.carte {
  flex: 0 0 auto;
  background-color: rgb(42, 28, 56);
  border: 2px solid black;
  border-radius: 16px;
  height: 470px;
  width: 300px;
  display: flex;
  justify-content: center;
  scroll-snap-align: center;
}

.carte:active {
  transform: scale(0.98);
}

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

input[type="radio"] {
  display: none;
}

.titre {
  font-family: "enchantedland";
  font-size: 40px;
  color: white;
  padding-top: 20px;
}

#imageAme,
#imageKael,
#imageKamiss,
#imageOva,
#imageInary,
#imageFayra,
#imageFiredagger,
#imageMarcus,
#imageMeira,
#imageDocteur,
#imageMage {
  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;
}

#imageAme {
  background-image: url(../../images/ame.png);
}

#animation {
  color: white;
  width: 100%;
  max-width: 1500px;
  padding-bottom: 50px;
  margin: 0 auto;
  position: relative;
}

#persoAme,
#persoKael,
#persoKamiss,
#persoOva,
#persoInary,
#persoFayra,
#persoFiredagger,
#persoMarcus,
#persoMeira,
#persoDocteur,
#persoMage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  padding: 50px 0;
}

#radioAme:checked ~ #animation #persoAme {
  opacity: 1;
  pointer-events: auto;
}

#radioKael:checked ~ #animation #persoKael {
  opacity: 1;
  pointer-events: auto;
}

#radioKamiss:checked ~ #animation #persoKamiss {
  opacity: 1;
  pointer-events: auto;
}

#radioOva:checked ~ #animation #persoOva {
  opacity: 1;
  pointer-events: auto;
}

#radioInary:checked ~ #animation #persoInary {
  opacity: 1;
  pointer-events: auto;
}

#radioFayra:checked ~ #animation #persoFayra {
  opacity: 1;
  pointer-events: auto;
}

#pres {
  display: grid;
  grid-template-columns: 5% 40% 5% 45% 5%;
  justify-content: space-between;
}

#ppAme {
  background-image: url(../../images/ame.png);
  background-color: white;
  background-position: center 17%;
  height: 600px;
  position: relative;
  grid-column: 2;
}

#ppKael,
#ppKamiss,
#ppOva,
#ppInary,
#ppFayra,
#ppFiredagger,
#ppMarcus,
#ppMeira,
#ppDocteur,
#ppMage {
  background-color: rgb(98, 61, 105);
  background-position: center 17%;
  height: 600px;
  position: relative;
  grid-column: 2;
}

#ppAme::after,
#ppKael::after,
#ppKamiss::after,
#ppOva::after,
#ppInary::after,
#ppFayra::after,
#ppFiredagger::after,
#ppMarcus::after,
#ppMeira::after,
#ppDocteur::after,
#ppMage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(13, 10, 20), transparent 15%),
    linear-gradient(to bottom, rgb(13, 10, 20), transparent 15%),
    linear-gradient(to left, rgb(13, 10, 20), transparent 15%),
    linear-gradient(to right, rgb(13, 10, 20), transparent 15%);
  pointer-events: none;
}

#presPerso {
  display: flex;
  flex-direction: column;
  gap: 50px;
  justify-content: start;
  color: white;
  grid-column: 4;
}

.nom,
.titreClasse,
.titreRace,
.titreStat {
  font-family: "enchantedland";
  font-size: 60px;
  color: white;
}

.description {
  font-family: "roboto";
  font-size: 20px;
  text-align: left;
}

.cadre {
  width: 90%;
  height: fit-content;
  background-color: rgba(42, 28, 56, 0.4);
  border-radius: 16px;
}

.infoCadre {
  padding: 24px;
  display: grid;
  grid-template:
    "classe race" auto
    "stat stat" auto / 1fr 1fr;
  column-gap: 16px;
  row-gap: 50px;
  text-align: left;
}

.classe {
  grid-area: classe;
}

.race {
  grid-area: race;
}

.stat {
  grid-area: stat;
}

.descriptionStat {
  display: grid;
  grid-template-columns: 5% 25% 5% 15% 25% 5% 20%;
  justify-content: center;
  align-items: start;
  text-align: left;
  width: 100%;
  font-family: "roboto";
  font-size: 20px;
  padding-top: 24px;
}

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