-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
125 lines (123 loc) · 2.27 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
* {
user-select: none;
}
body {
align-items: center;
text-align: center;
}
hr {
width: 300px;
border: 1px solid black;
}
#board {
width: 400px;
height: 400px;
background-color: rgb(209, 200, 190);
border: 6px solid rgb(191, 186, 171);
margin: 0 auto;
display: flex;
flex-wrap: wrap;
}
.tile {
width: 90px;
height: 90px;
border: 5px solid rgb(191, 186, 171);
font-size: 40px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.tile2 {
background-color: rgb(236,228,219);
color: rgb(118,110,102);
}
.tile4 {
background-color: rgb(235,224,202);
color: rgb(118,110,102);
}
.tile8 {
background-color: rgb(233,179,130);
color: white;
}
.tile16 {
background-color: rgb(232,153,108);
color: white;
}
.tile32 {
background-color: rgb(239,124,94);
color: white;
}
.tile64 {
background-color: rgb(228,104,71);
color: white;
}
.tile128 {
background-color: rgb(226,207,113);
color: white;
}
.tile256 {
background-color: rgb(234,210,124);
color: white;
}
.tile512 {
background-color: rgb(235,205,108);
color: white;
}
.tile1024 {
background-color: rgb(236,204,98);
color: white;
}
.tile2048 {
background-color: rgb(233,201,84);
color: white;
}
.tile4096 {
background-color: rgb(236,84,76);
color: white;
}
.title8192 {
background-color: rgb(232,60,54);
color: white;
}
#GameOver {
position: fixed;
top: 0;
left: 0;
width:100%;
height:100%;
display: none;
text-align: center;
align-items: center;
justify-content: center;
background:rgba(3,233,132,0.3);
}
.gameOverContent{
display: flex;
text-align: center;
align-items: center;
justify-content: center;
width: 250px;
height: 150px;
background: rgba(255, 0, 0, 0.7);
box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
border-radius: 5px;
flex-direction: column;
}
.gameOverContent span:nth-child(2){
margin-top: 20px;
color: white;
}
#gameOverText {
font-size: x-large;
color: white;
}
#newGame {
cursor: pointer;
z-index: 1000000;
display: inline;
}
#topScore {
margin-top: 20px;
transition: all 700ms ease-in-out;
}