/* 
   MASTER'S QUIZZES PRO - COMPLETE STYLESHEET 
   Theme: Cyan, Yellow, and Royal Gold 
*/

:root {
    --bg-cyan: #40fff5;
    --accent-yellow: #f8ff2b;
    --primary-blue: #1c15ff;
    --success-green: #229400;
    --error-red: #ff000a;
    --royal-gold: #FFD700; 
    --underline-pink: #FF1493; 
    --btn-border: #004d40;
}

/* 1. Base Setup */
body { 
    background-color: var(--bg-cyan); 
    margin: 0; 
    height: 100vh; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
    touch-action: manipulation;
}

/* 2. Animations */
@keyframes rotateNova { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 3. Screen Logic */
.screen { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: var(--bg-cyan); 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    z-index: 4000;
    overflow-y: auto; 
    padding: 20px 0;
}

.screen.active {
    display: flex;
    animation: fadeInSlide 0.4s ease-out forwards;
}

.screen.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

/* 4. Start Screen & Globe */
#start-screen { 
    position: fixed; 
    inset: 0; 
    background: var(--bg-cyan); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    z-index: 9999; 
    padding-top: 50px; 
}

.start-title { 
    font-family: 'Georgia', serif; 
    font-size: 30px; 
    font-weight: 900; 
    color: var(--royal-gold); 
    text-align: center; 
    text-decoration: underline double var(--underline-pink); 
    text-underline-offset: 15px; 
}

#nova-globe { 
    width: 280px; 
    height: 280px; 
    margin-top: 80px; 
    border-radius: 50%; 
    background: url('globe.jpg') center/cover no-repeat; 
    box-shadow: 0 0 30px rgba(0,0,0,0.25); 
    animation: rotateNova 25s linear infinite; 
}

/* 5. Navigation & Headers */
.top-nav { 
    position: absolute; 
    top: 20px; 
    width: 90%; 
    display: flex; 
    justify-content: flex-start;
}

.btn-nav-icon { 
    background: var(--accent-yellow); 
    border: 3px solid var(--btn-border); 
    border-radius: 12px; 
    width: 42px; 
    height: 42px; 
    font-size: 20px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 2px 2px 0px var(--btn-border); 
}

.q-header-title { 
    font-size: 28px; 
    color: var(--primary-blue); 
    font-weight: 900; 
    text-align: center; 
    margin-bottom: 20px; 
}

.no-shadow-title { 
    font-family: 'Georgia', serif; 
    text-decoration: underline double var(--underline-pink);
     text-transform: capitalize;
    text-underline-offset: 10px; 
}

/* 6. Buttons */
.btn-menu { 
    display: block; 
    margin: 12px auto; 
    text-transform: capitalize;
    width: 280px; 
    height: 58px; 
    background: linear-gradient(145deg, var(--accent-yellow), #e1e800); 
    border: 4px solid var(--btn-border); 
    border-radius: 50px; 
    font-size: 20px; 
    color: var(--primary-blue); 
    font-weight: 900; 
    box-shadow: 4px 4px 0px var(--btn-border); 
    cursor: pointer; 
    transition: transform 0.1s; 
}

.btn-menu:active { transform: scale(0.96); }

.no-shadow-btn { box-shadow: none !important; }

/* 7. Quiz UI Components */
.stats-bar { 
    width: 85%; 
    display: flex; 
    justify-content: space-between; 
    font-weight: 900; 
    font-size: 18px; 
    margin-bottom: 15px; 
}

.q-row { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    width: 90%; 
    margin-bottom: 20px; 
}

.q-circle { 
    width: 55px; 
    height: 55px; 
    background: var(--accent-yellow); 
    border: 3.5px solid var(--primary-blue); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 24px; 
    font-weight: 900; 
    flex-shrink: 0; 
}

.q-box { 
    flex-grow: 1; 
    min-height: 60px; 
    background: var(--bg-cyan); 
    border: 3px solid #000; 
    border-radius: 15px; 
    display: flex; 
    align-items: center; 
    padding: 12px 15px; 
    font-weight: 700; 
    font-size: 16px; 
    line-height: 1.4;
}

/* 8. Options UI */
.opt-row { 
    display: flex; 
    align-items: center; 
    width: 85%; 
    margin-bottom: 10px; 
    padding: 14px; 
    border: 3px solid #000; 
    border-radius: 18px; 
    background-color: transparent; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.opt-row input[type="radio"] { 
    margin-right: 15px; 
    transform: scale(1.6); 
}

.yasiru { 
    font-size: 18px; 
    font-weight: 900; 
    color: #000; 
    transition: color 0.3s ease; 
}

.correct-text { color: var(--success-green) !important; }
.wrong-text { color: var(--error-red) !important; }

/* 9. Feedback & Submit */
#feedback { 
    min-height: 35px; 
    width: 90%; 
    text-align: center; 
    font-size: 22px; 
    font-weight: 900; 
    margin: 10px 0; 
}

.btn-submit { 
    display: block; 
    margin: 10px auto; 
    width: 200px; 
    height: 55px; 
    background: var(--accent-yellow); 
    border: 4px solid var(--success-green); 
    border-radius: 40px; 
    font-size: 22px; 
    color: #1a008f; 
    font-weight: 900; 
    cursor: pointer; 
}

/* 10. Result Screen */
#final-score { 
    font-size: 70px; 
    font-weight: 900; 
    color: var(--success-green); 
    border: 8px double #000; 
    padding: 20px 30px; 
    border-radius: 20px; 
    background: var(--bg-cyan);
}

/* 11. Overlays & Cards */
.overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    z-index: 5000; 
    justify-content: center; 
    align-items: center; 
}

.settings-card { 
    background: var(--bg-cyan); 
    border: 4px solid #000; 
    border-radius: 25px; 
    width: 300px; 
    padding: 25px; 
    box-shadow: 8px 8px 0px rgba(0,0,0,0.2); 
}

.custom-select {
    width: 100%;
    height: 45px;
    background: var(--accent-yellow);
    border: 3px solid #000;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    padding: 5px;
    margin-top: 10px;
    cursor: pointer;
}

/* 12. Input Fields (Login & Admin) */
input[type="text"], input[type="password"], textarea {
    width: 90%;
    height: 45px;
    margin-bottom: 15px;
    border: 3px solid var(--btn-border);
    border-radius: 12px;
    padding: 0 15px;
    font-size: 17px;
    font-weight: 700;
    background: #fff;
}

textarea { height: 80px; padding: 10px; font-family: monospace; }

/* 13. Grids */
.grade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 90%;
    margin-top: 10px;
}

/* Mobile Scrollbar fix */
.subject-list::-webkit-scrollbar { width: 0; background: transparent; }

/* Click Effect for Options */
.opt-row:active { background-color: rgba(0,0,0,0.05); }

.xxx{
    display: none;
}

.hj{
    color: #1523ff;
    font-size: 16.5px;
}