@font-face {
  font-family: 'Greconian';
  src: url('../fonts/GreconianRegular.woff') format('woff'),
       url('../fonts/Greconian.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BlockBarthold';
  src: url('../fonts/BlockBarthold.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1; /* derrière le contenu */
  pointer-events: none;
}

  
body {
    font-family: 'Greconian', sans-serif;
    margin-top: 200px;
    background-color: #ebdcbd;
    background-size: cover;
    background-repeat: no-repeat;
  
}

h1 {
 
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    color: #321b0d;
    font-size: 4.7rem;
    opacity: 0;
    animation: h1 2s ease-in forwards;
  }

  @keyframes h1 {
  to {
    opacity: 1;
  }
}


h {
    background-color: #8b5e3c;
    padding: 2px 4px;
    border-radius: 5px;
    color: #ffffff;
    display: inline-block;
    margin: 15px auto;
    text-align: center;
    margin-left: 35px;

  }

  v {
    background-color: #8b5e3c;
    padding: 2px 4px;
    border-radius: 5px;
    color: #ffffff;
    display: inline-block;
    margin: 15px auto;
    text-align: center;
    margin-left: 35px;

  }




p {
  font-family: 'Inter', sans-serif;
  text-align: center;
  color: #ffffff;
  font-weight: bold;
}


#player1-image {
    width: 150px;
    height: 250px;
  }

#player2-image {
    width: 150px;
    height: 250px;
  }


.textejoueur {

    font-size: 2.2rem; /* ou 48px, ou 300% */
    text-align: center;
  }


#players-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0 235px;
    box-sizing: border-box;
    margin-top: 60px; 
}

#player1-selection,
#player2-selection {
    width: 250px;
    height: 400px; 
    padding: 20px;
    border-radius: 1.5rem;
    background-color: #c8ae96b0;
    border: 2px solid #96512c00;
    
}

#player1-selection {
  opacity: 0;
  transform: translateX(100px);
  animation: slideFadeInPlayer1  2.4s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}


@keyframes slideFadeInPlayer1 {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#player2-selection {
  opacity: 0;
  transform: translateX(-100px); /* décalé à gauche */
  animation: slideFadeInPlayer2 2.4s cubic-bezier(0.25, 1, 0.5, 1) 1s forwards;
}

/* Animation */
@keyframes slideFadeInPlayer2 {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.faction-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.arrow {
    font-size: 15px;
    padding: 20px 1px;
    cursor: pointer;
}

button {
    padding: 10px 15px;
    background-color: #ffffff64;
    color: rgb(94, 94, 94);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #d8d8d7;
    transform: scale(0.9);
    background: radial-gradient(circle at 10% 20%, #b0afae 20%, #afa59f 100%);
    transition: 0.5s;
}



#colonne-milieu {
    width: 300px;
    background-color: transparent;
    border: none;
    padding-top: 2px;
}


#start-game {
  margin-top: 30px;
  width: 200px;
  height: 70px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  border-radius: 1rem;
  border: none;
  background: #8b5e3c;
  position: relative;
  align-content: center;
  z-index: 10;
  font-family: 'Greconian', serif;
  opacity: 0;
  transform: translateY(100px) scale(1);
  animation: slideFadeInStartButton 1.5s cubic-bezier(0.25, 1, 0.5, 1) 1.4s forwards;
  transition: transform 0.3s ease, background 0.3s ease;
}

@keyframes slideFadeInStartButton {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


#start-game:hover {
  transform: translateY(0) scale(0.9);
  background: radial-gradient(circle at 10% 20%, #c8a068 20%, #f3844c 100%);
}



select {
    font-size: 16px;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.halo {
    animation: glow 2s infinite alternate;
    filter: drop-shadow(0 0 70px rgba(255, 255, 255, 0.2));
  }
  
  @keyframes glow {
    from {
      filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
    to {
      filter: drop-shadow(0 0 25px rgb(255, 255, 255));
    }
  }
  
.halo:hover {
    transform: scale(1.0);
    transition: 0.5s;
   
  }
