1- /* General Styles (UNCHANGED from your last provided code) */
1+ /* General Styles */
22html , body {
33 margin : 0 ;
44 padding : 0 ;
55 height : 100% ;
66 background-color : # f8f8f8 ;
7- overflow-x : hidden;
7+ overflow-x : hidden; /* Prevents horizontal scrollbar for the entire page */
88 overflow-y : auto;
99 font-family : -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue" , sans-serif;
1010 color : # 333 ;
1111 box-sizing : border-box;
1212}
1313
14- /* Header (UNCHANGED) */
14+ /* Header Styles */
1515.blue-container {
1616 width : 100% ;
17- background-color : # 00408f ;
17+ background-color : # 00408f ; /* Deep blue header */
1818 padding : 10px ;
1919 display : flex;
2020 align-items : center;
2121 box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.2 );
2222 color : white;
2323}
24- .nav-button {
25- background-color : rgba (200 , 205 , 210 , 0.2 ); /* Soft cool grey with transparency */
26- color : # 003060 ; /* Darker, richer blue text for good contrast */
27- border : 1px solid rgba (0 , 40 , 80 , 0.15 ); /* Subtle blue border */
28- padding : 8px 12px ;
29- font-size : 0.95em ;
30- cursor : pointer;
31- border-radius : 5px ;
32- transition : background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
33- text-decoration : none;
34- display : inline-block;
35- white-space : nowrap;
36- flex-shrink : 0 ;
37- }
38-
39- /* Hover effect for secondary menu buttons */
40- .nav-button : hover {
41- background-color : rgba (0 , 64 , 143 , 0.08 ); /* A very light tint of the main blue on hover */
42- border-color : rgba (0 , 64 , 143 , 0.3 ); /* More prominent border on hover */
43- color : # 001530 ; /* Even darker blue on hover */
44- }
45- /* Centered Content (UNCHANGED) */
46- .content-container {
47- display : flex;
48- flex-direction : column;
49- align-items : center;
50- justify-content : center;
51- height : 80vh ;
52- width : 100% ;
53- text-align : center;
54- }
5524
5625.left-aligned {
5726 display : flex;
@@ -65,7 +34,6 @@ html, body {
6534 height : auto;
6635}
6736
68- /* Titles (UNCHANGED) */
6937.titles {
7038 display : flex;
7139 flex-direction : column;
@@ -83,7 +51,17 @@ html, body {
8351 text-shadow : 1px 1px 2px rgba (0 , 0 , 0 , 0.3 );
8452}
8553
86- /* Label & Button Section (UNCHANGED) */
54+ /* Content Area - Label & Button Section */
55+ .content-container {
56+ display : flex;
57+ flex-direction : column;
58+ align-items : center;
59+ justify-content : center;
60+ height : 80vh ; /* Adjust as needed */
61+ width : 100% ;
62+ text-align : center;
63+ }
64+
8765.label-button-container {
8866 display : flex;
8967 flex-direction : column;
@@ -103,14 +81,13 @@ html, body {
10381 margin-bottom : 8px ;
10482}
10583
106- /* Button Row (UNCHANGED) */
10784.button-row {
10885 display : flex;
10986 justify-content : center;
11087 gap : 10px ;
11188}
11289
113- /* Buttons (General button styles - UNCHANGED, but .nav-button will override ) */
90+ /* General Buttons (for content area, not secondary nav ) */
11491button {
11592 background-color : # 00408f ;
11693 color : white;
@@ -131,28 +108,61 @@ button:active {
131108 transform : scale (0.98 );
132109}
133110
134- /* --- Secondary Menu (Button Container and Buttons) Styles --- */
135- /* (These specific styles should override the general button styles for .nav-button) */
111+ /* --- Secondary Menu Styles (Default/Laptop View - Now Consistent with Mobile Layout Principles) --- */
136112.button-container {
137- /* Lighter blue "Liquid Glass" effect */
138- background-image : linear-gradient (135deg , rgba (220 , 240 , 255 , 0.9 ), rgba (190 , 220 , 250 , 0.8 ));
113+ /* Lighter blue "Liquid Glass" effect, harmonizing with header */
114+ background-image : linear-gradient (135deg , rgba (200 , 230 , 255 , 0.9 ), rgba (170 , 210 , 240 , 0.8 ));
139115 backdrop-filter : blur (15px ) saturate (1.8 );
140116 -webkit-backdrop-filter : blur (15px ) saturate (1.8 );
141- border : 1px solid rgba (180 , 210 , 240 , 0.7 );
117+ border : 1px solid rgba (150 , 190 , 220 , 0.7 );
142118
143- display : flex;
144- justify-content : center; /* Center buttons horizontally by default */
145- align-items : center;
146- padding : 10px 0 ;
147- flex-wrap : nowrap; /* Keep all buttons on one line by default */
148- gap : 10px ; /* Space between buttons */
119+ display : flex; /* Use flexbox */
120+ justify-content : center; /* Center the group of buttons horizontally on the screen */
121+ align-items : stretch; /* CRITICAL for equal height: stretch items to fill container height */
122+ padding : 10px 15 px ; /* Decent padding on sides for the whole container */
123+ flex-wrap : nowrap; /* CRITICAL: Force all buttons onto a single line */
124+ gap : 10px ; /* Decent space BETWEEN buttons */
149125 box-shadow : 0 2px 10px rgba (0 , 0 , 0 , 0.1 );
150126 text-align : center;
151127 overflow-x : hidden; /* Hide horizontal scrollbar always */
152128 -webkit-overflow-scrolling : touch;
153129}
154130
155- /* Footer (UNCHANGED) */
131+ .nav-button {
132+ background-color : rgba (12 , 129 , 224 , 0.2 ); /* Your specified blue hue with transparency */
133+ color : # 003060 ; /* Darker, richer blue text for good contrast */
134+ border : 1px solid rgba (0 , 40 , 80 , 0.15 ); /* Subtle blue border */
135+ padding : 7px 8px ; /* Adjusted padding for a compact look with internal space */
136+ font-size : 0.75em ; /* Default font size for all screens (will be overridden smaller by media queries) */
137+ font-weight : bold;
138+ cursor : pointer;
139+ border-radius : 5px ;
140+ transition : background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
141+ text-decoration : none;
142+
143+ display : flex; /* Make the button itself a flex container */
144+ flex-direction : column; /* Stack wrapped text vertically */
145+ align-items : center; /* Center text lines horizontally within the button */
146+ justify-content : center; /* Center text vertically within the button */
147+
148+ white-space : normal; /* Allow text to wrap within the button (for all screens now) */
149+ flex-grow : 1 ; /* Allow buttons to grow to fill space uniformly (within the limited space provided by the gap and padding) */
150+ flex-basis : 0 ; /* Ensures equal width distribution when growing */
151+ min-width : 0 ; /* Ensures buttons can shrink if needed without breaking */
152+ text-overflow : clip; /* Ensure no ellipsis, clip if content is too large (shouldn't happen with proper padding/font) */
153+ overflow : hidden; /* Hide any content that still overflows within the button */
154+ height : auto; /* Allow height to adjust to wrapped content (but main container stretches them to be equal height) */
155+ line-height : 1.1 ; /* Adjust line-height if text seems too crammed vertically */
156+ }
157+
158+ /* Hover effect for secondary menu buttons */
159+ .nav-button : hover {
160+ background-color : rgb (17 , 91 , 181 ); /* A very light tint of the main blue on hover */
161+ border-color : rgba (0 , 64 , 143 , 0.3 ); /* More prominent border on hover */
162+ color : # 001530 ; /* Even darker blue on hover */
163+ }
164+
165+ /* Footer Styles */
156166footer {
157167 width : 100% ;
158168 background-color : # 00408f ;
@@ -170,15 +180,16 @@ footer {
170180 z-index : 100 ;
171181}
172182
173- /* Social media logos in footer (UNCHANGED) */
174183.social-logo {
175184 width : 18px ;
176185 height : 18px ;
177186 margin : 0 4px ;
178187 vertical-align : middle;
179188}
180189
181- /* Responsive styles for medium screens (Samsung phones, tablets) (UNCHANGED) */
190+ /* --- Responsive Styles (Media Queries - UNCHANGED) --- */
191+
192+ /* For screens up to 768px wide (medium tablets, larger phones in landscape) */
182193@media only screen and (max-width : 768px ) {
183194 body {
184195 font-size : 14px ;
@@ -195,33 +206,36 @@ footer {
195206 .label-button-container h3 {
196207 font-size : 16px ;
197208 }
198- button {
209+ button { /* General buttons on content area */
199210 font-size : 12px ;
200211 padding : 10px 15px ;
201212 }
202213 .button-row {
203214 gap : 15px ;
204215 }
205- }
206216
207- /* --- UPDATED: Media queries for Secondary Menu Mobile View (Forced Single Row & Readable Font) --- */
217+ /* Secondary menu specific adjustments for tablets/larger phones */
218+ .button-container {
219+ padding : 10px 10px ; /* Adjust container padding slightly */
220+ gap : 8px ; /* Adjust gap between buttons */
221+ }
208222
209- /* For screens up to 600px wide (most phones in landscape, some tablets) */
223+ .nav-button {
224+ padding : 7px 6px ; /* Slightly adjust padding for this range */
225+ font-size : 0.7em ; /* Slightly smaller font for tablets */
226+ }
227+ }
228+
229+ /* For screens up to 600px wide (most phones in landscape, smaller tablets) */
210230@media only screen and (max-width : 600px ) {
211231 .button-container {
212- padding : 8px 3px ; /* Minimal horizontal padding on container */
213- flex-wrap : nowrap; /* Force buttons onto a single line */
214- justify-content : space-evenly; /* Distribute space evenly */
215- gap : 0px ; /* No gap between buttons for maximum space */
216- overflow-x : hidden; /* Hide horizontal scrollbar */
232+ padding : 8px 2px ; /* Reduce container horizontal padding further */
233+ gap : 4px ; /* Reduce gap between buttons */
217234 }
218235
219236 .nav-button {
220- padding : 5px 8px ; /* Good padding */
221- font-size : 0.8em ; /* Readable font size */
222- flex-shrink : 1 ; /* Allow buttons to shrink to fit */
223- flex-basis : 0 ; /* Allow flexbox to calculate width from a base of zero */
224- min-width : unset; /* Remove any minimum width constraint */
237+ padding : 7px 5px ; /* Adjust padding for phone landscape */
238+ font-size : 0.65em ; /* Smaller font for phone landscape */
225239 }
226240}
227241
@@ -253,13 +267,12 @@ footer {
253267
254268 /* Secondary menu specific overrides for very small screens */
255269 .button-container {
256- padding : 5px 2 px ; /* Very tight padding on the container */
257- gap : 0 px ; /* No gap */
270+ padding : 5px 1 px ; /* Very minimal horizontal padding on the container */
271+ gap : 2 px ; /* Minimal gap between buttons for tight fit */
258272 }
259273 .nav-button {
260- padding : 4 px 6 px ; /* Reduced padding */
261- font-size : 0.75 em ; /* As large as possible, but will still be a compromise */
274+ padding : 5 px 4 px ; /* Ensure adequate internal padding even on smallest screens */
275+ font-size : 0.6 em ; /* Smallest font for best fit */
262276 border-radius : 3px ;
263- line-height : 1.1 ; /* Slightly compact line height */
264277 }
265- }
278+ }
0 commit comments