-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmenu.css
309 lines (280 loc) · 7.44 KB
/
menu.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
@font-face {
font-family: 'quicksand';
src: url(assets/fonts/Quicksand/Quicksand-VariableFont_wght.ttf);
}
@keyframes bounce {
0% {
transform: translateY(10px);
}
100%{
transform: translateY(-10px);
}
}
:root {
--panel1-color: rgba(214, 214, 214, 0.52);
--panel2-color: rgba(214, 214, 214, 0.52);
--panel3-color: rgba(214, 214, 214, 0.52);
--panel1-color-hover: rgba(214, 214, 214, 0.65);
}
*{
margin: 0;
padding: 0;
}
body{
display: flex;
position: relative;
}
.topbar {
z-index: 10000;
position: fixed;
top: 0;
height: 10vh;
width: 100vw;
background-color: rgba(0, 0, 0, 0.39);
}
.container {
display: flex;
flex-wrap: wrap;
width: 100vw;
height: 100vh;
overflow: hidden;
z-index: 1;
}
.tile {
width: 50px; /* You can change the size as required */
height: 50px;
transition: background-color 2s;
}
.front, .back {
position: absolute;
width: 50px;
height: 50px;
backface-visibility: hidden;
}
#tileContainer {
display: flex;
position: relative;
overflow: hidden; /* Ensures the ::before doesn't affect outside of tileContainer */
}
.mainContainer {
box-sizing: border-box;
overflow: hidden;
position: absolute;
width: 100vw;
height: 100vh;
display: flex;
}
#tileContainer::before {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.5); /* Darkens by adding a 50% black overlay. Adjust as needed. */
backdrop-filter: blur(1px); /* Blurs underlying content */
pointer-events: none; /* Ensures interactions aren't blocked */
z-index: 1; /* Places it above the tiles but below other content */
}
.mainTitle {
cursor: default;
box-sizing: border-box;
text-shadow: 0px 5px 4px black;
left: 10vw;
position: absolute;
width: 80vw; /* 60% of viewport width */
height: 20vh; /* 60% of viewport height */
display: flex;
justify-content: center;
align-items: center;
background: transparent;
z-index: 2; /* To ensure it sits above the blurred background */
font-size: 4em; /* Adjust font size as required */
color: white; /* You can adjust this as needed */
font-family: 'quicksand';
}
.mainContent {
display: none; /* Initially hidden */
opacity: 1; /* Needed for the fade-in effect */
transition: opacity 1s; /* For fading effect */
box-sizing: border-box;
text-shadow: 0px 5px 4px black;
left: 10vw;
top: 20vh;
position: absolute;
width: 80vw; /* 60% of viewport width */
height: 80vh; /* 60% of viewport height */
display: flex;
justify-content: center;
align-items: center;
background: transparent;
z-index: 2; /* To ensure it sits above the blurred background */
font-size: 2em; /* Adjust font size as required */
color: white; /* You can adjust this as needed */
font-family: 'quicksand';
}
.panel {
border-top-right-radius: 10%;
border-top-left-radius: 10%;
font-family: 'quicksand';
cursor: pointer;
box-sizing: border-box;
height: 100%;
flex: 1; /* Equal width for all panels */
display: flex;
flex-direction: column; /* Stack children vertically */
align-items: center; /* Center children horizontally */
padding: 10px;
background: transparent;
transition: background-color 0.5s, color 0.5s ease, text-shadow 0.5s ease; /* Transition for hover and focus */
}
/* Define colors for panels */
/* Styles for titles */
.panel-title {
animation: bounce 2.1s ease 0s infinite alternate paused;
font-family: 'quicksand';
font-size: 1.9em;
margin-bottom: 10px; /* Spacing between title and separator */
}
/* Separator line beneath the title */
.panel-separator {
width: 80%; /* Adjust if you want a different length */
margin-bottom: 20px; /* Spacing between separator and description */
transition: border-color 0.5s ease;
}
.panel-separator:hover {
}
/* Styles for descriptions */
.panel-description {
font-size: 1em;
text-align: left;
width: 100%; /* Ensure it takes the full width of the panel */
}
/* Hover and focus styles */
.panel:hover {
filter: brightness(1.3); /* Brighten the color slightly */
color: black;
text-shadow: none;
background-color: var(--panel1-color-hover);
}
/* Change separator color when panel is hovered */
.panel:hover .panel-separator {
border-color: black;
}
.panel:hover .panel-title {
animation-play-state: running;
}
.panel:active {
filter: brightness(1.1); /* Darken the color slightly */
}
/* Home button styles */
.homeBtn {
cursor: pointer;
width: calc(4vh + 3vw);
height: calc(3.25vh + 3vw);
z-index: 100000;
position: fixed;
top: 2.2vh; /* Adjust the top position for the home button */
left: 2vh; /* Adjust the left position for the home button */
-webkit-filter: invert(100%); /* Safari/Chrome */
filter: invert(100%);
transition: transform 0.15s;
}
.homeBtn:hover {
transform: scale(1.2);
}
.homeBtn:active {
transform: scale(1.2) translateY(4px);
}
.settingsBtn {
cursor: pointer;
width: calc(4vh + 2vw);
height: calc(4vh + 2vw);
z-index: 100000;
position: fixed;
top: 2vh; /* Adjust the top position for the home button */
right: 3vh; /* Adjust the left position for the home button */
background-image: url("assets/imgs/settings.png");
-webkit-filter: invert(100%);
filter: invert(100%);
transition: transform 0.15s;
}
.settingsBtn:hover {
transform: scale(1.2);
}
.settingsBtn:active {
transition: transform 0.3s;
transform: scale(1.2) translateY(4px) rotate(360deg);
}
.popup {
display: none;
position: fixed;
background-color: rgb(27, 33, 113);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
align-items: stretch;
width: 200px;
height: 150px;
z-index: 100000;
top: 2vh;
right: 2vh;
border: 2px; /* Add border style */
border-radius: 10px;
overflow: hidden;
}
.popup-button1,.popup-button2 {
width: 100%; /* Make the buttons take up 100% of the width */
height: 50%;
flex: 1;
cursor: pointer;
box-sizing: border-box;
text-shadow: 0px 5px 4px black;
display: flex;
justify-content: center;
align-items: center;
background: transparent;
z-index: 2;
font-size: 1.25em;
color: white;
font-family: 'quicksand';
overflow: hidden;
outline: none;
box-shadow: none;
border: 0;
}
.popup-button1{
justify-content: left;
padding-inline-start: 15px;
position: relative;
}
.addUserImg {
/* background-image: url("assets/imgs/addUser.svg"); */
cursor: pointer;
z-index: 100000;
position: absolute;
width: 40px; /* Adjust the width as needed */
height: 40px; /* Adjust the height as needed */
top: 25%; /* Adjust as needed */
left: 85%; /* Adjust as needed */
transform: translate(-50%, -50%);
-webkit-filter: invert(100%); /* Safari/Chrome */
filter: invert(100%);
pointer-events: none;
}
.popup-button1:hover,
.popup-button2:hover {
filter: brightness(1.3); /* Brighten the color slightly */
color: black;
text-shadow: none;
background-color: var(--panel1-color-hover);
box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.8) inset;
font-weight: bold;
}
.popup-button1:hover + .addUserImg {
filter: invert(0%);
-webkit-filter: invert(0%);
}
.popup-content {
display: flex;
flex-direction: column;
align-items: center;
}