-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
1015 lines (888 loc) · 23.6 KB
/
styles.css
File metadata and controls
1015 lines (888 loc) · 23.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* Root CSS Variables - Light Theme */
:root {
/* Color variables */
--x-color: #FF0000; /* Player X color (Bright Red) */
--o-color: #0000FF; /* Player O color (Bright Blue) */
--bg-color: #E8ECF3; /* Background color */
--frame-color: #FFFFFF; /* Component frame color */
--text-color: #1A202C; /* Main text color */
--button-color: #6C5CE7; /* Primary button color */
--button-hover: #5D4ED6; /* Button hover state */
--accent-color: #93D7BE; /* Accent highlights */
--border-color: #E2E8F0; /* Border elements */
--shadow-color: rgba(108, 92, 231, 0.2); /* Shadow color with opacity */
/* Spacing variables for consistent layout */
--spacing-xs: 4px;
--spacing-sm: 8px;
--spacing-md: 12px;
--spacing-lg: 16px;
--spacing-xl: 20px;
/* Border styling variables */
--border-width: 2px;
--border-radius: 12px;
--border-radius-sm: 8px;
--border-radius-lg: 16px;
/* Shadow effects with layered depth */
--shadow-main: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
--shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.05);
/* Other visual effects */
--gradient-main: linear-gradient(135deg, var(--frame-color), var(--bg-color));
--transition-main: all 0.3s ease;
/* Standardized shadow system */
--shadow-raised: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
--shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}
/* Dark Theme Variables */
[data-theme="dark"] {
--bg-color: #0F172A;
--frame-color: #1E293B;
--text-color: #F8FAFC;
--button-color: #6366F1;
--button-hover: #4F46E5;
--accent-color: #475569;
--border-color: #334155;
--shadow-color: rgba(0, 0, 0, 0.3);
--shadow-main: 0 8px 20px var(--shadow-color);
--shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.05);
--gradient-main: linear-gradient(135deg, var(--frame-color), var(--bg-color));
/* Dark theme shadow adjustments */
--shadow-raised: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
--shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.2);
--shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.2);
}
/* Global Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* Body Layout */
body {
background: var(--gradient-main);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
color: var(--text-color);
}
/* Main Container Layout */
.container {
display: flex;
gap: var(--spacing-xl);
padding: var(--spacing-xl);
}
/* Left Panel Layout */
.left-panel {
display: flex;
flex-direction: column;
gap: var(--spacing-xl);
width: 300px;
}
/* Main Game Area Styling */
.game-area {
flex: 1;
background-color: var(--frame-color);
padding: var(--spacing-xl);
border-radius: var(--border-radius);
box-shadow: var(--shadow-raised);
display: flex;
flex-direction: column;
align-items: center;
gap: var(--spacing-xl);
min-width: 0;
}
/* Side Panel Layout */
.side-panel {
width: 300px;
display: flex;
flex-direction: column;
gap: var(--spacing-xl);
position: sticky;
top: var(--container-padding);
}
/* Title and Scoreboard Styling */
.title-container, .score-board {
background: var(--frame-color);
border-radius: var(--border-radius);
padding: var(--spacing-md);
box-shadow: var(--shadow-raised);
width: 100%;
}
/* Common Panel Styling */
.game-status, .move-history, .player-names {
background: var(--frame-color);
border-radius: var(--border-radius);
padding: var(--spacing-md);
box-shadow: var(--shadow-raised);
}
/* Game Title Section */
.title-container {
text-align: center;
position: relative;
padding: var(--spacing-md) var(--spacing-lg);
margin: 0 auto;
background: var(--frame-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-raised);
width: 100%;
border: 1px solid var(--border-color);
}
/* Main Title Styling */
h1 {
font-size: min(2.0em, 5vw);
font-weight: 900;
text-transform: uppercase;
margin: 0;
padding: 0;
letter-spacing: min(4px, 0.5vw);
white-space: nowrap;
background: linear-gradient(135deg,
var(--x-color) 0%,
#A3B8D9 50%,
var(--o-color) 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
line-height: 1.2;
}
/* Subtitle Styling */
.subtitle {
font-size: min(0.95em, 3vw);
font-weight: 500;
background: linear-gradient(135deg, #A3B8D9, var(--button-color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: min(3px, 0.3vw);
text-transform: uppercase;
white-space: nowrap;
}
/* Dark Theme Title Adjustments */
[data-theme="dark"] h1 {
background: linear-gradient(135deg,
var(--x-color) 0%,
#A3B8D9 50%,
var(--o-color) 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
[data-theme="dark"] .subtitle {
background: linear-gradient(135deg, #A3B8D9, var(--button-color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Player Info Section */
.player-info {
display: flex;
flex-direction: column;
gap: var(--panel-gap);
width: 100%;
max-width: 380px;
align-items: center;
}
/* Player Names Input Section */
.player-names {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
padding: var(--spacing-md);
background: var(--frame-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-main);
}
/* Player Input Field Container */
.player-input {
display: flex;
align-items: center;
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inset);
border: 2px solid transparent;
transition: var(--transition-main);
}
/* Player X Input Styling */
.player-input:first-child {
border-color: var(--x-color);
}
/* Player O Input Styling */
.player-input:last-child {
border-color: var(--o-color);
}
/* Input Labels */
.player-input label {
white-space: nowrap;
font-weight: 600;
min-width: 85px;
font-size: 0.95em;
}
/* Player X Label Color */
.player-input:first-child label {
color: var(--x-color);
}
/* Player O Label Color */
.player-input:last-child label {
color: var(--o-color);
}
/* Input Field Styling */
.player-input input {
flex: 1;
padding: var(--spacing-sm) var(--spacing-md);
border: none;
border-radius: var(--border-radius-sm);
outline: none;
transition: var(--transition-main);
background-color: var(--frame-color);
color: var(--text-color);
font-size: 0.95em;
min-width: 0;
box-shadow: var(--shadow-main);
}
/* Input Focus States */
.player-input input:focus {
box-shadow: 0 0 0 2px var(--button-color);
}
.player-input:first-child input:focus {
box-shadow: 0 0 0 2px var(--x-color);
}
.player-input:last-child input:focus {
box-shadow: 0 0 0 2px var(--o-color);
}
/* Scoreboard Styles */
.score-board {
background: var(--frame-color);
border-radius: var(--border-radius);
padding: var(--spacing-md);
box-shadow: var(--shadow-raised);
width: 100%;
max-width: 380px;
}
.score-title {
text-align: center;
font-size: 0.85em;
font-weight: 600;
margin-bottom: 6px;
letter-spacing: 1px;
color: var(--text-color);
opacity: 0.8;
text-transform: uppercase;
}
.score-container {
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
background: var(--bg-color);
padding: var(--spacing-sm);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inset);
}
.score {
padding: var(--spacing-sm) var(--spacing-md);
border-radius: var(--border-radius-sm);
font-size: 16px;
font-weight: bold;
text-align: center;
transition: var(--transition-main);
background: #FFFFFF;
box-shadow: var(--shadow-main);
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--spacing-md);
border: 2px solid;
}
.score span {
background: var(--bg-color);
padding: var(--spacing-xs) var(--spacing-sm);
border-radius: var(--border-radius-sm);
min-width: 28px;
font-size: 0.95em;
box-shadow: var(--shadow-inner);
}
.x-score {
color: var(--x-color);
border-color: var(--x-color);
}
.o-score {
color: var(--o-color);
border-color: var(--o-color);
}
.x-score:hover, .o-score:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-hover);
}
/* Game Board */
.game-board {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
width: 100%;
max-width: 500px;
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-inset);
}
.board-row {
display: flex;
gap: var(--spacing-md);
justify-content: center;
}
.cell {
width: 150px;
height: 150px;
border: none;
background-color: var(--frame-color);
border-radius: var(--border-radius-sm);
font-size: 48px;
font-weight: bold;
cursor: pointer;
transition: var(--transition-main);
box-shadow: var(--shadow-main);
}
.cell:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
background-color: #FFFFFF;
border: 2px solid var(--button-color);
}
.cell.x {
color: var(--x-color);
background: linear-gradient(135deg, #FFE8E8, #FFF);
border: 2px solid var(--x-color);
}
.cell.o {
color: var(--o-color);
background: linear-gradient(135deg, #E8FFF8, #FFF);
border: 2px solid var(--o-color);
}
/* Game Controls */
.game-controls {
width: 100%;
max-width: 380px;
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-inset);
}
.control-buttons {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-md);
width: 100%;
}
.control-btn {
padding: var(--spacing-sm) var(--spacing-md);
border: none;
border-radius: var(--border-radius-sm);
background-color: var(--button-color);
color: white;
font-weight: 600;
cursor: pointer;
transition: var(--transition-main);
box-shadow: var(--shadow-main);
width: 100%;
text-align: center;
white-space: nowrap;
font-size: 0.9em;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
}
.control-btn:nth-child(2), .control-btn:nth-child(3) {
background-color: var(--accent-color);
color: var(--text-color);
}
.control-btn:nth-child(2):hover:not(:disabled),
.control-btn:nth-child(3):hover:not(:disabled) {
background: var(--accent-color);
opacity: 0.9;
}
.control-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
background: var(--button-hover);
}
.control-btn:disabled {
background: #B0B0B0; /* Gray color for disabled state */
cursor: not-allowed;
transform: none;
box-shadow: none;
opacity: 0.6;
}
/* Game Info */
.game-info {
display: grid;
grid-template-columns: 1fr;
gap: var(--spacing-md);
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inset);
}
#current-player, #timer, #moves {
padding: var(--spacing-md);
border-radius: var(--border-radius-sm);
background: var(--frame-color);
box-shadow: var(--shadow-main);
font-weight: 600;
color: var(--text-color);
transition: var(--transition-main);
font-size: 0.95em;
text-align: center;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
gap: var(--spacing-md);
border: 2px solid var(--border-color);
position: relative;
}
#current-player::before {
content: "";
width: 20px;
height: 20px;
background-color: var(--button-color);
border-radius: 50%;
opacity: 0.8;
position: absolute;
left: var(--spacing-md);
}
#timer::before {
content: "";
width: 20px;
height: 20px;
background: var(--button-color);
-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm1-8.5V7c0-.6-.4-1-1-1s-1 .4-1 1v5c0 .3.1.5.3.7l3 3c.2.2.4.3.7.3.3 0 .5-.1.7-.3.4-.4.4-1 0-1.4L13 11.5z"/></svg>') center/contain;
mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zm1-8.5V7c0-.6-.4-1-1-1s-1 .4-1 1v5c0 .3.1.5.3.7l3 3c.2.2.4.3.7.3.3 0 .5-.1.7-.3.4-.4.4-1 0-1.4L13 11.5z"/></svg>') center/contain;
opacity: 0.8;
position: absolute;
left: var(--spacing-md);
}
#moves::before {
content: "";
width: 20px;
height: 20px;
background: var(--button-color);
-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 4h4v4H4V4zm6 0h4v4h-4V4zm6 0h4v4h-4V4zM4 10h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4zM4 16h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4z"/></svg>') center/contain;
mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 4h4v4H4V4zm6 0h4v4h-4V4zm6 0h4v4h-4V4zM4 10h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4zM4 16h4v4H4v-4zm6 0h4v4h-4v-4zm6 0h4v4h-4v-4z"/></svg>') center/contain;
opacity: 0.8;
position: absolute;
left: var(--spacing-md);
}
#current-player.x-turn::before {
background-color: var(--x-color);
opacity: 1;
}
#current-player.o-turn::before {
background-color: var(--o-color);
opacity: 1;
}
/* Dark mode adjustments */
[data-theme="dark"] #current-player,
[data-theme="dark"] #timer,
[data-theme="dark"] #moves {
background: var(--bg-color);
border-color: var(--border-color);
}
[data-theme="dark"] #current-player.x-turn {
border-color: var(--x-color);
}
[data-theme="dark"] #current-player.o-turn {
border-color: var(--o-color);
}
/* Move History */
.move-history h2 {
color: var(--text-color);
margin-bottom: 10px;
text-align: center;
font-size: 0.85em;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
opacity: 0.8;
}
.history-container {
height: 180px;
overflow-y: auto;
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inset);
margin-top: var(--spacing-md);
white-space: pre-line;
line-height: 1.5;
font-size: 0.9em;
min-height: 180px;
border: 2px solid var(--border-color);
}
/* Switch Styles */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 30px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg-color);
transition: .4s;
border-radius: 34px;
box-shadow: var(--shadow-inner);
border: 2px solid var(--border-color);
}
.slider:before {
position: absolute;
content: "";
height: 22px;
width: 22px;
left: 4px;
background: var(--frame-color);
transition: .4s;
border-radius: 50%;
box-shadow: var(--shadow-main);
font-size: 16px;
text-align: center;
line-height: 22px;
top: 50%;
transform: translateY(-50%);
}
input:checked + .slider {
background: linear-gradient(135deg, var(--button-color), var(--button-hover));
border-color: var(--button-color);
}
input:checked + .slider:before {
transform: translate(26px, -50%);
content: "";
}
/* Responsive Design */
@media (max-width: 1024px) {
.container {
flex-direction: column;
align-items: center;
gap: var(--spacing-lg);
padding: var(--spacing-lg);
}
.side-panel, .game-area {
width: 100%;
max-width: 380px;
}
}
@media (max-width: 768px) {
.container {
padding: var(--spacing-md);
gap: var(--spacing-md);
}
.title-container {
padding: var(--spacing-sm) var(--spacing-md);
}
h1 {
font-size: 2em;
letter-spacing: 3px;
}
.subtitle {
font-size: 0.9em;
letter-spacing: 1.5px;
}
.cell {
width: 80px;
height: 80px;
font-size: 32px;
}
.control-btn {
height: 34px;
font-size: 0.85em;
}
.history-container {
height: 150px;
min-height: 150px;
}
}
@media (max-width: 480px) {
.cell {
width: 70px;
height: 70px;
font-size: 28px;
}
.control-buttons {
grid-template-columns: 1fr;
}
.score {
font-size: 14px;
}
#current-player, #timer, #moves {
font-size: 0.85em;
height: 34px;
}
h1 {
font-size: 1.8em;
letter-spacing: 2px;
}
.subtitle {
font-size: 0.8em;
letter-spacing: 1px;
}
}
/* Touch device optimizations */
@media (hover: none) {
.cell:hover {
transform: none;
box-shadow: var(--shadow-main);
}
.control-btn:hover:not(:disabled) {
transform: none;
}
}
.theme-switch {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}
.theme-switch span {
color: var(--text-color);
font-size: 14px;
}
/* Dark mode specific overrides */
[data-theme="dark"] .cell {
background-color: #334155;
}
[data-theme="dark"] .cell:hover {
background-color: #475569;
}
[data-theme="dark"] .cell.x {
background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), #334155);
}
[data-theme="dark"] .cell.o {
background: linear-gradient(135deg, rgba(0, 0, 255, 0.15), #334155);
}
[data-theme="dark"] .player-input input {
background-color: #334155;
border-color: #475569;
color: #F8FAFC;
}
[data-theme="dark"] .player-input input:hover,
[data-theme="dark"] .player-input input:focus {
background-color: #475569;
border-color: var(--button-color);
}
[data-theme="dark"] .history-container {
background-color: #334155;
color: #F8FAFC;
}
[data-theme="dark"] h1 {
background: linear-gradient(135deg,
var(--x-color) 0%,
#A3B8D9 50%,
var(--o-color) 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
[data-theme="dark"] .game-info {
background-color: #1E293B;
}
[data-theme="dark"] #current-player,
[data-theme="dark"] #timer {
background-color: #334155;
border-color: #475569;
color: #F8FAFC;
}
[data-theme="dark"] .score {
background-color: #334155;
}
[data-theme="dark"] .score span {
background: linear-gradient(135deg, #475569, #334155);
color: #F8FAFC;
}
.game-status {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
padding: var(--spacing-md);
background: var(--frame-color);
border-radius: var(--border-radius);
box-shadow: var(--shadow-main);
}
.game-info {
display: flex;
flex-direction: column;
gap: var(--spacing-md);
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inner);
}
.game-mode {
background: var(--frame-color);
border-radius: var(--border-radius);
padding: var(--spacing-md);
box-shadow: var(--shadow-main);
display: flex;
flex-direction: column;
gap: var(--spacing-md);
}
.mode-switch {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--spacing-md);
background: var(--bg-color);
border-radius: var(--border-radius-sm);
box-shadow: var(--shadow-inset);
color: var(--text-color);
font-weight: 600;
font-size: 0.95em;
position: relative;
overflow: hidden;
border: 2px solid var(--border-color);
height: 48px;
}
[data-theme="dark"] .mode-switch {
background: var(--bg-color);
border-color: var(--button-color);
color: var(--text-color);
}
#current-player, #timer {
padding: var(--spacing-md);
border-radius: var(--border-radius-sm);
background: var(--frame-color);
box-shadow: var(--shadow-main);
font-weight: 600;
color: var(--text-color);
transition: var(--transition-main);
font-size: 0.95em;
text-align: center;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
border: 2px solid var(--border-color);
}
#current-player.x-turn {
border-color: var(--x-color);
color: var(--x-color);
}
#current-player.o-turn {
border-color: var(--o-color);
color: var(--o-color);
}
#timer {
border-color: var(--accent-color);
color: var(--text-color);
}
/* Dark mode adjustments */
[data-theme="dark"] .mode-switch {
background: var(--bg-color);
border-color: var(--button-color);
}
[data-theme="dark"] #current-player,
[data-theme="dark"] #timer {
background: var(--bg-color);
color: var(--text-color);
}
[data-theme="dark"] #current-player.x-turn {
color: var(--x-color);
}
[data-theme="dark"] #current-player.o-turn {
color: var(--o-color);
}
/* Dark mode adjustments */
[data-theme="dark"] .mode-switch,
[data-theme="dark"] #current-player,
[data-theme="dark"] #timer,
[data-theme="dark"] .history-container {
background: var(--bg-color);
border-color: var(--border-color);
}
[data-theme="dark"] .slider {
background: var(--bg-color);
border-color: var(--border-color);
}
#current-player::before, #timer::before, #moves::before {
background-color: var(--text-color);
}
[data-theme="dark"] .subtitle {
background: linear-gradient(135deg, #6366F1, #475569);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Dark mode title adjustments */
[data-theme="dark"] h1 {
background: linear-gradient(135deg,
var(--x-color) 0%,
#A3B8D9 50%,
var(--o-color) 100%
);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
[data-theme="dark"] .subtitle {
background: linear-gradient(135deg, #A3B8D9, var(--button-color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Main containers - raised effect */
.title-container,
.game-status,
.move-history,
.player-names,
.game-mode,
.score-board {
box-shadow: var(--shadow-raised);
}
/* Inner elements - inset effect */
.game-board,
.game-controls,
.game-info,
.history-container,
.score-container,
.player-input,
.mode-switch {
box-shadow: var(--shadow-inset);
}
/* Interactive elements - raised with hover effect */
.cell,
.control-btn,
.score {
box-shadow: var(--shadow-raised);
transition: var(--transition-main);
}
.cell:hover,
.control-btn:hover:not(:disabled),