html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

body {
  font-family: "Trebuchet MS", sans-serif;
  background-color: #2c2c2c;

}

#carte-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: hidden;
}

.carte {
  width: 500px;
  aspect-ratio: 5 / 7;
  margin: 15px;
  perspective: 1000px;
  flex-shrink: 0;
}

.carte-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.1s;
  transform: rotateY(0deg);
}

.carte-inner.is-flipped {
  transform: rotateY(180deg);
}

.carte-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  overflow: hidden;
}

.carte-face::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  filter: blur(15px);
}

.carte-back {
  transform: rotateY(0deg);
  background-size: cover;
  background-position: center;
}

.carte-front {
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
  position: relative;
  --gradient-x: 50%;
  --gradient-y: 50%;
}

.holo::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    red,
    transparent,
    orange,
    transparent,
    yellow,
    transparent,
    green,
    transparent,
    cyan,
    transparent,
    blue,
    transparent,
    violet,
    transparent,
    red,
    transparent
  );
  background-size: 200% 200%;
  background-position: var(--gradient-x) var(--gradient-y);
  mix-blend-mode: screen;
  opacity: 0.33;
  pointer-events: none;
}

.carte-contour {
  margin: 20px;
  height: 660px;
  outline: solid 20px #f8c932;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.carte-head {
  display: flex;
  justify-content: space-between;
  height: 8%;

}

.carte-head-left {
  display: flex;
  margin-left: 20px;
  align-items: end;
}

.carte-head-left h2 {
  font-size: 30px;
  -webkit-text-stroke: 0.6px white;
  color: black;
}

.carte-head-left *{
  margin: 0;
}

.carte-head-right *{
  margin: 0;
}

.carte-head-right {
  display: flex;
  margin-right: 10px;
  align-items: end;
}

.carte-head-right h2 {
  font-size: 30px;
  -webkit-text-stroke: 0.6px white;
  color: black;
}

.carte-head-right p {
  font-size: 12px;
  -webkit-text-stroke: 0.2px white;
  color: black;
  margin-bottom: 5px;
}

.carte-head-right img {
  display: flex;
  margin-left: 10px;
  height:40px;
}

.carte-body {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
  height: 82%;
}

.carte-body-image-container {
  background-size: cover;
  background-position: center;
  border: 10px solid #2c2c2c;
  border-radius: 10px;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  height: 600px;
}

.carte-body-ability {
  display: flex;
  flex-direction: column;
  margin-bottom: 25px;
}

.carte-body-ability * {
  margin:0;
}
.carte-body-ability-head {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  align-items: center;
}

.carte-body-ability-head * {
  margin:0;
}

.carte-body-ability-head-title strong {
  padding: 2px;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 15px;
  border: 2px solid #2c2c2c;
  background-color: rgb(153, 12, 12);
  font-size: 20px;
  color:white;
  font-style: italic;
}

.carte-body-ability-head-value strong {
  padding: 2px;
  font-size: 25px;
  color:rgb(153, 12, 12);
  -webkit-text-stroke: 0.4px white;
}

.carte-body-ability p {
  font-size: 15px;
  -webkit-text-stroke: 0.2px white;
  color: black;
  text-align: justify;
}

.carte-body-attack {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.carte-body-attack * {
  margin:0;
}
.carte-body-attack-head {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.carte-body-attack-head * {
  margin:0;
}


.carte-body-attack img {
  height:30px;
}

.carte-body-attack-head-title strong {
  padding: 2px;
  font-size: 25px;
  color:black;
  -webkit-text-stroke: 0.4px white;
}

.carte-body-attack-head-value strong {
padding: 2px;
font-size: 25px;
color:black;
-webkit-text-stroke: 0.4px white;
}

.carte-body-attack p {
  font-size: 15px;
  -webkit-text-stroke: 0.2px white;
  color: black;
  text-align: justify;
}


.carte-body-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 10px;
  gap: 5px;
}

.carte-body-stats-weakness,
.carte-body-stats-resistance,
.carte-body-stats-retreat
{
  display: flex;
  justify-content: space-around;
  padding: 1px 5px 0 5px;
  background-color: lightgrey;
  border: 2px solid #2c2c2c;
  width: 30%;
  height:30px;
  align-items: center;
  align-self: center;
  border-radius: 15px;
}

.carte-body-stats * {
  margin: 0;
}

.carte-body-stats img {
  height:20px;
}

.carte-body-stats p {
  font-size: 12px;
}

.carte-foot {
  display: flex;
  justify-content: space-between;
  height: 10%;
  align-items: center;
  gap: 50px;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.carte-foot-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.carte-foot-left img {
  height: 40px;
}

.carte-foot p {
  margin:0;
  font-size: 10px;
  -webkit-text-stroke: 0.05px white;
  color: black;
  text-align: right;
}