-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
109 lines (97 loc) · 2.31 KB
/
styles.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
@font-face {
font-family: 'HakgyoansimNadeuriTTF-B';
src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/[email protected]/HakgyoansimNadeuriTTF-B.woff2') format('woff2');
font-weight: 700;
font-style: normal;
}
body {
font-family: 'HakgyoansimNadeuriTTF-B', Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(120deg, #ff9a9e, #fad0c4);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.game-container {
background: #fff;
padding: 20px;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
text-align: center;
width: 340px;
}
h1 {
font-size: 2rem;
margin-bottom: 15px;
color: #333;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
#message {
font-size: 1rem;
margin: 15px 0;
color: #555;
}
button {
font-family: inherit;
font-size: 1rem;
padding: 10px 15px;
background-color: #ff79c6;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
margin: 5px;
}
button:hover {
background-color: #ff47b2;
box-shadow: 0 4px 10px rgba(255, 121, 198, 0.5);
}
#game-container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
background: #bbada0;
padding: 10px;
border-radius: 10px;
margin: 10px auto;
width: 320px;
height: 320px;
}
.grid {
width: 70px;
height: 70px;
background: #cdc1b4;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
font-weight: bold;
color: #776e65;
border-radius: 5px;
transition: all 0.2s ease;
}
.tile-2 { background: #eee4da; }
.tile-4 { background: #ede0c8; }
.tile-8 { background: #f2b179; color: #fff; }
.tile-16 { background: #f59563; color: #fff; }
.tile-32 { background: #f67c5f; color: #fff; }
.tile-64 { background: #f65e3b; color: #fff; }
.tile-128 { background: #edcf72; color: #fff; }
.tile-256 { background: #edcc61; color: #fff; }
.tile-512 { background: #edc850; color: #fff; }
.tile-1024 { background: #edc53f; color: #fff; }
.tile-2048 { background: #edc22e; color: #fff; }
#controls {
margin: 10px 0;
display: flex;
flex-direction: column;
align-items: center;
}
.control-btn {
font-size: 1.2rem;
width: 60px;
height: 40px;
}