1414 box-shadow : 0 8px 32px rgba (0 , 0 , 0 , 0.1 );
1515 padding : 2rem ;
1616 margin-top : 2rem ;
17+ position : relative;
18+ }
19+
20+ .controls {
21+ display : flex;
22+ gap : 1rem ;
23+ margin-bottom : 2rem ;
24+ justify-content : center;
25+ position : sticky;
26+ left : 0 ;
27+ right : 0 ;
28+ z-index : 1 ;
29+ }
30+
31+ .gameStatus {
32+ display : flex;
33+ justify-content : space-between;
34+ align-items : center;
35+ background : rgba (52 , 73 , 94 , 0.8 );
36+ backdrop-filter : blur (10px );
37+ padding : 0.5rem 1rem ;
38+ border-radius : 12px ;
39+ color : # fff ;
40+ margin-bottom : 1rem ;
41+ font-family : 'Courier New' , monospace;
42+ font-size : 0.9rem ;
43+ box-shadow : 0 4px 6px rgba (0 , 0 , 0 , 0.1 );
44+ border : 1px solid rgba (255 , 255 , 255 , 0.1 );
45+ position : sticky;
46+ left : 0 ;
47+ right : 0 ;
48+ z-index : 1 ;
1749}
1850
1951.header {
4678 color : # 2c3e50 ;
4779}
4880
81+ @media (max-width : 480px ) {
82+ .button {
83+ padding : 0.4rem 0.6rem ;
84+ font-size : 0.9rem ;
85+ }
86+
87+ .controls {
88+ gap : 0.5rem ;
89+ }
90+ }
91+
4992.button : hover {
5093 transform : translateY (-2px );
5194 box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.1 );
120163 margin : 0 auto;
121164 grid-template-columns : repeat (auto-fill, 30px );
122165 overflow-x : auto;
123- max-width : 100 % ;
166+ max-width : none ;
124167 -webkit-overflow-scrolling : touch;
168+ scrollbar-width : thin;
169+ scrollbar-color : rgba (52 , 73 , 94 , 0.8 ) transparent;
170+ }
171+
172+ .grid ::-webkit-scrollbar {
173+ height : 8px ;
174+ }
175+
176+ .grid ::-webkit-scrollbar-track {
177+ background : transparent;
178+ }
179+
180+ .grid ::-webkit-scrollbar-thumb {
181+ background-color : rgba (52 , 73 , 94 , 0.8 );
182+ border-radius : 4px ;
125183}
126184
127185.cell {
189247
190248 .gameContainer {
191249 padding : 1rem ;
192- }
193-
194- .cell {
195- width : 25px ;
196- height : 25px ;
197- font-size : 0.9rem ;
198- }
199-
200- .title {
201- font-size : 2rem ;
202- }
203-
204- .mobileWarning {
205- background : rgba (255 , 193 , 7 , 0.2 );
206- color : # 856404 ;
207- padding : 0.75rem ;
208- border-radius : 6px ;
209- margin-bottom : 1rem ;
210- text-align : center;
211- font-size : 0.9rem ;
212- border : 1px solid rgba (255 , 193 , 7 , 0.3 );
250+ width : 100% ;
251+ overflow-x : auto;
213252 }
214253
215254 .grid {
216- padding : 0.5 px 0.5 px 0.5 px ;
217- margin : 0 -1 rem ;
218- border-radius : 0 ;
255+ margin : 0 auto ;
256+ padding : 1 px ;
257+ border-radius : 4 px ;
219258 }
220259}
0 commit comments