#quizFilter, #percentFilter, #successFilter {
  margin: 5px;
  padding: 5px;
  border-radius: 8px;
}

.filters-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px auto;
  margin-bottom: 20px;
  text-align: center;
}

.filters-container label {
  margin-right: 5px;
  font-weight: bold;
}

table {
  margin: 0 auto;
  border-collapse: collapse;
}

table td, table th {
  padding: 10px;
  text-align: center;
}

#scoreTable {
  margin: 0 auto;
  text-align: center;
}

#mathJoke {
    white-space: pre-line;
}

/* Conteneur global des badges */
#badgesSection {
  display: flex;
  justify-content: center;   /* centre horizontalement */
  margin: 20px 0;
}

/* Encadré orange */
.badges-box {
  background-color: #ffffff; 
  border: 3px solid #ec8f05;        /* bordure orange */
  border-radius: 15px;       /* coins arrondis */
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* petit effet relief */
  text-align: center;
  max-width: 600px;
  width: 600px;
}

/* Titre */
.badges-box h2 {
  margin-bottom: 15px;
  color: #ec8f05;
}

/* Zone des badges */
#userBadges {
  display: flex;
  justify-content: center;   /* centre les badges */
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Style des badges */
#userBadges img {
  width: 60px;
  height: 60px;
  border-radius: 50%;        /* rond */
  border: 2px solid #ec8f05; /* contour orange */
  padding: 5px;
  background: white;
  transition: transform 0.2s ease;
}

#userBadges img:hover {
  transform: scale(1.1);
}

/* Section mathcoins */
#mathcoinsSection {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.mathcoins-box {
  background: #ffffff;
  border: 2px solid #ec8f05; /* ton orange */
  border-radius: 15px;
  padding: 15px;
  width: fit-content;
  margin: 20px auto;         /* centré */
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mathcoins-box h2 {
  margin-bottom: 10px;
  color: #ec8f05;
}

.mathcoins-balance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #ec8f05;
}

.mathcoin-logo {
  width: 26px;
  height: 26px;
}

#userMathcoins {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

