Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (110 loc) · 1.96 KB
/
Copy pathstyle.css
File metadata and controls
118 lines (110 loc) · 1.96 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary-color: #020202;
--text-primary-color: #f2f2f2;
/* spacing variable */
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 2.5rem;
--space-3xl: 3rem;
}
html,
body {
width: 100%;
height: 100%;
background-color: var(--bg-primary-color);
color: var(--text-primary-color);
font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
"Helvetica Neue",
sans-serif;
}
.btn {
padding: 0.8rem;
font-size: 1.2rem;
border: none;
border-radius: 10px;
transition: all 0.1s ease;
cursor: pointer;
}
.btn:hover {
transform: scale(1.1);
}
main,
section {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 5px;
}
section .infos {
width: 100%;
display: flex;
justify-content: space-between;
padding: 2rem;
align-items: space;
/* gap: 10px; */
}
.info {
padding: 0.5rem;
border-radius: 0.2rem;
border: 2px solid #e4e3e3;
}
.board {
border: 2px solid #f2f2f23a;
display: grid;
flex-grow: 1;
grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
grid-template-rows: repeat(auto-fill, minmax(30px, 1fr));
margin: 0.5rem;
}
.blocks {
border: 1px solid #81818161;
}
.fill {
background-color: #f2f2f2;
}
.food {
background-color: red;
}
.modal {
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
display: flex;
justify-content: center;
align-items: center;
background-color: #5353536a;
backdrop-filter: blur(4px);
}
.start-game,
.game-over {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 0.9rem;
}
.game-over{
display: none;
}
.start-game h3 {
font-size: 1.5rem;
}