@@ -258,24 +258,24 @@ export default function GameC() {
258258 < div className = "dark:text-white h-full flex flex-col items-center justify-center overflow-x-hidden overflow-y-auto" >
259259 < div className = "flex w-full flex-col bg-white/10 backdrop-blur-sm lg:w-fit p-4 rounded-lg gap-4" >
260260 < div className = "text-center" >
261- < h1 className = "font-bold text-4xl" > What's the country?</ h1 >
262- < small >
261+ < h1 className = "font-bold text-2xl sm:text- 4xl" > What's the country?</ h1 >
262+ < small className = "hidden sm:block" >
263263 Click boxes for more details, every box has a cost that reduces your score.
264264 </ small >
265265 </ div >
266266
267- < div className = "flex items-center justify-between text-sm px-4" >
267+ < div className = "flex items-center justify-between text-sm px-1 sm:px- 4" >
268268 < span className = "font-semibold" > { answered } / { total } </ span >
269- < span className = "font-semibold" > Score: { score } < span className = "text-xs opacity-50" > ({ totalScore } pts possible )</ span > </ span >
269+ < span className = "font-semibold text-xs sm:text-sm " > Score: { score } < span className = "text-xs opacity-50" > ({ totalScore } pts)</ span > </ span >
270270 </ div >
271- < div className = "w-full h-1.5 bg-black/10 dark:bg-white/10 rounded-full overflow-hidden mx-auto px-4 " >
271+ < div className = "w-full h-1.5 bg-black/10 dark:bg-white/10 rounded-full overflow-hidden" >
272272 < div
273273 className = "h-full bg-valid rounded-full transition-all duration-500"
274274 style = { { width : `${ progress } %` } }
275275 />
276276 </ div >
277277
278- < div className = "flex flex-col lg:flex-row gap-x-8 items-center p-4" >
278+ < div className = "flex flex-col lg:flex-row gap-4 lg:gap- x-8 items-center p-2 sm: p-4" >
279279 < div className = "flex flex-col gap-4 items-center justify-center w-full" >
280280 < div className = "flex flex-row items-stretch w-full" >
281281 < form onSubmit = { handleSubmit } ref = { formRef } className = "w-full" >
@@ -318,7 +318,7 @@ export default function GameC() {
318318 </ div >
319319 </ form >
320320 </ div >
321- < div className = "grid grid-cols-3 gap-4 w-full justify-items-center" >
321+ < div className = "grid grid-cols-2 sm:grid-cols-3 gap-3 sm: gap-4 w-full justify-items-center" >
322322 { HINTS . map ( ( hint ) => (
323323 < Hint
324324 key = { hint . key }
@@ -334,7 +334,7 @@ export default function GameC() {
334334 </ div >
335335 </ div >
336336 < div className = "flex flex-col justify-center items-center gap-2 select-none w-full lg:w-2/3 py-2" >
337- < div className = "h-52 w-[350px] max-w-[350px] mx-auto bg-white/90 dark:bg-dark-mode-ligth/90 py-4 rounded shadow" >
337+ < div className = "h-44 sm:h- 52 w-full max-w-[350px] mx-auto bg-white/90 dark:bg-dark-mode-ligth/90 py-4 rounded shadow" >
338338 { showResult && randomCountry && (
339339 < img src = { randomCountry . flags . svg } alt = { randomCountry . name . common } className = "w-full h-full object-contain" />
340340 ) }
@@ -345,15 +345,15 @@ export default function GameC() {
345345 </ div >
346346 </ div >
347347
348- < div className = "flex justify-between items-center px-4" >
348+ < div className = "flex justify-between items-center px-1 sm:px- 4" >
349349 < button
350350 onClick = { skip }
351351 disabled = { showResult || loading }
352352 className = "text-sm opacity-60 hover:opacity-100 transition-opacity select-none disabled:opacity-20"
353353 >
354354 Skip < span className = "text-xs opacity-50" > (S)</ span >
355355 </ button >
356- < p className = "text-xs opacity-40" > ↑↓ navigate · Enter submit · Esc close</ p >
356+ < p className = "text-xs opacity-40 hidden sm:block " > ↑↓ navigate · Enter submit · Esc close</ p >
357357 </ div >
358358 </ div >
359359 < audio ref = { winAudioRef } src = { winSound } preload = "auto" />
0 commit comments