Presidor1 commited on
Commit
83c032a
·
verified ·
1 Parent(s): c1a29da

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +17 -35
style.css CHANGED
@@ -1,16 +1,15 @@
1
  /* ========== STC Professional Style Sheet ========== */
2
 
3
- /* 1️⃣ Loader styling */
4
  #loader {
5
  position: fixed;
6
  top: 0; left: 0; right: 0; bottom: 0;
7
- background: #0a0f3c; /* consistent navy background */
8
  display: flex;
9
  justify-content: center;
10
  align-items: center;
11
  z-index: 9999;
12
  }
13
-
14
  #loader::after {
15
  content: "";
16
  width: 60px;
@@ -20,19 +19,17 @@
20
  border-radius: 50%;
21
  animation: spin 1s linear infinite;
22
  }
23
-
24
  .logo {
25
  height: 60px;
26
  width: auto;
27
  display: block;
28
  margin: auto;
29
  }
30
-
31
  @keyframes spin {
32
  to { transform: rotate(360deg); }
33
  }
34
 
35
- /* 2️⃣ General Body Styling */
36
  body {
37
  font-family: 'Segoe UI', Arial, sans-serif;
38
  margin: 0;
@@ -42,7 +39,7 @@ body {
42
  line-height: 1.6;
43
  }
44
 
45
- /* 3️⃣ Header Styling */
46
  header {
47
  background: linear-gradient(135deg, #0a0f3c, #001f4d);
48
  color: white;
@@ -52,12 +49,10 @@ header {
52
  top: 0;
53
  z-index: 100;
54
  }
55
-
56
  header h1 {
57
  margin: 0;
58
  font-size: 1.8rem;
59
  }
60
-
61
  #menu-toggle {
62
  cursor: pointer;
63
  font-size: 24px;
@@ -67,17 +62,14 @@ header h1 {
67
  color: white;
68
  padding: 5px;
69
  }
70
-
71
  #top-nav {
72
  display: none;
73
  flex-direction: column;
74
  background: #004e56;
75
  }
76
-
77
  #top-nav.show {
78
  display: flex;
79
  }
80
-
81
  #top-nav a {
82
  color: #fff;
83
  padding: 10px;
@@ -85,12 +77,11 @@ header h1 {
85
  border-top: 1px solid #ddd;
86
  text-align: center;
87
  }
88
-
89
  #top-nav a:hover {
90
  background: #003a3f;
91
  }
92
 
