Quiz Title Here
/* Basic CSS resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;
background-color: #f1f8e9;
color: #33691e;
line-height: 1.4; /* Reduced line height */
}
/* Focus styles for Accessibility */
*:focus-visible {
outline: 3px solid #ff9800;
outline-offset: 2px;
}
.content-container {
background-color: #dcedc8;
padding: 10px; /* Reduced padding */
border-radius: 8px;
max-width: 800px;
margin: 15px auto; /* Reduced margin */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: relative;
}
/* Hamburger Menu Icon */
.hamburger {
position: absolute;
top: 15px;
left: 15px;
z-index: 1500;
width: 25px; /* Smaller icon */
height: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
padding: 0;
box-sizing: content-box !important;
}
.hamburger-line {
height: 3px; /* Thinner lines */
background-color: #333;
border-radius: 2px;
}
/* Sidebar (Question Nav) */
#questionNavOverlay {
position: fixed;
top: 0;
left: -260px;
width: 260px;
height: 100%;
background-color: #fff;
transition: left 0.3s ease-in-out;
z-index: 2000;
box-shadow: 2px 0 8px rgba(0,0,0,0.2);
padding: 15px;
overflow-y: auto;
}
#questionNavOverlay.show { left: 0; }
#questionNavTitle { margin-bottom: 10px; font-weight: bold; font-size: 1.1rem; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.question-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.circle-number {
width: 32px; /* Smaller circles */
height: 32px;
border-radius: 50% !important;
background-color: #e0e0e0;
color: #333;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
font-weight: bold;
transition: all 0.2s;
line-height: 1 !important;
font-size: 0.9rem;
}
.circle-number:hover { background-color: #bdbdbd; }
.circle-number.active { background-color: #4CAF50; color: #fff; transform: scale(1.1); }
.circle-number.attempted { border: 2px solid #4CAF50; }
/* Quiz Container */
.quiz-container {
background-color: #fff;
border-radius: 8px;
padding: 15px; /* Reduced padding */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
width: 100%;
text-align: center;
position: relative;
}
.header-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px; /* Reduced margin */
padding-bottom: 8px;
border-bottom: 1px solid #f0f0f0;
margin-left: 30px; /* Adjusted space */
}
.question-counter { font-weight: bold; color: #555; background-color: #e3f2fd; padding: 3px 8px; border-radius: 4px; font-size: 0.9rem;}
.timer { font-weight: bold; color: #d32f2f; background-color: #ffebee; padding: 3px 8px; border-radius: 4px; font-size: 0.9rem;}
.question {
font-size: 1.1rem; /* Smaller font */
margin: 10px 0 15px 0; /* Reduced margins */
text-align: left;
font-weight: 600;
line-height: 1.4;
}
.choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; } /* Reduced gap */
.choice {
padding: 8px 12px; /* Compact padding */
background-color: #f9f9f9;
border: 1px solid #e0e0e0; /* Thinner border */
border-radius: 6px !important;
cursor: pointer;
transition: all 0.2s;
text-align: left;
font-size: 0.95rem; /* Smaller font */
position: relative;
line-height: 1.4 !important;
}
.choice:hover:not(.disabled) { background-color: #f1f8e9; border-color: #aed581; }
.choice.selected { background-color: #e8f5e9; border-color: #4CAF50; }
/* Result States */
.choice.correct { background-color: #d4edda; border-color: #28a745; color: #155724; }
.choice.correct::after { content: ‘✓’; position: absolute; right: 10px; font-weight: bold; top: 50%; transform: translateY(-50%); }
.choice.incorrect { background-color: #f8d7da; border-color: #dc3545; color: #721c24; }
.choice.incorrect::after { content: ‘✗’; position: absolute; right: 10px; font-weight: bold; top: 50%; transform: translateY(-50%); }
.choice.disabled { cursor: default; opacity: 0.9; pointer-events: none; }
.explanation {
margin-top: 15px;
text-align: left;
background-color: #e3f2fd;
padding: 10px; /* Reduced padding */
border-left: 4px solid #2196F3;
border-radius: 4px;
animation: fadeIn 0.5s;
font-size: 0.9rem;
}
.buttons {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 15px; /* Reduced margin */
flex-wrap: wrap;
}
/* Updated Button Styles for WordPress Compatibility – Compact Version */
.btn {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 8px 16px !important; /* Smaller buttons */
background-color: #4CAF50;
color: white !important;
border: none !important;
border-radius: 4px !important;
cursor: pointer;
font-size: 0.9rem !important; /* Smaller font */
font-weight: bold !important;
min-width: 80px; /* Reduced min-width */
transition: transform 0.1s, box-shadow 0.2s;
line-height: normal !important;
text-decoration: none !important;
appearance: none !important;
margin: 3px !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.btn:hover { background-color: #43A047 !important; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important; }
.btn:active { transform: translateY(0); }
.btn.disabled { background-color: #cfd8dc !important; cursor: not-allowed; color: #90a4ae !important; box-shadow: none !important; }
/* Specific Button Styles */
#skipButton { background-color: #ff9800 !important; color: #fff !important; }
#skipButton:hover { background-color: #f57c00 !important; }
#prevButton { background-color: #78909c !important; }
#prevButton:hover { background-color: #607d8b !important; }
.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Result Section */
#resultContent { text-align: center; padding: 20px 15px; background: white; border-radius: 8px; }
.congrats { font-size: 1.5rem; color: #2e7d32; margin-bottom: 10px; }
.sad { font-size: 1.5rem; color: #c62828; margin-bottom: 10px; }
#scoreMessage { font-size: 1.1rem; margin-bottom: 15px; color: #555; }
/* Review Mode */
.review-question-container { background-color: #fff; padding: 15px; margin-bottom: 10px; border-radius: 8px; border: 1px solid #eee; }
.review-question-container h3 { font-size: 1rem; margin-bottom: 8px; }
.review-option { padding: 8px; margin: 4px 0; border-radius: 4px; background-color: #f5f5f5; display: flex; justify-content: space-between; font-size: 0.9rem; }
.review-option.correct-answer { background-color: #c8e6c9; color: #2e7d32; font-weight: bold; border: 1px solid #a5d6a7; }
.review-option.user-incorrect { background-color: #ffcdd2; color: #c62828; text-decoration: line-through; border: 1px solid #ef9a9a; }
.review-skipped-msg { color: #f57c00; font-style: italic; margin-bottom: 5px; display: block; font-weight: bold; font-size: 0.9rem; }
/* Instructions */
#instructionScreen { background: white; padding: 20px; border-radius: 8px; }
#instructionScreen h2 { color: #2e7d32; margin-bottom: 15px; border-bottom: 2px solid #a5d6a7; padding-bottom: 8px; display: inline-block; font-size: 1.4rem;}
#instructionScreen ul { margin-left: 20px; margin-bottom: 20px; color: #424242; font-size: 0.95rem; }
#instructionScreen li { margin-bottom: 6px; }
/* Popup */
#popupMessage {
position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
padding: 10px 20px; border-radius: 30px; font-weight: bold; z-index: 5000;
box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s; opacity: 0; visibility: hidden;
display: block !important; /* Force block to allow visibility transition */
font-size: 0.9rem;
}
#popupMessage.show { opacity: 1; visibility: visible; top: 30px; }
#popupMessage.correct { background-color: #43A047; color: white; }
#popupMessage.incorrect { background-color: #e53935; color: white; }
#popupMessage.skipped { background-color: #ffa000; color: white; }
/* Mobile Responsive */
@media (max-width: 600px) {
.content-container { padding: 8px; margin: 8px auto; }
.quiz-container { padding: 12px; }
.question { font-size: 1rem; }
.btn { padding: 8px 12px !important; font-size: 0.85rem !important; }
.header-info { margin-left: 30px; font-size: 0.85rem; }
}
- इस Quiz में चयनित विषय से संबंधित प्रश्न शामिल हैं।
- प्रत्येक प्रश्न के लिए 30 सेकंड का निर्धारित समय है।
- नेविगेशन: आप किसी भी प्रश्न पर सीधे जा सकते हैं।
- Skip: यदि उत्तर ज्ञात न हो, तो आप प्रश्न छोड़ सकते हैं।
- Quiz समाप्त होने पर आपका स्कोर प्रदर्शित किया जाएगा।
- अंत में प्रत्येक प्रश्न के विस्तृत उत्तर एवं व्याख्या भी देखी जा सकती है।
- शुभकामनाएं!
Loading…
Quiz Completed