-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
127 lines (105 loc) · 2.24 KB
/
Copy pathstyle.css
File metadata and controls
127 lines (105 loc) · 2.24 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
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body{
height: 100%;
width: 100%;
}
:root{
--bg--primary-color: #0c0c0c;
--bg--fill-color: #ff0000;
--bg--food-color: #e505fa;
--text--primary-color: #f0f0f0;
--space-xs: 4px;
--space-sm: 8px;
--space-md: 12px;
--space-lg: 24px;
--space-xl: 32px;
--space-2xl: 40px;
--space-3xl: 48px;
--border--primary-color: #333333;
/* Border Radius */
--border-radius-xs: 4px;
--border-radius-sm: 8px;
--border-radius-md: 12px;
--border-radius-lg: 16px;
--border-radius-xl: 20px;
--border-radious-2xl: 24px;
}
html{
background-color: var(--bg--primary-color);
color: var(--text--primary-color);
}
main, section{
width: 100%;
height: 100%;
}
.btn{
padding: var(--space-sm) var(--space-md);
border: none;
border-radius: var(--border-radius-sm);
cursor: pointer;
transition: all 0.3s ease;
}
.btn:hover{
transform: scale(1.1);
}
section{
padding: var(--space-2xl);
display: flex;
flex-direction: column;
height: 100%;
gap: var(--space-lg);
/* background-color: ; */
}
section .infos{
width: 100%;
display: flex;
justify-content: space-between;
}
.info{
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--border--primary-color);
border-radius: var(--border-radius-sm);
}
.board{
border: 1px solid var(--border--primary-color);
flex-grow: 1;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(50px, 1fr));
}
.block{
border: 1px solid var(--border--primary-color);
}
.fill{
background-color: var(--bg--fill-color);
}
.food{
background-color: var(--bg--food-color);
border-radius: 50%;
box-shadow: glow effect;
}
.modal{
height: 100vh;
width: 100vw;
position: fixed;
top: 0;
left: 0;
background-color: #35353587;
backdrop-filter: blur(4px);
display: flex;
justify-content: center;
align-items: center;
}
.modal .start-game, .modal .game-over{
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-lg);
}
.modal .game-over{
display: none;
}