* {
  box-sizing: border-box;
}

html, body {
 height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-image: url("images/fond.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-bottom: 100px;
}

#main {
  flex-grow: 1;
  width: 100%;
  min-height: 100vh;
}

@font-face {
  font-family: 'NarutoFont';
  src: url('fonts/njnaruto.ttf') format('truetype');
}

@font-face {
  font-family: 'OnepieceFont';
  src: url('fonts/onepiece.ttf') format('truetype');
}

@font-face {
  font-family: 'Ace2';
  src: url('fonts/animeace2_bld.ttf') format('truetype');
}

.decoButton {
  font-family: 'NarutoFont', sans-serif;
  font-size: 2em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  background: none;
  padding: 5px 10px;
}

.decoButton span {
  background: linear-gradient(90deg, #FFD700, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #013A63;
  background-clip: text;
}

.hidden {
  display: none;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(191, 191, 249);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  transition: opacity 1.2s ease, backdrop-filter 1.2s ease;
}

#overlay.active {
  opacity: 1;
  backdrop-filter: blur(15px);
}

#konoha {
  position: fixed;
  top: 50%;
  right: 5em;
  transform: translateY(-50%);
  z-index: 1000;
}

.center, .background {

  
  justify-content: center;
  align-items: center;
       
  
} 

#choice {
  display: flex;              /* Manquant ! */
  flex-direction: column;
  justify-content: center;   /* Centrage vertical */
  align-items: center;       /* Centrage horizontal */
  width: 100%;
  min-height: 100vh;         /* Ajoute ça pour que le centrage vertical fonctionne sur toute la page */
  padding: 40px 20px;
  gap: 20px;
}

.title {
  font-family: 'Ace2';
  background: #FFD700;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #013A63;
  font-size: 2em;
}

.description {
  font-family: 'Ace2';
  background: linear-gradient(90deg, #FF4500, #FFD700);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px black;
  font-size: 20px;
}

/* Image container */
.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Card styling */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 30px;
  max-width: 300px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Image inside buttons/cards */
.imgButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 20px;
}

.imgButton img,
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}


li {
  color : white;
}
.cardChara
{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: 30px;
  /* max-width: 300px; */
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
 }
 img{
  border-radius: 20px;
 }
#toggleMusic {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 22px;
  padding: 12px 14px;
  border: 2px solid #2c2c2c;
  background-image: linear-gradient(145deg, #FF4500, #FFD700);
  border-radius: 8px;
  font-family: 'NinjaNaruto', sans-serif;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: all 0.2s ease-in-out;
}

#toggleMusic:hover {
  background-image: linear-gradient(145deg, #e8caa4, #f4e2d8);
  transform: scale(1.05);
}