@@ -91,7 +91,7 @@ export default function Custom404() {
9191
9292 const getButtonClass = ( option : string ) => {
9393 const baseClass =
94- "w-full p-3 text-left rounded border transition-all cursor-pointer" ;
94+ "w-full rounded border p-2.5 text-left text-sm transition-all cursor-pointer md:p-3 md:text-base " ;
9595
9696 if ( ! answered ) {
9797 return `${ baseClass } bg-card border-border text-foreground hover:border-accent` ;
@@ -109,24 +109,24 @@ export default function Custom404() {
109109 } ;
110110
111111 return (
112- < main className = "mx-auto min- h-dvh max-w-6xl px-6 py-16 md:px-20" >
112+ < main className = "mx-auto flex h-dvh max-w-6xl items-center overflow-hidden px-4 py-4 sm:px-6 sm: py-6 md:px- 16 md:py-8 lg: px-20 lg:py-10 " >
113113 < div className = "mx-auto w-full max-w-2xl" >
114- < h1 className = "mb-8 text-center font-jersey10 text-6xl text-primary" >
114+ < h1 className = "mb-4 text-center font-jersey10 text-5xl text-primary md:mb-5 md:text-[3.25rem] " >
115115 404
116116 </ h1 >
117- < h2 className = "mb-4 text-center font-jersey10 text-2xl text-foreground" >
117+ < h2 className = "mb-2 text-center font-jersey10 text-xl text-foreground md:mb-3 md:text-[1.4rem] " >
118118 Page Not Found
119119 </ h2 >
120120
121- < p className = "mb-8 text-center text-foreground" >
121+ < p className = "mb-4 text-center text-sm text- foreground md:mb-5 md:text-base " >
122122 Test your game knowledge with some rapid-fire trivia instead!!!
123123 </ p >
124124
125125 { ! gameActive ? (
126- < div className = "mb-8 space-y-4 " >
126+ < div className = "mb-4 space-y-3 md:mb-5 md:space-y-3.5 " >
127127 { gameQuestions . length === 0 ? (
128128 < >
129- < p className = "mb-4 text-muted-foreground" >
129+ < p className = "mb-3 text-sm text- muted-foreground md:mb-3 md:text-base " >
130130 Answer 10 random gaming trivia questions in 30 seconds!
131131 </ p >
132132 < Button onClick = { startGame } className = "w-full" >
@@ -135,10 +135,10 @@ export default function Custom404() {
135135 </ >
136136 ) : (
137137 < >
138- < p className = "mb-4 text-center font-jersey10 text-2xl font-bold text-primary" >
138+ < p className = "mb-3 text-center font-jersey10 text-2xl font-bold text-primary md:mb-3 " >
139139 Game Over!
140140 </ p >
141- < p className = "mb-4 text-center text-foreground" >
141+ < p className = "mb-3 text-center text-sm text- foreground md:mb-3 md:text-base " >
142142 Final Score:
143143 < span className = "text-xl font-bold text-primary" >
144144 { score }
@@ -152,26 +152,26 @@ export default function Custom404() {
152152 ) }
153153 </ div >
154154 ) : (
155- < div className = "mb-8 space-y-6 " >
156- < div className = "mb-4 flex items-center justify-between" >
157- < p className = "text-sm text-muted-foreground" >
155+ < div className = "md:space-y-4.5 mb-4 space-y-4 md:mb-5 " >
156+ < div className = "mb-2 flex items-center justify-between md:mb-3 " >
157+ < p className = "text-xs text-muted-foreground md:text-sm " >
158158 Question { currentQuestionIndex + 1 } / 10
159159 </ p >
160160 < div
161- className = { `font-jersey10 text-3xl font-bold ${
161+ className = { `font-jersey10 text-2xl font-bold md:text-[1.9rem] ${
162162 timeLeft <= 10 ? "text-destructive" : "text-primary"
163163 } `}
164164 >
165165 { timeLeft } s
166166 </ div >
167167 </ div >
168168
169- < div className = "space-y-6 rounded border border-border bg-card p-6 " >
170- < p className = "text-lg text-foreground" >
169+ < div className = "md: space-y-4.5 space-y-4 rounded border border-border bg-card p-4 md:p-5 " >
170+ < p className = "text-base leading-snug text-foreground md:text-[1.05rem] " >
171171 { currentTrivia . question }
172172 </ p >
173173
174- < div className = "space-y-3" >
174+ < div className = "space-y-2.5 md:space-y- 3" >
175175 { options . map ( ( option , idx ) => (
176176 < button
177177 key = { idx }
@@ -184,7 +184,7 @@ export default function Custom404() {
184184 ) ) }
185185 </ div >
186186
187- < p className = "text-sm text-foreground" >
187+ < p className = "text-xs text-foreground md:text-sm " >
188188 Score:{ " " }
189189 < span className = "font-jersey10 font-bold text-primary" >
190190 { score } / 10
0 commit comments