@@ -297,10 +297,6 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
297297 >
298298 < motion . div
299299 className = "h-full w-full"
300- key = { `puzzle-container-${ currentPuzzle } ` }
301- initial = { { opacity : 0.8 , scale : 0.98 } }
302- animate = { { opacity : 1 , scale : 1 } }
303- transition = { { duration : 0.4 , ease : 'easeOut' } }
304300 style = { {
305301 position : 'relative' ,
306302 transform : 'translateZ(0)' ,
@@ -353,91 +349,7 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
353349 duration : 0 ,
354350 } ,
355351 } }
356- />
357-
358- < style jsx global > { `
359- .cg-wrap {
360- width: 100% !important;
361- height: 100% !important;
362- position: absolute !important;
363- top: 0 !important;
364- left: 0 !important;
365- }
366-
367- /* Force board to fill */
368- .cg-board {
369- background-size: cover !important;
370- position: absolute !important;
371- top: 0 !important;
372- left: 0 !important;
373- width: 100% !important;
374- height: 100% !important;
375- }
376-
377- /* Ensure pieces are properly sized and centered */
378- piece {
379- position: absolute !important;
380- width: 12.5% !important;
381- height: 12.5% !important;
382- transform-origin: center !important;
383- background-size: contain !important;
384- }
385-
386- /* Fix coordinate ranks (numbers) */
387- coords.ranks {
388- right: 0 !important;
389- top: 0 !important;
390- width: 18px !important;
391- display: flex !important;
392- flex-direction: column !important;
393- justify-content: space-around !important;
394- align-items: center !important;
395- height: 100% !important;
396- pointer-events: none !important;
397- }
398-
399- /* Fix coordinate files (letters) */
400- coords.files {
401- bottom: 0 !important;
402- left: 0 !important;
403- width: 100% !important;
404- display: flex !important;
405- flex-direction: row !important;
406- justify-content: space-around !important;
407- align-items: center !important;
408- height: 18px !important;
409- pointer-events: none !important;
410- }
411-
412- /* Center each coordinate item */
413- coords coord {
414- text-align: center !important;
415- display: block !important;
416- }
417-
418- /* Fix specific coordinate positions */
419- coords.files coord:nth-child(1) {
420- margin-left: 10px !important;
421- }
422- coords.files coord:nth-child(8) {
423- margin-right: 10px !important;
424- }
425- coords.ranks coord:nth-child(1) {
426- margin-top: 5px !important;
427- }
428- coords.ranks coord:nth-child(8) {
429- margin-bottom: 5px !important;
430- }
431-
432- /* Ensure svg elements display properly */
433- .cg-custom-svgs {
434- display: block !important;
435- height: 100% !important;
436- width: 100% !important;
437- position: absolute !important;
438- pointer-events: none !important;
439- }
440- ` } </ style >
352+ /> { ' ' }
441353 </ motion . div >
442354 </ div >
443355 < div className = "flex w-full flex-col md:w-1/2" >
@@ -553,6 +465,31 @@ export const TrainSection = ({ id }: TrainSectionProps) => {
553465 </ div >
554466 </ motion . div >
555467 </ div >
468+ < style jsx global > { `
469+ coords.ranks {
470+ right: 0 !important;
471+ top: 0 !important;
472+ width: 18px !important;
473+ display: flex !important;
474+ flex-direction: column !important;
475+ justify-content: space-around !important;
476+ align-items: center !important;
477+ height: 100% !important;
478+ pointer-events: none !important;
479+ }
480+
481+ coords.files {
482+ bottom: 0 !important;
483+ left: 0 !important;
484+ width: 100% !important;
485+ display: flex !important;
486+ flex-direction: row !important;
487+ justify-content: space-around !important;
488+ align-items: center !important;
489+ height: 18px !important;
490+ pointer-events: none !important;
491+ }
492+ ` } </ style >
556493 </ section >
557494 )
558495}
0 commit comments