forked from CPSquad1/2048
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
87 lines (79 loc) · 1.45 KB
/
style.css
File metadata and controls
87 lines (79 loc) · 1.45 KB
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
body {
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
}
/* Center game container and add padding */
.game-container {
padding: 2rem;
border-radius: 10px;
box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
display: flex;
flex-direction: column;
align-items: center;
width: 95vw;
max-width: 520px;
}
/* Header styling */
.score-container {
display: inline-block;
margin: 0 8px;
}
/* Grid and cells */
.grid-wrapper {
width: 100%;
display: flex;
justify-content: center;
}
.grid-container {
width: 100%;
max-width: 400px;
aspect-ratio: 1/1;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(4, 1fr);
gap: 12px;
background: #bbada0;
padding: 14px;
border-radius: 6px;
width: 100%;
height: 100%;
box-sizing: border-box;
aspect-ratio: 1/1;
}
.grid-cell {
background: #eee4da;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.4rem;
color: #776e65;
user-select: none;
aspect-ratio: 1/1;
/*squares update-2 */
width: 100%;
height: 100%;
}
@media (max-width: 500px) {
.game-container {
max-width: 98vw;
padding: 1rem;
}
.grid-container {
max-width: 90vw;
}
.grid {
gap: 8px;
padding: 8px;
}
}