Chapter 1: Number Systems Quiz

:root {
–primary: #1E3A8A; /* Navy Blue */
–primary-hover: #1E40AF;
–background: #F3F4F6;
–surface: #FFFFFF;
–text-main: #1F2937;
–text-muted: #6B7280;
–success: #10B981;
–success-light: #D1FAE5;
–danger: #EF4444;
–danger-light: #FEE2E2;
–border: #E5E7EB;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: ‘Segoe UI’, system-ui, sans-serif; }
body {
background-color: var(–background);
color: var(–text-main);
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: 800px;
background: var(–surface);
border-radius: 12px;
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
overflow: hidden;
display: flex;
flex-direction: column;
}
header { background: var(–primary); color: white; padding: 1.5rem; text-align: center; }
header h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.mode-toggle {
display: flex; justify-content: center; gap: 0.5rem;
background: rgba(255, 255, 255, 0.1); padding: 0.5rem;
border-radius: 8px; width: fit-content; margin: 0 auto;
}
.mode-btn {
background: transparent; color: white; border: none;
padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer;
font-weight: 600; transition: all 0.3s ease;
}
.mode-btn.active { background: white; color: var(–primary); }
.progress-container { background: var(–border); height: 6px; width: 100%; }
.progress-bar { height: 100%; background: var(–success); width: 0%; transition: width 0.3s; }
.content-area { padding: 2rem; max-width: 100%; }
.question-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 1rem; color: var(–text-muted); font-size: 0.9rem; font-weight: 600;
}
.meta-tag { background: #E0E7FF; color: var(–primary); padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; }
.question-text { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.options-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
/* ==========================================================
CRITICAL ELEMENTOR & MATHJAX OVERRIDES
========================================================== */
/* 1. Elementor Containment Break */
.elementor-widget-html, .elementor-widget-container {
overflow: visible !important;
contain: none !important;
}
/* 2. Option Box Setup (Vertical Centering) */
.option {
background: var(–surface);
border: 2px solid var(–border);
border-radius: 8px;
padding: 15px 10px !important;
cursor: pointer;
transition: all 0.2s ease;
display: flex !important;
align-items: center !important; /* Centering Letter & Text */
min-height: min-content !important;
overflow: visible !important;
}
.option:hover:not(.disabled) { border-color: var(–primary); background: #F8FAFC; }
.option.selected { border-color: var(–primary); background: #EFF6FF; }
.option.correct { border-color: var(–success); background: var(–success-light); color: #065F46; }
.option.wrong { border-color: var(–danger); background: var(–danger-light); color: #991B1B; }
.option.disabled { cursor: not-allowed; opacity: 0.7; }
/* 3. Option Letter Centering */
.option-letter {
font-weight: bold; margin-right: 15px; margin-top: 0 !important;
background: var(–border); width: 32px; height: 32px;
display: flex; align-items: center; justify-content: center;
border-radius: 50%; font-size: 0.9rem; flex-shrink: 0 !important;
}
/* 4. Text & Math Scroll/Anti-Wrap Fix */
.option > div:nth-child(2), .question-text, .explanation-box {
width: 100% !important;
line-height: 1.8 !important;
overflow-x: auto !important; /* Allow swipe if math is too long */
overflow-y: visible !important;
padding-bottom: 5px !important;
white-space: normal !important; /* Text can wrap */
}
/* Customize Scrollbar for neatness */
.option > div:nth-child(2)::-webkit-scrollbar { height: 4px; }
.option > div:nth-child(2)::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
/* 5. MathJax Vertical Centering & No-Wrap */
mjx-container, mjx-math {
line-height: normal !important;
overflow: visible !important;
padding-top: 0.2em !important;
padding-bottom: 0.2em !important;
display: inline-block !important;
vertical-align: middle !important; /* Aligns Math perfectly center with text */
white-space: nowrap !important; /* Never break a formula in half */
}
mjx-container svg { overflow: visible !important; height: auto !important; }
/* Explanation & Review Styling */
.explanation-box {
display: none; background: #F8FAFC; border-left: 4px solid var(–primary);
padding: 1.5rem; margin-bottom: 2rem; border-radius: 0 8px 8px 0;
}
.explanation-box h4 { color: var(–primary); margin-bottom: 0.5rem; }
.btn-container { display: flex; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; }
.btn {
background: var(–primary); color: white; border: none; padding: 0.75rem 1.5rem;
border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn:hover:not(:disabled) { background: var(–primary-hover); }
.btn:disabled { background: var(–text-muted); cursor: not-allowed; }
.btn-outline { background: transparent; color: var(–primary); border: 2px solid var(–primary); }
.btn-outline:hover:not(:disabled) { background: #EFF6FF; }
#results-area, #review-area { display: none; text-align: center; }
.score-display { font-size: 4rem; font-weight: bold; color: var(–primary); margin: 1rem 0; }
#review-area { text-align: left; }
.review-status { font-weight: bold; margin-bottom: 1rem; font-size: 1.1rem; }
.review-answer-box { background: var(–surface); border: 1px solid var(–border); padding: 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.text-success { color: var(–success); } .text-danger { color: var(–danger); } .text-muted { color: var(–text-muted); }
@media (min-width: 640px) { .options-grid { grid-template-columns: 1fr 1fr; } }

Chapter 1: Number Systems



Question 1 of 18
NET-2012

Step-by-Step Explanation:

Test Complete!

0 / 18


Review: 1 of 18
NET-2012
Your Answer:
Correct Answer:

Explanation: