/*
 pxn-quiz.css
 Feuille de style pour le plugin PXN Quiz
*/

.pxn-quiz-box, .pxn-question{
    font-family: Poppins, sans-serif;
}
.pxn-quiz-box input, 
.pxn-quiz-box button{
	border-radius:30px!important;
}

.pxn-quiz-box button{
  box-shadow: 3px 3px 5px #e1e1e1;
}

.pxn-quiz-box {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pxn-quiz-box h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
  color: #333;
  text-align: center;
}

.pxn-progress {
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
  text-align: center;
}

.pxn-question {
  margin-bottom: 20px;
  font-size: 1.2em;
  line-height: 1.4;
  color: #222;
}

.pxn-reponses {
  display: flex;
  flex-direction: column;
}

.pxn-reponses .pxn-reponse {
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  font-size: 1em;
  color:#222;
}

.pxn-reponses .pxn-reponse:hover {
  background-color: #f0f0f0;
}

.pxn-reponses .pxn-reponse.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.pxn-reponses .pxn-reponse.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.pxn-next {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.pxn-next:hover {
  background-color: #005177;
}

.pxn-score {
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  color: #333;
  padding: 20px;
}

.pxn-timer {
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
  text-align: center;
}

/* Responsive */
@media screen and (max-width: 480px) {
  .pxn-quiz-box {
    padding: 15px;
  }

  .pxn-reponses .pxn-reponse {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .pxn-next {
    width: 100%;
    text-align: center;
  }
}

.pxn-ranking .current-top {
  background-color: #d4edda;
}

.pxn-ranking td{
	text-align:center;
}

.pxn-quiz-image {
  text-align: center;
  margin-bottom: 20px;
}

.pxn-quiz-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Centrage des boutons */
.pxn-user-start,
.pxn-next,
.pxn-clear-user {
  display: inline-block;
  margin: 20px 5px;
}

.pxn-reponses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
}

.pxn-explication {
  margin-top: 10px;
  font-size: 0.95em;
  font-style: italic;
  color: #444;
}

.classement{
    text-align: center;
}

.pxn-ranking{
	background:#fff;
	border: 1px solid;
}