Spaces:
Running
Running
Create style.css
Browse files
style.css
CHANGED
@@ -1,28 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body {
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
h1 {
|
7 |
-
|
8 |
-
|
|
|
9 |
}
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
}
|
17 |
|
18 |
-
.
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
border-radius: 16px;
|
24 |
}
|
25 |
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
* {
|
2 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
box-sizing: border-box;
|
5 |
+
}
|
6 |
+
|
7 |
body {
|
8 |
+
font-family: Arial, sans-serif;
|
9 |
+
background-color: #faf8ef;
|
10 |
+
display: flex;
|
11 |
+
justify-content: center;
|
12 |
+
align-items: center;
|
13 |
+
min-height: 100vh;
|
14 |
+
}
|
15 |
+
|
16 |
+
.container {
|
17 |
+
text-align: center;
|
18 |
}
|
19 |
|
20 |
h1 {
|
21 |
+
font-size: 48px;
|
22 |
+
color: #776e65;
|
23 |
+
margin-bottom: 20px;
|
24 |
}
|
25 |
|
26 |
+
.score-container {
|
27 |
+
display: flex;
|
28 |
+
justify-content: space-between;
|
29 |
+
align-items: center;
|
30 |
+
margin-bottom: 20px;
|
31 |
}
|
32 |
|
33 |
+
.score-box {
|
34 |
+
background-color: #bbada0;
|
35 |
+
padding: 10px 20px;
|
36 |
+
border-radius: 5px;
|
37 |
+
color: white;
|
|
|
38 |
}
|
39 |
|
40 |
+
#new-game {
|
41 |
+
background-color: #8f7a66;
|
42 |
+
color: white;
|
43 |
+
border: none;
|
44 |
+
padding: 10px 20px;
|
45 |
+
border-radius: 5px;
|
46 |
+
cursor: pointer;
|
47 |
+
font-size: 16px;
|
48 |
}
|
49 |
+
|
50 |
+
.grid-container {
|
51 |
+
background-color: #bbada0;
|
52 |
+
padding: 10px;
|
53 |
+
border-radius: 5px;
|
54 |
+
display: inline-block;
|
55 |
+
}
|
56 |
+
|
57 |
+
.grid-row {
|
58 |
+
display: flex;
|
59 |
+
}
|
60 |
+
|
61 |
+
.grid-cell {
|
62 |
+
width: 100px;
|
63 |
+
height: 100px;
|
64 |
+
background-color: #cdc1b4;
|
65 |
+
margin: 5px;
|
66 |
+
border-radius: 5px;
|
67 |
+
display: flex;
|
68 |
+
justify-content: center;
|
69 |
+
align-items: center;
|
70 |
+
font-size: 36px;
|
71 |
+
font-weight: bold;
|
72 |
+
color: #776e65;
|
73 |
+
}
|
74 |
+
|
75 |
+
.tile {
|
76 |
+
background-color: #eee4da;
|
77 |
+
}
|
78 |
+
|
79 |
+
.tile-2 { background-color: #eee4da; }
|
80 |
+
.tile-4 { background-color: #ede0c8; }
|
81 |
+
.tile-8 { background-color: #f2b179; color: white; }
|
82 |
+
.tile-16 { background-color: #f59563; color: white; }
|
83 |
+
.tile-32 { background-color: #f67c5f; color: white; }
|
84 |
+
.tile-64 { background-color: #f65e3b; color: white; }
|
85 |
+
.tile-128 { background-color: #edcf72; color: white; }
|
86 |
+
.tile-256 { background-color: #edcc61; color: white; }
|
87 |
+
.tile-512 { background-color: #edc850; color: white; }
|
88 |
+
.tile-1024 { background-color: #edc53f; color: white; }
|
89 |
+
.tile-2048 { background-color: #edc22e; color: white; }
|