-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
183 lines (169 loc) · 3.16 KB
/
index.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
body {
background-color: #FAF8EF;
}
/* the heading css */
.heading {
text-align: center;
color: #776E65;
}
.wrapper {
text-align: center;
margin-top: 1.6%;
margin-bottom: 1.6%;
position: relative;
left: 23px;
}
/* for the score and highscore */
.score, .highScore {
display: inline-block;
background-color: #776E65;
font-weight: bold;
margin-left: 2%;
margin-right: 2%;
color: #fff;
padding: 1%;
border-radius: 20%;
}
/* the for the newgame btn */
.btn, .btn:hover, .btn:active {
background-color: #EDCF72;
border-color: #EDCF72;
}
.row {
text-align: center;
margin: 0 22.9%;
position: relative;
left: 5px;
}
/* the hidden paragraph which shows gameWon or gameOver later */
.hidden {
visibility: hidden;
margin: 0;
padding: 0;
position: absolute;
}
/* The text settings for gameOver or gameWon */
.GameoverText {
font-size: 3.6rem;
font-weight: 900;
margin-top: 5%;
margin-left: 27%;
opacity: 1;
position: absolute;
}
.boxContainer {
padding: 0%;
margin: 0%;
}
/* this is the default gameBox */
.gameBox {
height: 150px;
width: 150px;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #CDC1B4;
display: inline-block;
}
/* the gameBox belows are adjusted according to the numbers they show so gameBox2 is for if the box is 2 */
.gameBox2 {
height: 150px;
width: 150px;
color: #776E65;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #EEE4DA;
display: inline-block;
}
.gameBox4 {
height: 150px;
width: 150px;
color: #776E65;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #EDE0C8;
display: inline-block;
}
.gameBox8 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #F2B179;
display: inline-block;
}
.gameBox16 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #F59563;
display: inline-block;
}
.gameBox32 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #F67C5F;
display: inline-block;
}
.gameBox64 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #F65E3B;
display: inline-block;
}
.gameBox128 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #EDCF72;
display: inline-block;
}
.gameBox256 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #EDCC61;
display: inline-block;
}
.gameBox512 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #ebc547;
display: inline-block;
}
.gameBox1024 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #e8bd30;
display: inline-block;
}
.gameBox2048 {
height: 150px;
width: 150px;
color: #fff;
border: 10px solid #BBADA0;
border-radius: 20%;
background-color: #b89214;
display: inline-block;
}
.boxText {
margin-top: 30%;
}