  body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
   margin: 0;
  padding: 20px;
  color: #333;

}button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 6px 6px;
  margin: 8px 5px;
  font-size: 16px;
  background-color: #007bff;
  color: white;
  transition: background-color 0.25s ease;
}

.user-form button {
  background-color: #1976d2;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.user-form button:hover {
  background-color: #1565c0;
}

.user-form div{ padding: 12px}

.user-form input, .user-form label {
     padding: 10px;
}

.user-form{margin: auto; max-width: 400px}
.chrono-circle {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.quiz-question {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quiz-question.active {
  opacity: 1;
  transform: translateY(0);
}
        .niveaux-container {
          display: flex;
          flex-direction: column;
          gap: 10px;
        }

        .extra-niveaux {
          overflow: hidden;
          transition: max-height 0.6s ease-in-out;
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          margin-top: 10px;
        }

        .toggle-niveaux-btn {
          background: none;
          border: none;
          font-weight: bold;
          font-size: 1em;
          cursor: pointer;
          color: #1976d2;
          transition: 0.3s;
          margin-top: 10px;
        }

        .toggle-niveaux-btn:hover {
          color: #004ba0;
          text-decoration: underline;
        }
     
/*button:hover:not(:disabled) {*/
/*  background-color: #0056b3;*/
/*}*/

button:disabled,
button.locked {
  cursor: not-allowed;
  background-color: #ccc !important;
  color: #666 !important;
}

button.completed {
  background-color: #28a745;
  color: white;
}

h2 {
  margin-top: 0;
}

.loader {
  font-size: 18px;
  font-weight: bold;
  color: #666;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translate(-50%, -50%);
 width: 80%;
  text-align: center;
  z-index: 1000;
}

.modal button {
  margin: 10px 8px 0 8px;
}
/*quiz*/ 
.quiz {
  max-width: 600px;
  margin: auto;
  padding: 1em;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 0 10px #ccc;
  font-family: sans-serif;
}

.chrono {
  font-weight: bold;
  color: #d9534f;
  margin-bottom: 10px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin: 1em 0;
}

.option-btn {
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}



.option-btn.correct {
  background:green;
  border-color: #28a745;
}

.option-btn.wrong {
  background: #f8d7da;
  border-color: #dc3545;
}

.feedback {
  font-style: italic;
  color: #555;
  margin-top: 0.5em;
  border-left: 4px solid lightgreen;
  padding:2px;
 background #D8F3DC;
}
.assoc-feedback ul {
  list-style: none;
  padding-left: 0;
}

.assoc-feedback li {
  margin-bottom: 0.8rem;
}

.assoc-comment {
  font-style: italic;
  color: #444;
  margin-left: 1rem;
}

.progress {
  margin-top: 1em;
  font-weight: bold;
}
.quiz-question {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

.quiz-question.fade-in-choice {
  animation: fadeChoice 0.4s ease;
}

.quiz-question.slide-in-fill {
  animation: slideFill 0.5s ease;
}

.quiz-question.flip-in-association {
  animation: flipAssoc 0.5s ease;
}

/* Animations */
@keyframes fadeChoice {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideFill {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes flipAssoc {
  from { transform: rotateY(90deg); opacity: 0; }
  to { transform: rotateY(0deg); opacity: 1; }
}
/*dashbord*/
.menu-top {
  display: flex;
  gap:0.5rem;
  margin-bottom: 1rem;
  background: #f5f7fa;
}

#root{width:100%;
   margin: auto;
}
.menu-top button.active {
  background-color: #007bff;
  color: white;
  
}
.badges-section {
  margin-top: 30px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.badges-section ul{padding:0;}
.badges-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
  justify-items: center;
  font-size: 20px;
}
.badge {
  background: #f0f7ff;
  border: 1px solid #d0e3ff;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
  list-style: none;
  
}
.gdes{margin:auto; text-align:center}
.pranl{background:gray}
#footer{
    position: fixed;
    bottom: 0;
    width:90%;
    background:#f5f7fa;
    padding: 2%;
    margin-top:8cm;
}
/*carousel*/ 
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-quiz {
  animation: fadeSlideIn 0.8s ease-out;
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  border-left: 5px solid #00796b;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.intro-quiz:hover {
  transform: scale(1.02);
}

.g-recaptcha {
      margin-top: 20px;
      align-self: center;
}
    
    .score-box {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
}
  