Pp commited on
Commit
66a9988
·
verified ·
1 Parent(s): 120291b

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +90 -91
style.css CHANGED
@@ -1,139 +1,138 @@
1
- /* Base layout */
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
- /* Main 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
- /* Layout: grid + stats side by side */
66
  .grid-and-stats {
67
- display: flex;
68
- gap: 20px;
69
- justify-content: center;
70
- align-items: flex-start;
71
- flex-wrap: wrap;
72
  }
73
 
74
- /* Grid wrapper */
75
  .grid-wrapper {
76
- width: 420px;
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
  .grid {
90
- flex: 1;
91
- display: grid;
92
- grid-template-columns: repeat(15, 1fr);
93
- grid-template-rows: repeat(15, 1fr);
94
- gap: 2px;
95
- background-color: #ccc;
96
- border-radius: 8px;
97
  }
98
 
99
- /* Cells */
100
  .cell {
101
- width: 100%;
102
- height: 100%;
103
- aspect-ratio: 1 / 1;
104
- background-color: #fff;
105
- cursor: pointer;
106
- transition: background-color 0.2s ease;
107
  }
108
 
109
  .cell:hover {
110
- background-color: #f0f0f0;
111
  }
112
 
113
  .cell.filled {
114
- background-color: #007aff;
115
- border: 1px solid #005bb5;
116
  }
117
 
118
- /* Stats on the right */
119
  .stats {
120
- display: flex;
121
- flex-direction: column;
122
- gap: 14px;
123
- font-size: 16px;
124
- justify-content: center;
125
- min-width: 160px;
 
126
  }
127
 
128
  .stat-box {
129
- background-color: #f2f2f2;
130
- padding: 12px 16px;
131
- border-radius: 8px;
132
- border: 1px solid #ddd;
133
  }
134
 
135
  .stat-value {
136
- font-size: 20px;
137
- font-weight: 600;
138
- color: #444;
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
  }