Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -1,139 +1,138 @@
|
|
1 |
-
/* Base
|
2 |
body {
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
}
|
14 |
|
15 |
h1 {
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
}
|
21 |
|
22 |
-
/*
|
23 |
.game-container {
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
}
|
32 |
|
33 |
/* Controls */
|
34 |
.controls {
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
}
|
41 |
|
42 |
button {
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
}
|
53 |
|
54 |
button:hover {
|
55 |
-
|
56 |
-
|
57 |
}
|
58 |
|
59 |
.mode-active {
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
}
|
64 |
|
65 |
-
/*
|
66 |
.grid-and-stats {
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
}
|
73 |
|
74 |
-
/* Grid
|
75 |
.grid-wrapper {
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
}
|
87 |
|
88 |
-
/* Grid */
|
89 |
.grid {
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
}
|
98 |
|
99 |
-
/* Cells */
|
100 |
.cell {
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
}
|
108 |
|
109 |
.cell:hover {
|
110 |
-
|
111 |
}
|
112 |
|
113 |
.cell.filled {
|
114 |
-
|
115 |
-
|
116 |
}
|
117 |
|
118 |
-
/* Stats
|
119 |
.stats {
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
|
|
126 |
}
|
127 |
|
128 |
.stat-box {
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
}
|
134 |
|
135 |
.stat-value {
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
}
|
|
|
1 |
+
/* Base */
|
2 |
body {
|
3 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
4 |
+
margin: 0;
|
5 |
+
padding: 20px;
|
6 |
+
background-color: #f9f9f9;
|
7 |
+
display: flex;
|
8 |
+
flex-direction: column;
|
9 |
+
align-items: center;
|
10 |
+
min-height: 100vh;
|
11 |
+
box-sizing: border-box;
|
12 |
+
color: #333;
|
13 |
}
|
14 |
|
15 |
h1 {
|
16 |
+
font-size: 26px;
|
17 |
+
margin: 16px 0;
|
18 |
+
color: #222;
|
19 |
+
text-align: center;
|
20 |
}
|
21 |
|
22 |
+
/* Container */
|
23 |
.game-container {
|
24 |
+
border: 1px solid #e0e0e0;
|
25 |
+
border-radius: 16px;
|
26 |
+
padding: 24px;
|
27 |
+
background-color: #fff;
|
28 |
+
box-shadow: 0 8px 16px rgba(0,0,0,0.05);
|
29 |
+
width: 100%;
|
30 |
+
max-width: 880px;
|
31 |
}
|
32 |
|
33 |
/* Controls */
|
34 |
.controls {
|
35 |
+
margin: 16px 0;
|
36 |
+
display: flex;
|
37 |
+
justify-content: center;
|
38 |
+
gap: 12px;
|
39 |
+
flex-wrap: wrap;
|
40 |
}
|
41 |
|
42 |
button {
|
43 |
+
padding: 10px 18px;
|
44 |
+
cursor: pointer;
|
45 |
+
border: 1px solid #ccc;
|
46 |
+
border-radius: 12px;
|
47 |
+
font-weight: 500;
|
48 |
+
font-size: 15px;
|
49 |
+
background-color: #f5f5f5;
|
50 |
+
color: #333;
|
51 |
+
transition: all 0.2s ease-in-out;
|
52 |
}
|
53 |
|
54 |
button:hover {
|
55 |
+
background-color: #eaeaea;
|
56 |
+
transform: translateY(-1px);
|
57 |
}
|
58 |
|
59 |
.mode-active {
|
60 |
+
border: 2px solid #007aff;
|
61 |
+
background-color: #e6f0ff;
|
62 |
+
color: #007aff;
|
63 |
}
|
64 |
|
65 |
+
/* Grid + Stats Layout */
|
66 |
.grid-and-stats {
|
67 |
+
display: flex;
|
68 |
+
justify-content: center;
|
69 |
+
align-items: flex-start;
|
70 |
+
gap: 24px;
|
71 |
+
flex-wrap: wrap;
|
72 |
}
|
73 |
|
74 |
+
/* Grid */
|
75 |
.grid-wrapper {
|
76 |
+
width: 400px;
|
77 |
+
aspect-ratio: 1 / 1;
|
78 |
+
background-color: #f0f0f0;
|
79 |
+
border: 2px solid #d0d0d0;
|
80 |
+
border-radius: 12px;
|
81 |
+
box-shadow: inset 0 0 6px rgba(0,0,0,0.05);
|
82 |
+
padding: 8px;
|
83 |
+
display: flex;
|
84 |
+
align-items: stretch;
|
85 |
+
justify-content: stretch;
|
86 |
}
|
87 |
|
|
|
88 |
.grid {
|
89 |
+
flex: 1;
|
90 |
+
display: grid;
|
91 |
+
grid-template-columns: repeat(15, 1fr);
|
92 |
+
grid-template-rows: repeat(15, 1fr);
|
93 |
+
gap: 2px;
|
94 |
+
background-color: #ccc;
|
95 |
+
border-radius: 8px;
|
96 |
}
|
97 |
|
|
|
98 |
.cell {
|
99 |
+
width: 100%;
|
100 |
+
height: 100%;
|
101 |
+
aspect-ratio: 1 / 1;
|
102 |
+
background-color: #fff;
|
103 |
+
cursor: pointer;
|
104 |
+
transition: background-color 0.2s ease;
|
105 |
}
|
106 |
|
107 |
.cell:hover {
|
108 |
+
background-color: #f0f0f0;
|
109 |
}
|
110 |
|
111 |
.cell.filled {
|
112 |
+
background-color: #007aff;
|
113 |
+
border: 1px solid #005bb5;
|
114 |
}
|
115 |
|
116 |
+
/* Stats */
|
117 |
.stats {
|
118 |
+
display: flex;
|
119 |
+
flex-direction: column;
|
120 |
+
gap: 16px;
|
121 |
+
justify-content: flex-start;
|
122 |
+
align-items: flex-start;
|
123 |
+
min-width: 180px;
|
124 |
+
flex-shrink: 0;
|
125 |
}
|
126 |
|
127 |
.stat-box {
|
128 |
+
background-color: #f2f2f2;
|
129 |
+
padding: 12px 16px;
|
130 |
+
border-radius: 8px;
|
131 |
+
border: 1px solid #ddd;
|
132 |
}
|
133 |
|
134 |
.stat-value {
|
135 |
+
font-size: 20px;
|
136 |
+
font-weight: 600;
|
137 |
+
color: #444;
|
138 |
}
|