|
4 | 4 | --white: #ffffff; |
5 | 5 | --transition-speed: 0.3s; |
6 | 6 | --light-gray: #f0f0f0; |
| 7 | + --nav-height: 60px; |
7 | 8 | } |
8 | 9 |
|
9 | 10 | * { |
|
13 | 14 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
14 | 15 | } |
15 | 16 |
|
| 17 | +html, body { |
| 18 | + width: 100%; |
| 19 | + height: 100%; |
| 20 | + overflow-x: hidden; |
| 21 | +} |
| 22 | + |
16 | 23 | .game-container { |
17 | | - width: 100vw; |
18 | | - height: 100vh; |
| 24 | + width: 100%; |
| 25 | + height: calc(100vh - var(--nav-height)); |
| 26 | + margin-top: var(--nav-height); |
19 | 27 | overflow: hidden; |
20 | 28 | position: relative; |
21 | 29 | background: var(--white); |
22 | 30 | } |
23 | 31 |
|
24 | 32 | /* Top Navigation */ |
25 | 33 | .top-nav { |
26 | | - position: absolute; |
| 34 | + position: fixed; |
27 | 35 | top: 0; |
28 | 36 | left: 0; |
29 | 37 | right: 0; |
| 38 | + height: var(--nav-height); |
30 | 39 | background: var(--black); |
31 | | - padding: 10px 20px; |
| 40 | + padding: 8px 12px; |
32 | 41 | z-index: 1000; |
| 42 | + width: 100%; |
33 | 43 | } |
34 | 44 |
|
35 | 45 | .nav-content { |
36 | 46 | display: flex; |
37 | 47 | justify-content: space-between; |
38 | 48 | align-items: center; |
| 49 | + gap: 10px; |
39 | 50 | max-width: 1200px; |
40 | 51 | margin: 0 auto; |
| 52 | + height: 100%; |
| 53 | + width: 100%; |
41 | 54 | } |
42 | 55 |
|
43 | 56 | .nav-title { |
44 | | - font-size: 1.5em; |
| 57 | + font-size: 1.3em; |
45 | 58 | font-weight: bold; |
46 | 59 | color: var(--green); |
| 60 | + white-space: nowrap; |
47 | 61 | } |
48 | 62 |
|
49 | 63 | .nav-controls { |
50 | 64 | display: flex; |
51 | | - gap: 10px; |
| 65 | + flex-wrap: nowrap; |
| 66 | + gap: 8px; |
| 67 | + align-items: center; |
| 68 | + overflow-x: auto; |
| 69 | + -ms-overflow-style: none; |
| 70 | + scrollbar-width: none; |
| 71 | + padding-bottom: 4px; |
| 72 | +} |
| 73 | + |
| 74 | +.nav-controls::-webkit-scrollbar { |
| 75 | + display: none; |
52 | 76 | } |
53 | 77 |
|
54 | 78 | .nav-button { |
55 | 79 | display: flex; |
56 | 80 | align-items: center; |
57 | 81 | gap: 5px; |
58 | | - padding: 10px 20px; |
| 82 | + padding: 6px 10px; |
59 | 83 | border: 1px solid var(--green); |
60 | 84 | border-radius: 4px; |
61 | 85 | background: var(--green); |
62 | 86 | color: var(--black); |
63 | 87 | cursor: pointer; |
64 | 88 | transition: var(--transition-speed); |
| 89 | + font-size: 0.85em; |
| 90 | + white-space: nowrap; |
| 91 | + min-width: auto; |
| 92 | + flex-shrink: 0; |
65 | 93 | } |
66 | 94 |
|
67 | 95 | .nav-button:hover { |
68 | 96 | background: #7cc337; |
69 | 97 | color: var(--black); |
70 | 98 | } |
71 | 99 |
|
| 100 | +@media screen and (max-width: 768px) { |
| 101 | + .nav-content { |
| 102 | + gap: 8px; |
| 103 | + } |
| 104 | + |
| 105 | + .nav-title { |
| 106 | + font-size: 1.1em; |
| 107 | + } |
| 108 | + |
| 109 | + .nav-button { |
| 110 | + padding: 6px 8px; |
| 111 | + font-size: 0.8em; |
| 112 | + } |
| 113 | + |
| 114 | + .nav-button i { |
| 115 | + margin-right: 4px; |
| 116 | + } |
| 117 | +} |
| 118 | + |
| 119 | +@media screen and (max-width: 480px) { |
| 120 | + .nav-button span { |
| 121 | + display: none; |
| 122 | + } |
| 123 | + |
| 124 | + .nav-button i { |
| 125 | + margin: 0; |
| 126 | + font-size: 1.1em; |
| 127 | + } |
| 128 | + |
| 129 | + .nav-button { |
| 130 | + padding: 6px; |
| 131 | + min-width: 32px; |
| 132 | + justify-content: center; |
| 133 | + } |
| 134 | +} |
| 135 | + |
72 | 136 | /* Map Container */ |
73 | 137 | .map-container { |
74 | 138 | width: 100%; |
75 | 139 | height: 100%; |
76 | 140 | position: relative; |
| 141 | + overflow: hidden; |
77 | 142 | } |
78 | 143 |
|
79 | 144 | .map { |
|
85 | 150 | /* Search Panel */ |
86 | 151 | .search-panel { |
87 | 152 | position: absolute; |
88 | | - top: 80px; |
| 153 | + top: calc(var(--nav-height) + 20px); |
89 | 154 | right: 20px; |
90 | | - width: 300px; |
| 155 | + width: min(300px, calc(100% - 40px)); |
91 | 156 | background: var(--white); |
92 | 157 | border: 1px solid var(--black); |
93 | 158 | border-radius: 4px; |
|
127 | 192 | /* Legend Panel */ |
128 | 193 | .legend-panel { |
129 | 194 | position: absolute; |
130 | | - top: 150px; |
| 195 | + top: calc(var(--nav-height) + 20px); |
131 | 196 | left: 20px; |
132 | | - width: 250px; |
| 197 | + width: min(250px, calc(100% - 40px)); |
133 | 198 | background: var(--white); |
134 | | - border-radius: 8px; /* Softer corners */ |
135 | | - padding: 20px; /* Plush padding */ |
136 | | - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Material UI elevation */ |
| 199 | + border-radius: 8px; |
| 200 | + padding: 20px; |
| 201 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
137 | 202 | transform: translateX(-120%); |
138 | | - transition: transform var(--transition-speed), box-shadow 0.3s; /* Smooth transitions */ |
| 203 | + transition: transform var(--transition-speed), box-shadow 0.3s; |
139 | 204 | z-index: 1000; |
140 | 205 | } |
141 | 206 |
|
142 | 207 | .legend-panel.active { |
143 | 208 | transform: translateX(0); |
144 | | - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Elevated when active */ |
| 209 | + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); |
145 | 210 | } |
146 | 211 |
|
147 | 212 | .legend-header { |
148 | 213 | display: flex; |
149 | 214 | justify-content: space-between; |
150 | 215 | align-items: center; |
151 | | - padding: 15px 0; /* Adjusted padding */ |
152 | | - border-bottom: none; /* Remove border */ |
| 216 | + padding: 15px 0; |
| 217 | + border-bottom: none; |
153 | 218 | } |
154 | 219 |
|
155 | 220 | .legend-content { |
156 | | - padding: 20px 0; /* Plush padding */ |
| 221 | + padding: 20px 0; |
157 | 222 | max-height: 70vh; |
158 | 223 | overflow-y: auto; |
159 | 224 | } |
|
180 | 245 | /* Location Info Sidebar */ |
181 | 246 | .location-sidebar { |
182 | 247 | position: absolute; |
183 | | - top: 80px; |
| 248 | + top: calc(var(--nav-height) + 20px); |
184 | 249 | right: 20px; |
185 | | - width: 300px; |
| 250 | + width: min(300px, calc(100% - 40px)); |
186 | 251 | background: var(--white); |
187 | | - border-radius: 8px; /* Softer corners */ |
188 | | - padding: 20px; /* Plush padding */ |
189 | | - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Material UI elevation */ |
| 252 | + border-radius: 8px; |
| 253 | + padding: 20px; |
| 254 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
190 | 255 | transform: translateX(120%); |
191 | | - transition: transform var(--transition-speed), box-shadow 0.3s; /* Smooth transitions */ |
| 256 | + transition: transform var(--transition-speed), box-shadow 0.3s; |
192 | 257 | z-index: 1000; |
193 | 258 | } |
194 | 259 |
|
195 | 260 | .location-sidebar.active { |
196 | 261 | transform: translateX(0); |
197 | | - box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); /* Elevated when active */ |
| 262 | + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); |
198 | 263 | } |
199 | 264 |
|
200 | 265 | .sidebar-header { |
201 | 266 | display: flex; |
202 | 267 | justify-content: space-between; |
203 | 268 | align-items: center; |
204 | | - padding: 15px 0; /* Adjusted padding */ |
205 | | - border-bottom: none; /* Remove border */ |
| 269 | + padding: 15px 0; |
| 270 | + border-bottom: none; |
206 | 271 | background: var(--white); |
207 | 272 | color: var(--black); |
208 | 273 | } |
209 | 274 |
|
210 | 275 | .sidebar-content { |
211 | | - padding: 20px 0; /* Plush padding */ |
| 276 | + padding: 20px 0; |
212 | 277 | color: var(--black); |
213 | 278 | } |
214 | 279 |
|
215 | 280 | .sidebar-footer { |
216 | | - padding: 15px 0; /* Adjusted padding */ |
217 | | - background: rgba(149, 226, 70, 0.15); /* Slightly stronger tint */ |
218 | | - border-radius: 0 0 8px 8px; /* Match container */ |
| 281 | + padding: 15px 0; |
| 282 | + background: rgba(149, 226, 70, 0.15); |
| 283 | + border-radius: 0 0 8px 8px; |
219 | 284 | font-size: 0.9em; |
220 | 285 | color: var(--black); |
221 | 286 | } |
| 287 | + |
222 | 288 | /* Mini Stats */ |
223 | 289 | .mini-stats { |
224 | 290 | position: absolute; |
|
239 | 305 | color: var(--black); |
240 | 306 | } |
241 | 307 |
|
242 | | -/* Map Labels */ |
243 | | -.map-label { |
244 | | - background-color: var(--white); |
245 | | - padding: 2px 6px; |
246 | | - border-radius: 3px; |
247 | | - font-size: 12px; |
248 | | - white-space: nowrap; |
249 | | - pointer-events: none; |
250 | | - border: 1px solid var(--black); |
251 | | -} |
252 | | - |
253 | 308 | /* Close Button */ |
254 | 309 | .close-button { |
255 | 310 | background: var(--green); |
|
272 | 327 | .legend-color.mess { background-color: rgba(255, 0, 0, 0.2); } |
273 | 328 | .legend-color.parking { background-color: rgba(128, 128, 128, 0.2); } |
274 | 329 | .legend-color.sports { background-color: rgba(147, 112, 219, 0.2); } |
| 330 | +.legend-color.shops { background-color: rgba(255, 140, 0, 0.2); } |
275 | 331 | .legend-color.temple { background-color: rgba(139, 69, 19, 0.2); } |
276 | 332 | .legend-color.tree { background-color: rgba(34, 139, 34, 0.8); } |
277 | 333 | .legend-color.walkways { background-color: #8B4513; } |
|
302 | 358 | border-top: none; |
303 | 359 | color: var(--black); |
304 | 360 | } |
| 361 | + |
305 | 362 | /* North Arrow */ |
306 | 363 | .north-arrow { |
307 | 364 | position: absolute; |
308 | | - top: 80px; /* Below the header (60px height + 20px gap) */ |
309 | | - left: 20px; /* Bottom-left corner */ |
310 | | - width: 50px; /* Slightly larger for clarity */ |
| 365 | + top: calc(var(--nav-height) - 30px); |
| 366 | + left: 20px; |
| 367 | + width: 50px; |
311 | 368 | height: 50px; |
312 | 369 | background: var(--white); |
313 | 370 | border-radius: 50%; |
314 | 371 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); |
315 | 372 | display: flex; |
316 | | - flex-direction: column; /* Stack arrow and "N" vertically */ |
| 373 | + flex-direction: column; |
317 | 374 | align-items: center; |
318 | 375 | justify-content: center; |
319 | | - font-size: 18px; /* Arrow size */ |
| 376 | + font-size: 18px; |
320 | 377 | color: var(--green); |
321 | 378 | z-index: 1000; |
322 | 379 | transition: box-shadow 0.3s; |
323 | 380 | } |
324 | 381 |
|
325 | 382 | .north-arrow::after { |
326 | | - content: "N"; /* Add "N" label */ |
| 383 | + content: "N"; |
327 | 384 | font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; |
328 | | - font-size: 14px; /* Smaller "N" */ |
| 385 | + font-size: 14px; |
329 | 386 | font-weight: bold; |
330 | 387 | color: var(--green); |
331 | | - margin-top: 2px; /* Space between arrow and "N" */ |
| 388 | + margin-top: 2px; |
332 | 389 | } |
333 | 390 |
|
334 | 391 | .north-arrow:hover { |
|
338 | 395 | /* Zoom Controls */ |
339 | 396 | .zoom-controls { |
340 | 397 | position: absolute; |
341 | | - bottom: 20px; /* Bottom-right corner */ |
| 398 | + bottom: 20px; |
342 | 399 | right: 20px; |
343 | 400 | display: flex; |
344 | | - flex-direction: column; /* Stack buttons vertically */ |
345 | | - gap: 10px; /* Space between buttons */ |
| 401 | + flex-direction: column; |
| 402 | + gap: 10px; |
346 | 403 | z-index: 1000; |
347 | 404 | } |
348 | 405 |
|
|
0 commit comments