Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
body {
|
2 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
3 |
margin: 0;
|
@@ -11,6 +12,7 @@ body {
|
|
11 |
color: #333;
|
12 |
}
|
13 |
|
|
|
14 |
h1 {
|
15 |
font-size: 28px;
|
16 |
margin: 20px 0;
|
@@ -18,6 +20,7 @@ h1 {
|
|
18 |
text-align: center;
|
19 |
}
|
20 |
|
|
|
21 |
.game-container {
|
22 |
border: 1px solid #e0e0e0;
|
23 |
border-radius: 16px;
|
@@ -28,6 +31,7 @@ h1 {
|
|
28 |
max-width: 800px;
|
29 |
}
|
30 |
|
|
|
31 |
.controls {
|
32 |
margin: 20px 0;
|
33 |
display: flex;
|
@@ -59,30 +63,35 @@ button:hover {
|
|
59 |
color: #007aff;
|
60 |
}
|
61 |
|
|
|
62 |
.grid-wrapper {
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
background-color: #f0f0f0;
|
67 |
border: 2px solid #d0d0d0;
|
68 |
border-radius: 12px;
|
69 |
box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
-
|
73 |
.grid {
|
|
|
74 |
display: grid;
|
75 |
-
grid-template-columns: repeat(15,
|
76 |
-
grid-template-rows: repeat(15,
|
77 |
gap: 2px;
|
78 |
background-color: #ccc;
|
79 |
border-radius: 8px;
|
80 |
-
overflow: hidden;
|
81 |
-
max-width: 100%;
|
82 |
}
|
83 |
|
|
|
84 |
.cell {
|
85 |
width: 100%;
|
|
|
86 |
aspect-ratio: 1 / 1;
|
87 |
background-color: #fff;
|
88 |
cursor: pointer;
|
@@ -98,6 +107,7 @@ button:hover {
|
|
98 |
border: 1px solid #005bb5;
|
99 |
}
|
100 |
|
|
|
101 |
.stats {
|
102 |
margin-top: 20px;
|
103 |
font-size: 16px;
|
|
|
1 |
+
/* Layout & Base */
|
2 |
body {
|
3 |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
4 |
margin: 0;
|
|
|
12 |
color: #333;
|
13 |
}
|
14 |
|
15 |
+
/* Title */
|
16 |
h1 {
|
17 |
font-size: 28px;
|
18 |
margin: 20px 0;
|
|
|
20 |
text-align: center;
|
21 |
}
|
22 |
|
23 |
+
/* Game Container */
|
24 |
.game-container {
|
25 |
border: 1px solid #e0e0e0;
|
26 |
border-radius: 16px;
|
|
|
31 |
max-width: 800px;
|
32 |
}
|
33 |
|
34 |
+
/* Control Buttons */
|
35 |
.controls {
|
36 |
margin: 20px 0;
|
37 |
display: flex;
|
|
|
63 |
color: #007aff;
|
64 |
}
|
65 |
|
66 |
+
/* Grid Wrapper + Grid */
|
67 |
.grid-wrapper {
|
68 |
+
width: 100%;
|
69 |
+
max-width: 700px;
|
70 |
+
aspect-ratio: 1 / 1;
|
71 |
background-color: #f0f0f0;
|
72 |
border: 2px solid #d0d0d0;
|
73 |
border-radius: 12px;
|
74 |
box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
|
75 |
+
padding: 8px;
|
76 |
+
display: flex;
|
77 |
+
align-items: stretch;
|
78 |
+
justify-content: stretch;
|
79 |
}
|
80 |
|
|
|
81 |
.grid {
|
82 |
+
flex: 1;
|
83 |
display: grid;
|
84 |
+
grid-template-columns: repeat(15, 1fr);
|
85 |
+
grid-template-rows: repeat(15, 1fr);
|
86 |
gap: 2px;
|
87 |
background-color: #ccc;
|
88 |
border-radius: 8px;
|
|
|
|
|
89 |
}
|
90 |
|
91 |
+
/* Grid Cells */
|
92 |
.cell {
|
93 |
width: 100%;
|
94 |
+
height: 100%;
|
95 |
aspect-ratio: 1 / 1;
|
96 |
background-color: #fff;
|
97 |
cursor: pointer;
|
|
|
107 |
border: 1px solid #005bb5;
|
108 |
}
|
109 |
|
110 |
+
/* Stats Display */
|
111 |
.stats {
|
112 |
margin-top: 20px;
|
113 |
font-size: 16px;
|