@charset "utf-8";

body {
  background-color: blanchedalmond;
  background-image: url('../img/page.png');
  font-family: 'Times New Roman', serif;
}

header {
  width: 99%;
  border-bottom: 2px solid #8b4513;
  margin-bottom: .5rem;
  text-align: center;
  background-image: linear-gradient(to top left, whitesmoke, aliceblue);
  background-repeat: repeat-x;
  background-position: bottom;
  height: auto;
}

footer {
  width: var(--max);
  border-bottom: 2px solid #8b4513;
  margin-bottom: .5rem;
  text-align: center;
  background-image: linear-gradient(to bottom right, whitesmoke, aliceblue);
  background-repeat: repeat-x;
  background-position: bottom;
  height: auto;
}

h1 {
  color: white;
  font-family: 'Goudy Old Style', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: #034a91;
}

h2,
h3 {
  color: #034a91;
  font-family: 'Goudy Old Style', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

}

thead {
  font-family: 'Goudy Old Style', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

a,
button,
.button {
  font-family: 'Goudy Old Style', serif;
  text-decoration: none;
  color: whitesmoke;
  background-color: dimgray;
  text-shadow: 1x 1px 2px black;
  border: .2rem outset black;
  font-size: 2.0rem;
  line-height: 2.1rem;
 }


a:hover {
  text-decoration: underline;
}

section {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #136b8b;
  border-radius: .8rem;
  padding: .5rem;
  margin-bottom: .5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

}

footer {
  text-align: center;
  margin-top: .5rem;
  font-style: italic;
}

.icon {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
}

.icon-livre {
  background-image: url('../img/livre.png');
}

.icon-epee {
  background-image: url('../img/armes.png');
}

.icon-bouclier {
  background-image: url('../img/guerier2.png');
}

.icon-livre {
  background-image: url('../img/sort.png');
}

.icon-sort {
  background-image: url('../img/objet.png');
}

.icon-des {
  background-image: url('../img/des.png');
}

.fiche {
  background-color: #f5e7d3;
  border: 2px solid #8b4513;
  border-radius: .8rem;
  padding: .5rem;
  margin: .5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Times New Roman', serif;
  color: #3a2c1a;

}

.fiche h1 {
  text-align: center;
  border-bottom: 1px solid #8b4513;
  padding-bottom: .5rem;
}

.fiche h2 {
  border-bottom: 1px solid #8b0000;
  padding-bottom: .5rem;
}

.fiche .section {
  margin-bottom: 15px;
}

.fiche .section p,
.fiche .section ul {
  margin: .5rem 0;
}

.logoadd {
  background-color: #034a91;
  color: white;
  font-size: 2.8rem;
  line-height: 2.9rem;
  font-weight: bolder;
  text-align: center;
  padding: .5rem;
  margin: .5rem auto;
  border-radius: .8rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: .5rem solid #ffffff;
}

.logoadd .red-text {
  color: #ff0000;
}

.intro {
  font-style: italic;
  text-align: center;
  margin-bottom: 30px;
}

.des {
  top: 1px;
  width: 100px;
  height: 100px;
  background-color: orange;
  margin: .5rem;
  font-size: 4rem;
  border-radius: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid black;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
}

#resudes {
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 200px;
  height: 200px;
  font-size: 18rem;
  font-weight: bold;
  border-radius: 3rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid silver;
  text-shadow: 1px 1px 2px white;
}

#mainContent {
  position: relative;
  overflow: hidden;
}

.fade-out {
  animation: slideOut 0.4s forwards;
}

.fade-in {
  animation: slideIn 0.4s forwards;
}


.combat-zone {
  position: relative;
  width: 90%;
  height: 200px;
  background: url('../img/parchemin.png') no-repeat center/cover;
  border: 2px double #663300;
  overflow: hidden;
  border-radius: .8rem;
  margin-top: 1rem;
}


#animationZone {
  width: 100%;
}

.combat-anim {
  position: absolute;
  width: 100%;
  height: 100%;
}

.combat-anim2 {
  position: absolute;
  width: 100%;
  height: 100%;
}

.attaquant,
.defenseur,
.arme {
  position: absolute;
  bottom: 30px;
  width: 120px;
  height: auto;

}


.attaquant {
  left: 10px;
}

.defenseur {
  right: 10px;
}

.combat-anim2.hit {
  animation: attaque-move 0.8s ease-out forwards;
}

.combat-anim2.miss {
  animation: attaque-move 0.8s ease-out forwards, tremble 0.8s infinite;
}

.bulle {
  position: absolute;
  top: 120px;
  right: 50%;
  background: rgba(176, 98, 3, 0.9);
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #333;
  font-weight: bold;
  color: #222;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  animation: bulle-fade 0.8s ease-out forwards;
}

/* animations */
@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}



@keyframes vibrer {
  0% {
    transform: translate(0px, -2px);
  }

  25% {
    transform: translate(1px, 2px);
  }

  50% {
    transform: translate(-1px, -2px);
  }

  75% {
    transform: translate(2px, 2px);
  }

  100% {
    transform: translate(0px, -2px);
  }
}

@keyframes attaque-move {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(90%);
  }
}

@keyframes tremble {
  0% {
    transform: translatey(5px);
  }

  25% {
    transform: translatey(-5px);
  }

  50% {
    transform: translatey(5px);
  }

  75% {
    transform: translatey(-5px);
  }

  100% {
    transform: translatey(-25px);
  }
}

@keyframes effet-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bulle-fade {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}