.quiz-wrapper {
background: transparent;
}
.quiz-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid #f0f0f0;
}
.quiz-header h1 {
color: #2c3e50;
font-size: 28px;
display: flex;
align-items: center;
gap: 10px;
}
.quiz-timer-display {
background: #34495e;
color: white;
padding: 10px 20px;
border-radius: 50px;
font-size: 18px;
font-weight: bold;
display: flex;
align-items: center;
gap: 8px;
}
.quiz-progress-container {
margin: 25px 0;
position: relative;
width: 100%;
background: var(--accordionbg);
border-radius: 8px;
height: 10px;
overflow: hidden;
}
.quiz-progress-bar {
height: 100%;
width: 0%;
background: linear-gradient(90deg, rgb(255, 110, 57), #F5F5DC);
border-radius: 8px;
transition: width 0.35s ease-in-out;
}
.quiz-progress-text {
position: absolute;
right: 0;
top: -25px;
font-weight: bold;
color: #7f8c8d;
}
.quiz-main-container {
background: transparent;
border-radius: 15px;
margin: 10px 0;
}
.quiz-question-number {
color: var(--beige-dual);
font-size: 18px;
margin-bottom: 10px;
font-weight: 600;
}
.quiz-question-text {
font-size: 22px;
color: var(--color);
margin-bottom: 25px;
line-height: 1.5;
}
.quiz-options-container {
display: grid;
gap: 12px;
}
@media (min-width: 768px) {
.quiz-options-container {
grid-template-columns: repeat(2, 1fr);
}
}
.quiz-option {
background: var(--Mainbg);
border: var(--border);
border-radius: 12px;
padding: 15px 20px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 15px;
}
.quiz-option:hover {
transform: translateY(-2px);
border-color: rgba(255, 110, 57, 0.758);
}
.quiz-option.selected {
border-color:rgba(255, 110, 57, 0.758);
background:var(--mcqselectedbg);
}
.quiz-option.correct {
border-color: #2ecc71;
background: #00fd8b57;
}
.quiz-option.wrong {
border-color: #e74c3c;
background: #ff00004a;
}
.quiz-option.disabled {
opacity: 0.7;
cursor: not-allowed;
}
.quiz-option-label {
width: 36px;
height: 36px;
background: var(--labletag);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: var(--color);
flex-shrink: 0;
}
.quiz-option-text {
flex-grow: 1;
font-size: 16px;
color: var(--beige-dual);
}
.quiz-option-status {
font-size: 18px;
opacity: 0;
transition: opacity 0.3s;
}
.quiz-option.correct .quiz-option-status {
color: #2ecc71;
opacity: 1;
}
.quiz-option.wrong .quiz-option-status {
color: #e74c3c;
opacity: 1;
}
.quiz-navigation-buttons {
display: flex;
justify-content: space-between;
align-items: center;
gap: 15px;
margin-top: 30px;
}
.quiz-btn {
padding: 10px 20px;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-family: inherit;
}
.quiz-btn-primary {
background: transparent;
color: var(--beige-dual);
border: 1px solid #f9895f96;
}
.quiz-btn-primary:hover:not(:disabled) {
transform: translateY(-3px);
}
.quiz-btn-secondary {
background: var(--evenchildtable);
color: var(--color);
}
.quiz-btn-secondary:hover:not(:disabled) {
background: #d5dbdb29;
}
.quiz-btn-success {
background: green;
color: white;
margin-left: auto;
}
.quiz-btn-success:hover:not(:disabled) {
transform: translateY(-3px);
}
.quiz-btn-warning {
background: var(--evenchildtable);
color: var(--color);
}
.quiz-btn-warning:hover:not(:disabled) {
background: #6e6e6e34;
}
.quiz-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
}
.quiz-nav-left,
.quiz-nav-right {
display: flex;
gap: 10px;
}
#quiz-prev-btn {
width: 40px;
height: 40px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
border-radius: 12px;
}
#quiz-prev-btn i {
color: #7f7f7f;
transition: color 0.2s ease;
}
#quiz-prev-btn:hover i {
color: #919191;
}
.quiz-results-container {
animation: quiz-fadeIn 0.8s ease;
}
.quiz-results-card {
background: transparent;
border-radius: 20px;
}
.quiz-results-card h2 {
color: var(--beige-dual);
margin-bottom: 30px;
display: flex;
align-items: center;
gap: 10px;
font-size: 28px;
}
.quiz-score-display {
display: flex;
align-items: center;
justify-content: space-around;
flex-wrap: wrap;
gap: 40px;
margin: 40px 0;
}
.quiz-score-circle {
position: relative;
width: 120px;
height: 120px;
}
.quiz-score-circle-bg {
fill: none;
stroke: var(--labletag);
stroke-width: 8;
}
.quiz-score-circle-progress {
fill: none;
stroke: #ff6e39;
stroke-width: 8;
stroke-linecap: round;
transform: rotate(-90deg);
transform-origin: 50% 50%;
stroke-dasharray: 339.292;
stroke-dashoffset: 339.292;
transition: stroke-dashoffset 1.5s ease;
}
.quiz-score-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.quiz-score-text span {
font-size: 32px;
font-weight: bold;
color: var(--beige-dual);
display: block;
}
.quiz-score-text small {
color: var(--color);
font-size: 14px;
}
.quiz-score-details {
display: flex;
flex-direction: column;
gap: 20px;
}
.quiz-score-stat {
display: flex;
align-items: center;
gap: 15px;
font-size: 18px;
padding: 15px 25px;
background: var(--labletag);
border-radius: 12px;
min-width: 200px;
}
.quiz-correct-icon {
color: #2ecc71;
font-size: 24px;
}
.quiz-wrong-icon {
color: #e74c3c;
font-size: 24px;
}
.quiz-time-icon {
color: #3498db;
font-size: 24px;
}
.quiz-unanswered-icon {
color: #f39c12;
font-size: 24px;
}
.quiz-question-analysis {
margin: 40px 0;
}
.quiz-question-analysis h3 {
color: var(--beige-dual);
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 10px;
}
.quiz-status-pill {
display: inline-block;
padding: 6px 14px;
border-radius: 50px;
font-size: 0.85rem;
font-weight: 600;
text-align: center;
min-width: 90px;
letter-spacing: 0.3px;
}
.quiz-status-correct {
background: #00ff3d42;
color: #43ab5b;
}
.quiz-status-wrong {
background: #ff001736;
color: rgb(195 74 74);
border: 1px solid #fb899400;
}
.quiz-status-unattempted {
background: #e2e3e5;
color: #383d41;
border: 1px solid #6c757d;
}
.quiz-performance-summary {
margin: 40px 0;
}
.quiz-performance-summary h3 {
color: var(--beige-dual);
margin-bottom: 25px;
display: flex;
align-items: center;
gap: 10px;
}
.quiz-summary-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.quiz-stat-card {
background: var(--labletag);
padding: 25px;
border-radius: 15px;
text-align: center;
border: none;
transition: transform 0.3s ease;
}
.quiz-stat-card i {
font-size: 36px;
color: var(--beige-dual);
margin-bottom: 15px;
}
.quiz-stat-card h4 {
color: var(--beige-dual);
margin-bottom: 10px;
font-size: 18px;
}
.quiz-stat-card p {
color: var(--color);
font-size: 24px;
font-weight: bold;
}
.quiz-action-buttons {
display: flex;
justify-content: space-between;
gap: 20px;
margin-top: 40px;
flex-wrap: wrap;
}
.quiz-review-section {
margin-top: 20px;
}
.quiz-review-container {
padding: 20px;
background: white;
border-radius: 15px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.quiz-review-container h3 {
color: #2c3e50;
margin-bottom: 25px;
display: flex;
align-items: center;
gap: 10px;
font-size: 24px;
padding-bottom: 15px;
border-bottom: 2px solid #f0f0f0;
}
.quiz-review-question {
background: white;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
border-left: 5px solid #ddd;
transition: all 0.3s ease;
}
.quiz-review-question:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}
.quiz-review-question.correct {
border-left-color: #2ecc71;
background: linear-gradient(to right, rgba(46, 204, 113, 0.03), transparent);
}
.quiz-review-question.wrong {
border-left-color: #e74c3c;
background: linear-gradient(to right, rgba(231, 76, 60, 0.03), transparent);
}
.quiz-review-question.unanswered {
border-left-color: #f39c12;
background: linear-gradient(to right, rgba(243, 156, 18, 0.03), transparent);
}
.quiz-review-question-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
flex-wrap: wrap;
gap: 10px;
}
.quiz-review-q-number {
font-weight: bold;
color: #3498db;
font-size: 18px;
background: #e3f2fd;
padding: 5px 15px;
border-radius: 20px;
}
.quiz-review-status {
padding: 5px 15px;
border-radius: 20px;
font-size: 14px;
font-weight: bold;
min-width: 100px;
text-align: center;
}
.quiz-review-status.quiz-status-correct {
background: #d4edda;
color: #155724;
}
.quiz-review-status.quiz-status-wrong {
background: #f8d7da;
color: #721c24;
}
.quiz-status-cell {
text-align: left;
}
@media (min-width: 992px) {
.quiz-status-cell {
display: flex;
justify-content: center;
align-items: center;
}
}
.quiz-review-status.quiz-status-unanswered {
background: #fff3cd;
color: #856404;
}
.quiz-review-time {
color: #666;
font-size: 14px;
font-weight: 500;
background: #f8f9fa;
padding: 5px 12px;
border-radius: 15px;
}
.quiz-review-question-text {
font-size: 18px;
color: #2c3e50;
margin-bottom: 20px;
line-height: 1.6;
font-weight: 500;
}
.quiz-review-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.quiz-review-option {
padding: 12px 15px;
border-radius: 8px;
background: #f8f9fa;
border: 2px solid transparent;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.3s ease;
position: relative;
}
.quiz-review-option:hover {
background: #f1f3f4;
}
.quiz-review-option.user-selected {
border-color: #3498db;
background: #e3f2fd;
box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}
.quiz-review-option.correct-answer {
border-color: #2ecc71;
background: #d4edda;
}
.quiz-review-option.wrong-answer {
border-color: #e74c3c;
background: #fde8e8;
}
.quiz-review-option.correct-answer .quiz-option-label {
background: #2ecc71;
color: white;
}
.quiz-review-option.user-selected .quiz-option-label {
background: #3498db;
color: white;
}
.quiz-review-option.wrong-answer .quiz-option-label {
background: #e74c3c;
color: white;
}
.quiz-correct-mark {
color: #2ecc71;
font-weight: bold;
font-size: 20px;
margin-left: 10px;
}
@keyframes quiz-fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes quiz-slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.quiz-back-to-results {
margin-bottom: 20px;
}
.quiz-back-to-results .quiz-btn {
padding: 10px 20px;
font-size: 14px;
}
.quiz-error {
text-align: center;
padding: 40px;
color: #721c24;
background: #f8d7da;
border-radius: 10px;
margin: 20px 0;
}
.quiz-error i {
font-size: 48px;
margin-bottom: 20px;
color: #e74c3c;
}
.quiz-loading-spinner {
display: flex;
justify-content: center;
align-items: center;
padding: 60px;
}
.quiz-spinner {
width: 50px;
height: 50px;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: quiz-spin 1s linear infinite;
}
@keyframes quiz-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.quiz-header {
flex-direction: column;
gap: 15px;
text-align: center;
}
.quiz-header h1 {
font-size: 24px;
}
.quiz-question-text {
font-size: 20px;
}
.quiz-review-question-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.quiz-navigation-buttons {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.quiz-nav-left,
.quiz-nav-right {
width: 100%;
justify-content: center;
}
.quiz-nav-left {
order: 1;
}
.quiz-nav-right {
order: 2;
}
.quiz-btn {
width: 100%;
justify-content: center;
}
#quiz-prev-btn {
width: 44px;
height: 44px;
}
.quiz-score-display {
flex-direction: column;
text-align: center;
gap: 30px;
}
.quiz-summary-stats {
grid-template-columns: 1fr;
}
.quiz-action-buttons {
flex-direction: column;
}
.quiz-action-buttons .quiz-btn {
width: 100%;
}
}
@media (max-width: 480px) {
.quiz-question-text {
font-size: 18px;
}
.quiz-option {
padding: 12px 15px;
}
.quiz-stat-card {
padding: 20px 15px;
}
.quiz-review-question {
padding: 15px;
}
.quiz-review-option {
padding: 10px 12px;
}
.quiz-option-label {
width: 28px;
height: 28px;
font-size: 14px;
}
.quiz-option-text {
font-size: 15px;
}
}
.quiz-question-time-display{    margin-top: 5px;
margin-left: 5px;
color: var(--beige-dual);
}

.quiz-option-text p,
.quiz-question-text p {
    margin: 0;
}

.quiz-option-text ul,
.quiz-option-text ol {
    margin: 5px 0;
    padding-left: 20px;
}

.quiz-option-text code {
    background: var(--labletag);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

.quiz-option-text pre {
    margin: 5px 0;
    padding: 8px;
    overflow-x: auto;
}