93
- /* 4️⃣ Hero Section with STC Logo Background */
94
  .hero {
95
  position: relative;
96
  display: flex;
@@ -100,19 +91,17 @@ header h1 {
100
  min-height: 90vh;
101
  color: white;
102
  background: url('STC_logo.png') center center no-repeat;
103
- background-size: 300px; /* adjust size for clarity */
104
- background-color: #0a0f3c; /* fallback color */
105
  overflow: hidden;
106
  }
107
-
108
  .hero::before {
109
  content: "";
110
  position: absolute;
111
  inset: 0;
112
- background: rgba(0, 0, 0, 0.6); /* overlay for readability */
113
  z-index: 1;
114
  }
115
-
116
  .hero .overlay {
117
  position: relative;
118
  z-index: 2;
@@ -120,17 +109,16 @@ header h1 {
120
  border-radius: 12px;
121
  max-width: 90%;
122
  }
123
-
124
  .hero h1 {
125
  font-size: 2.5rem;
126
  margin-bottom: 10px;
127
  }
128
-
129
  .hero p {
130
  font-size: 1.2rem;
131
  margin-bottom: 20px;
132
  }
133
 
 
134
  .btn, .cta-button {
135
  background: #0d6efd;
136
  color: white;
@@ -142,13 +130,12 @@ header h1 {
142
  text-decoration: none;
143
  transition: background 0.3s, transform 0.2s;
144
  }
145
-
146
  .btn:hover, .cta-button:hover {
147
  background: #0b5ed7;
148
  transform: translateY(-2px);
149
  }
150
 
151
- /* 5️⃣ Sections */
152
  .section, .info-section, .form-section {
153
  padding: 60px 20px;
154
  text-align: center;
@@ -158,30 +145,26 @@ header h1 {
158
  border-radius: 8px;
159
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
160
  }
161
-
162
  .section:nth-child(even) {
163
  background: #f5f5f5;
164
  }
165
-
166
  .section h2, .info-section h2, .form-section h2 {
167
  color: #0a0f3c;
168
  margin-bottom: 20px;
169
  font-size: 1.8rem;
170
  }
171
 
172
- /* 6️⃣ Form Styling */
173
  form {
174
  display: flex;
175
  flex-direction: column;
176
  align-items: stretch;
177
  }
178
-
179
  form label {
180
  text-align: left;
181
  margin: 10px 0 5px;
182
  font-weight: 600;
183
  }
184
-
185
  form input, form select, form button {
186
  padding: 10px;
187
  margin-top: 5px;
@@ -191,7 +174,6 @@ form input, form select, form button {
191
  width: 100%;
192
  box-sizing: border-box;
193
  }
194
-
195
  form button {
196
  background: #0d6efd;
197
  color: white;
@@ -201,11 +183,9 @@ form button {
201
  margin-top: 15px;
202
  font-weight: bold;
203
  }
204
-
205
  form button:hover {
206
  background: #0b5ed7;
207
  }
208
-
209
  #output {
210
  margin-top: 15px;
211
  text-align: center;
@@ -213,7 +193,7 @@ form button:hover {
213
  color: #0d6efd;
214
  }
215
 
216
- /* 7️⃣ Footer */
217
  footer {
218
  background: #0a0f3c;
219
  color: white;
@@ -223,20 +203,22 @@ footer {
223
  position: relative;
224
  }
225
 
226
- /* 8️⃣ Fade-In Animation */
227
  .fade-in {
228
  opacity: 0;
229
  transform: translateY(20px);
230
  transition: opacity 1s ease-out, transform 1s ease-out;
231
  }
232
-
233
  .fade-in.show {
234
  opacity: 1;
235
  transform: translateY(0);
236
  }
237
 
238
- /* 9️⃣ Responsive adjustments */
239
  @media (max-width: 768px) {
 
 
 
240
  .hero h1 {
241
  font-size: 1.8rem;
242
  }
 
1
  /* ========== STC Professional Style Sheet ========== */
2
 
3
+ /* Loader styling */
4
  #loader {
5
  position: fixed;
6
  top: 0; left: 0; right: 0; bottom: 0;
7
+ background: #0a0f3c;
8
  display: flex;
9
  justify-content: center;
10
  align-items: center;
11
  z-index: 9999;
12
  }
 
13
  #loader::after {
14
  content: "";
15
  width: 60px;
 
19
  border-radius: 50%;
20
  animation: spin 1s linear infinite;
21
  }
 
22
  .logo {
23
  height: 60px;
24
  width: auto;
25
  display: block;
26
  margin: auto;
27
  }
 
28
  @keyframes spin {
29
  to { transform: rotate(360deg); }
30
  }
31
 
32
+ /* General Body Styling */
33
  body {
34
  font-family: 'Segoe UI', Arial, sans-serif;
35
  margin: 0;
 
39
  line-height: 1.6;
40
  }
41
 
42
+ /* Header Styling */
43
  header {
44
  background: linear-gradient(135deg, #0a0f3c, #001f4d);
45
  color: white;
 
49
  top: 0;
50
  z-index: 100;
51
  }
 
52
  header h1 {
53
  margin: 0;
54
  font-size: 1.8rem;
55
  }
 
56
  #menu-toggle {
57
  cursor: pointer;
58
  font-size: 24px;
 
62
  color: white;
63
  padding: 5px;
64
  }
 
65
  #top-nav {
66
  display: none;
67
  flex-direction: column;
68
  background: #004e56;
69
  }
 
70
  #top-nav.show {
71
  display: flex;
72
  }
 
73
  #top-nav a {
74
  color: #fff;
75
  padding: 10px;
 
77
  border-top: 1px solid #ddd;
78
  text-align: center;
79
  }
 
80
  #top-nav a:hover {
81
  background: #003a3f;
82
  }
83
 
84
+ /* Hero Section with visible STC Logo */
85
  .hero {
86
  position: relative;
87
  display: flex;
 
91
  min-height: 90vh;
92
  color: white;
93
  background: url('STC_logo.png') center center no-repeat;
94
+ background-size: 400px; /* ✅ Explicit logo size for clarity */
95
+ background-color: #0a0f3c;
96
  overflow: hidden;
97
  }
 
98
  .hero::before {
99
  content: "";
100
  position: absolute;
101
  inset: 0;
102
+ background: rgba(0, 0, 0, 0.25); /* ✅ lighter overlay for logo visibility */
103
  z-index: 1;
104
  }
 
105
  .hero .overlay {
106
  position: relative;
107
  z-index: 2;
 
109
  border-radius: 12px;
110
  max-width: 90%;
111
  }
 
112
  .hero h1 {
113
  font-size: 2.5rem;
114
  margin-bottom: 10px;
115
  }
 
116
  .hero p {
117
  font-size: 1.2rem;
118
  margin-bottom: 20px;
119
  }
120
 
121
+ /* Buttons */
122
  .btn, .cta-button {
123
  background: #0d6efd;
124
  color: white;
 
130
  text-decoration: none;
131
  transition: background 0.3s, transform 0.2s;
132
  }
 
133
  .btn:hover, .cta-button:hover {
134
  background: #0b5ed7;
135
  transform: translateY(-2px);
136
  }
137
 
138
+ /* Sections */
139
  .section, .info-section, .form-section {
140
  padding: 60px 20px;
141
  text-align: center;
 
145
  border-radius: 8px;
146
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
147
  }
 
148
  .section:nth-child(even) {
149
  background: #f5f5f5;
150
  }
 
151
  .section h2, .info-section h2, .form-section h2 {
152
  color: #0a0f3c;
153
  margin-bottom: 20px;
154
  font-size: 1.8rem;
155
  }
156
 
157
+ /* Form Styling */
158
  form {
159
  display: flex;
160
  flex-direction: column;
161
  align-items: stretch;
162
  }
 
163
  form label {
164
  text-align: left;
165
  margin: 10px 0 5px;
166
  font-weight: 600;
167
  }
 
168
  form input, form select, form button {
169
  padding: 10px;
170
  margin-top: 5px;
 
174
  width: 100%;
175
  box-sizing: border-box;
176
  }
 
177
  form button {
178
  background: #0d6efd;
179
  color: white;
 
183
  margin-top: 15px;
184
  font-weight: bold;
185
  }
 
186
  form button:hover {
187
  background: #0b5ed7;
188
  }
 
189
  #output {
190
  margin-top: 15px;
191
  text-align: center;
 
193
  color: #0d6efd;
194
  }
195
 
196
+ /* Footer */
197
  footer {
198
  background: #0a0f3c;
199
  color: white;
 
203
  position: relative;
204
  }
205
 
206
+ /* Fade-In Animation */
207
  .fade-in {
208
  opacity: 0;
209
  transform: translateY(20px);
210
  transition: opacity 1s ease-out, transform 1s ease-out;
211
  }
 
212
  .fade-in.show {
213
  opacity: 1;
214
  transform: translateY(0);
215
  }
216
 
217
+ /* Responsive adjustments */
218
  @media (max-width: 768px) {
219
+ .hero {
220
+ background-size: 250px; /* ✅ Mobile-friendly logo resizing */
221
+ }
222
  .hero h1 {
223
  font-size: 1.8rem;
224
  }