-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
129 lines (120 loc) · 2.06 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
background-color: #faf8ef;
}
.heading {
display: flex;
align-items: center;
justify-content: space-between;
}
h1 {
color: #776e65;
}
.container {
position: absolute;
transform: translate(-50%, -50%);
left: 50%;
top: 50%;
}
h1 {
font-size: 4em;
}
.score-container {
color: #776e65;
}
#score {
font-weight: 600;
}
.grid {
width: 25em;
height: 25em;
background-color: #cdc1b5;
border: 5px solid #bbada0;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
border-radius: 0.5em;
}
.box {
width: 97.5px;
height: 97.5px;
border: 5px solid #bbada0;
font-size: 40px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
}
.cover-screen {
position: absolute;
top: 0;
left: 0;
background-color: #faf8ef;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#start-button {
background-color: #8f7a66;
padding: 1em 2em;
border: none;
border-radius: 0.5em;
font-size: 1em;
letter-spacing: 0.2px;
color: #ffffff;
}
.hide {
display: none;
}
.box-2 {
background-color: #eee4da;
color: #727371;
}
.box-4 {
background-color: #eee1c9;
color: #727371;
}
.box-8 {
background-color: #f3b27a;
color: white;
}
.box-16 {
background-color: #f69664;
color: white;
}
.box-32 {
background-color: #f77c5f;
color: white;
}
.box-64 {
background-color: #f75f3b;
color: white;
}
.box-128 {
background-color: #edd073;
color: white;
}
.box-256 {
background-color: #edcc63;
color: white;
}
.box-512 {
background-color: #edc651;
color: white;
}
.box-1024 {
background-color: #eec744;
color: white;
}
.box-2048 {
background-color: #ecc230;
color: white;
}