-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
137 lines (124 loc) · 3.42 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
130
131
132
133
134
135
136
137
/* General Styles */
body {
background-color: var(--background-color);
font-family: 'Press Start 2P', cursive;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
overflow: hidden;
}
body.dark-theme {
--background-color: #434343;
--text-color: white;
}
body.light-theme {
--background-color: #e0e0e0;
--text-color: black;
}
/* Container Styles */
.container {
background-color: rgba(255, 255, 255, 0.4);
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
border: 3px solid black;
border-radius: 10px;
box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.3);
position: relative;
}
/* Title Bar Styles */
.title-bar {
font-size: 2em;
margin-bottom: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Grid Styles */
.grid-container {
display: grid;
grid-template-columns: repeat(4, 100px);
grid-template-rows: repeat(4, 100px);
gap: 10px;
background-color: #bbada0;
border: 2px solid black;
border-radius: 5px;
box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.2);
}
.grid-cell {
width: 100px;
height: 100px;
border-radius: 5px;
background-color: #cdc1b4;
font-size: 24px;
font-weight: bold;
color: white;
display: flex;
justify-content: center;
align-items: center;
}
/* Tile Color Styles */
.tile-2 { background-color: #eee4da; color: #776e65; }
.tile-4 { background-color: #ede0c8; color: #776e65; }
.tile-8 { background-color: #f2b179; color: #f9f6f2; }
.tile-16 { background-color: #f59563; color: #f9f6f2; }
.tile-32 { background-color: #f67c5f; color: #f9f6f2; }
.tile-64 { background-color: #f65e3b; color: #f9f6f2; }
.tile-128 { background-color: #edcf72; color: #f9f6f2; }
.tile-256 { background-color: #edcc61; color: #f9f6f2; }
.tile-512 { background-color: #edc850; color: #f9f6f2; }
.tile-1024 { background-color: #edc53f; color: #f9f6f2; }
.tile-2048 { background-color: #edc22e; color: #f9f6f2; }
.tile-4096 { background-color: #eee1c9; color: #f9f6f2; }
.tile-8192 { background-color: #f2b179; color: #f9f6f2; }
.tile-16384 { background-color: #f59563; color: #f9f6f2; }
.tile-32768 { background-color: #f67c5f; color: #f9f6f2; }
.tile-65536 { background-color: #f65e3b; color: #f9f6f2; }
/* Button Styles */
.button-container {
background-color: #777777;
color: white;
padding: 10px 20px;
border: 2px solid black;
border-radius: 10px;
cursor: pointer;
font-family: 'Press Start 2P', cursive;
width: 235px;
box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.3);
text-align: center;
}
/* Arrow Styles */
.arrow-container {
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
padding: 20px 0;
}
.arrow {
width: 60px;
height: 60px;
background-color: #777;
border: 2px solid black;
border-radius: 5px;
opacity: 0.6;
cursor: pointer;
position: relative;
}
.arrow::before {
content: '';
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
border: 15px solid transparent;
}
.up::before { border-bottom-color: #fff; }
.down::before { border-top-color: #fff; }
.left::before { border-right-color: #fff; }
.right::before { border-left-color: #fff; }
.arrow:hover {
opacity: 1;
}