*{
 -webkit-tap-highlight-color:transparent;
}

::-webkit-scrollbar{
	width: 0;
	height: 0;
}

body{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(248,250,252,0.8));
min-height: 100vh;
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
justify-content: center;
align-items: center;
color: #002d5d;
scroll-behavior: smooth;
overscroll-behavior: none;
user-select: none;
overflow-x: hidden;
scrollbar-width: none;
}

.quiz-container{
 background: #fefefe;
 border-radius: 18px;
 padding: 15px 15px;
 width: 90%;
 max-width: 800px;
 margin: 0;
 display: flex;
 flex-direction: column;
 position: fixed;
}

.quiz-title{
font-size:1.15rem;
text-align:center;
color:#8e08a6;
font-weight:600;
margin-bottom:20px;
}

.progress-bar{
height:10px;
background:#eee;
border-radius:3px;
overflow:hidden;
margin:8px 0 20px;
}

#progressFill{
height:100%;
width:0%;
background:#8e08a6;
transition:.3s;
}

#questionBox{
font-size:0.9rem;
font-weight:500;
margin-bottom:20px;
}

#optionsBox{
display:flex;
flex-direction:column;
gap:8px;
}

.option{
font-size:0.85rem;
padding:7px;
border:1px solid #e5e7eb;
border-radius:8px;
cursor:pointer;
background:#f8f9fa;
}

.option.selected{
background:#8e08a6;
color:#fff;
}

.option.correct {
border: 1px solid #22c55e;
background: rgba(34,197,94,0.1);
}

.option.wrong {
border: 1px solid #ef4444;
background: rgba(239,68,68,0.1);
}

.nav-buttons{
display:flex;
justify-content:space-between;
margin-top:20px;
}

button{
padding:8px 14px;
border:none;
border-radius:8px;
background:#8e08a6;
color:white;
cursor:pointer;
}

.result-screen{
text-align:center;
font-size:1.2rem;
padding:30px;
}

@media (prefers-color-scheme: dark){

body{
    background: #151028;
    color:#f3f0ff;
}

.quiz-container{
    background:#151028;
}

 .quiz-title{
    color:#fbbf24;
 }

 .progress-bar{
    background:#2e2354;
 }

 #progressFill{
    background:#9333ea;
 }

 button{
    background:#9333ea;
 }

 .option{
    border:1px solid #2e2354;
    background:#1b1430;
 }

 .option.selected{
    background:#9333ea;
 }
     }
