@@ -238,81 +238,81 @@ body.page-not-found .mw7 {
238238/* ------------FLAGS------------- */
239239/* ----------------------------- */
240240
241+ /* container */
241242.pill-web-links {
242243 display : flex;
243244 flex-direction : column;
244- gap : 0.5 rem ;
245+ gap : 0.6 rem ;
245246}
246247
248+ /* card */
247249.pill-flags {
248250 position : relative;
249- display : flex;
250- align-items : center;
251- justify-content : center;
252-
251+ display : block;
253252 width : 100% ;
254- height : 300 px ;
253+ height : 260 px ;
255254 border-radius : 6px ;
256255 overflow : hidden;
257256 text-decoration : none;
257+ background : # 000 ; /* fallback while image loads */
258258}
259259
260- /* the flag image fills the banner */
260+ /* background image layer */
261261.pill-flags img {
262262 position : absolute;
263- inset : 0 ;
263+ top : 0 ;
264+ left : 0 ;
264265 width : 100% ;
265266 height : 100% ;
266267 object-fit : cover;
267268}
268269
269- /* dark overlay */
270- .pill-flags ::before {
270+ /* overlay (does NOT darken text) */
271+ .pill-flags ::after {
271272 content : "" ;
272273 position : absolute;
273274 inset : 0 ;
274275 background : rgba (0 , 0 , 0 , 0.35 );
275- z-index : 1 ;
276276}
277277
278- /* text on top */
278+ /* centered text */
279279.pill-flags span {
280- position : relative;
281- z-index : 2 ;
280+ position : absolute;
281+ inset : 0 ;
282+ display : flex;
283+ align-items : center;
284+ justify-content : center;
285+
282286 color : # fff ;
283- font-weight : 600 ;
284- font-size : 3 rem ;
287+ font-weight : 700 ;
288+ font-size : 2.2 rem ;
285289 text-align : center;
290+ padding : 0 1rem ;
286291
287- -webkit-text-stroke : 1.5px rgba (0 , 0 , 0 , 0.9 );
292+ /* crisp readable stroke */
293+ -webkit-text-stroke : 1.5px # 000 ;
288294 paint-order : stroke fill;
289- text-shadow :
290- 0 0 2px rgba (0 , 0 , 0 , 0.9 ),
291- 0 0 4px rgba (0 , 0 , 0 , 0.7 );
295+
296+ z-index : 2 ;
292297}
293298
299+ /* hover */
294300.pill-flags : hover {
295- transform : translateY (-1 px );
296- box-shadow : 0 2 px 6 px rgba (0 , 0 , 0 , 0.25 );
301+ transform : translateY (-2 px );
302+ box-shadow : 0 4 px 10 px rgba (0 , 0 , 0 , 0.35 );
297303}
298304
305+ /* banner */
299306.banner-wrapper {
300307 background : # 000 ;
301- width : 100% ;
302- padding : 0 ; /* remove if you want spacing */
303- display : flex;
304- justify-content : center; /* horizontal center */
305- align-items : center; /* vertical center (if height set) */
308+ text-align : center;
306309}
307310
308311.banner-gif {
309- display : block; /* removes bottom gap */
312+ display : block;
310313 max-width : 100% ;
311314 height : auto;
312- }
313-
314- .banner-gif {
315- height : 300px ;
315+ margin : 0 auto;
316316}
317317
318318/* ----------------------------- */
0 commit comments