/* Styles globaux */
body,
html {
  margin: 0;
  padding: 0;
  background: url("assets/background.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-size: 35px;
}

/* Container principal */
#app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header avec le logo */
#header {
  margin-bottom: 20px;
}

#logo {
  height: 200px; /* Ajustez selon la taille de votre logo */
}

/* Main content */
#main-content {
  width: 100%;
  max-width: 650px; /* Largeur maximale du contenu */
}

/* Section de vote */
#vote-section {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0px;
}

/* Card de Pal */
#card-section {
  flex-shrink: 0;
}

#pal-card {
  width: 90%; /* Taille de l'image de la carte du Pal */
}

/* Section des boutons de vote */
#button-section {
  display: flex;
  flex-direction: column;
}

.button-container {
  position: relative;
  display: inline-block; /* ou 'block' si vous voulez que les conteneurs soient empilés */
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.button-container:hover {
  transform: scale(1.1);
}

.button-number {
  position: absolute;
  width: 28%;
  height: 55%;
  right: 7.7%; /* Ajustez la position droite selon votre design */
  top: 48%; /* Centrer verticalement le chiffre */
  transform: translateY(-50%); /* Alignement vertical précis */
  text-align: center;
}

.vote-button {
  border: none;
  width: 250px; /* Taille des boutons */
  position: relative;
}

/* Section des statistiques */
#statistics-section {
  text-align: center;
  width: 100%;
  visibility: hidden;
  display: flex;
  flex-direction: column; /* ou 'row' selon l'agencement souhaité */
  justify-content: space-around;
}

#statistics {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  max-width: 100%;
}

.stat-image {
  width: 150px; /* Taille du conteneur carré */
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  /*background: url('cards/Beegarde.png') no-repeat center top;*/
  background-size: 130%;
  background-position: 50% 25%;
  margin-right: -10%;
}

#statistics-details {
  font-size: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -60%;
}

.stat-item {
  margin-bottom: 10px;
  text-align: left;
}

.stat-label {
  margin-right: 5px;
  font-weight: 700;
}

.stat-number {
  font-weight: 300;
}

h2 {
  font-size: 35px;
  margin: 0px;
}

.stat-palname {
  font-weight: 800;
}

.stat-bar {
  height: 20px;
  border-radius: 5px;
  width: 0; /* Commencez avec 0 et ajustez avec JS selon les pourcentages */
  transition: width 0.5s ease-in-out; /* Ajoute une transition douce de la largeur */
}

#smash-stat-bar {
  background-color: #4caf50;
  min-width: 2%;
}

#pass-stat-bar {
  background-color: #f44336;
  min-width: 2%;
}

.fade-in {
  animation: fadeInAnimation 0.3s ease-in-out forwards;
}

@keyframes fadeInAnimation {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card-out-left {
  animation: slideOutLeft 0.75s ease-in-out forwards;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

#pal-index-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 0.5%;
}

#current-pal-number {
  border-radius: 25px;
  font-weight: 750;
  font-size: 30px;
  text-align: center;
  max-width: 10%;
  border: 0;
  height: 100%;
  outline: none;
  text-align: center;
  padding-left: 2.5%;
  color:rgb(3, 3, 3)
}

