/* Quiz container */
.quiz-wrapper {
    position: relative; /* Required for absolute positioning of children */
    max-width: 600px; /* Maximum width instead of fixed width */
    width: 100%; /* Make it take 100% of available space up to max-width */
    margin: 0 auto; /* Center the quiz horizontally */
    padding: 15px; /* Default padding for mobile */
    box-sizing: border-box; /* Include padding in width calculation */
    background-color: #ac1219;
    border-radius: 25px;
    color: #fff;
}

.quiz-animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    pointer-events: none; /* Allows clicking through the overlay */
}

/* Confetti background animation */
.confetti-overlay {
    z-index: 100; /* Lower z-index so it appears behind the trophy */
}

.quiz-confetti-animation {
    width: 100%; /* Make confetti fill the entire overlay */
    height: 100%;
    object-fit: cover;
}

/* Trophy animation on top */
.trophy-overlay {
    z-index: 101; /* Higher z-index so it appears above the confetti */
}

.quiz-trophy-animation {
    width: 100%; /* Makes it responsive */
    max-width: 500px; /* Increased from 300px to make it bigger */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Ensures the entire image is visible */
    display: block; /* Removes any extra space below the image */
    margin: 0 auto; /* Centers the image if needed */
}

/* Bigger check and X icons */

.quiz-icon {
    font-size: 40px; /* Adjust size as needed */
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.quiz-result-text {
    font-size: 18px;
    vertical-align: middle;
}
.correct-icon {
}

.incorrect-icon {
}
/* Responsive adjustments for Neve */
@media (max-width: 767px) {
    /* Mobile devices */
    .quiz-trophy-animation {
        width: 80%;
        max-width: 120px; /* Smaller on very small screens */
    }
    
    .quiz-wrapper {
        padding: 10px;
    }
}

@media (min-width: 768px) and (max-width: 959px) {
    /* Tablets */
    .quiz-trophy-animation {
        width: 60%;
        max-width: 180px;
    }
    
    .quiz-wrapper {
        padding: 20px;
    }
}

@media (min-width: 960px) {
    /* Desktop */
    .quiz-trophy-animation {
        width: 50%; 
        max-width: 200px;
    }
    
    .quiz-wrapper {
        padding: 30px;
    }
}



/* Progress */
#quiz-progress-container {
  margin-bottom: 20px;
}

#quiz-progress-text {
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  font-size: 2.2rem;
}

.quiz-progress-bar-container {
  width: 100%;
  height: 16px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.quiz-progress {
  height: 100%;
  width: 0%;
  background-color: #2196F3;
  transition: width 0.4s ease;
}

/* Question block */
.quiz-question {
  margin-bottom: 20px;
  text-align: center;
}

.quiz-question h3 {
  margin-bottom: 10px;
}

.quiz-answer {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: 300px !important;
  width: 40%;
  margin: 15px 0;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  color: white !important;
  font-weight: bold !important;
}
  
.quiz-answer:nth-child(1) { background-color: #FF5252 !important; } /* Red */
.quiz-answer:nth-child(2) { background-color: #4CAF50 !important; } /* Green */
.quiz-answer:nth-child(3) { background-color: #2196F3 !important; } /* Blue */
.quiz-answer:nth-child(4) { background-color: #9C27B0 !important; } /* Purple */


.quiz-answer:hover {
  background: #f0f0f0;
}

/* Feedback */
.quiz-result.correct {
  color: white;
  font-weight: bold;
}

.quiz-result.incorrect {
  color: white;
  font-weight: bold;
}

#quiz-result .quiz-final-score {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
}

/* Center feedback text */
.quiz-result {
  text-align: center;
  font-size: 1.2em;
}
