-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
398 lines (356 loc) · 8.94 KB
/
style.css
File metadata and controls
398 lines (356 loc) · 8.94 KB
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
/* --- Hamburger Menu --- */
.hamburger {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 44px;
height: 44px;
background: none;
border: none;
cursor: pointer;
z-index: 1100;
position: absolute;
top: 18px;
left: 18px;
}
.hamburger-icon rect {
transition: transform 0.3s, opacity 0.3s;
transform-origin: center;
}
.hamburger.open .hamburger-icon rect:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-icon rect:nth-child(2) {
opacity: 0;
}
.hamburger.open .hamburger-icon rect:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
nav#main-nav {
position: fixed;
top: 0;
left: 0;
width: 100vw;
background: rgba(26,26,26,0.98);
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
transform: translateY(-100%);
transition: transform 0.3s;
z-index: 1050;
}
nav#main-nav.open {
transform: translateY(0);
}
nav#main-nav ul {
flex-direction: column;
gap: 1.5rem;
padding: 2.5rem 0 2rem 0;
display: flex;
justify-content: center;
align-items: center;
}
nav#main-nav ul li {
margin: 0;
}
/* Full-width background for intro section */
#intro {
width: 100%;
box-sizing: border-box;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
flex-direction: column;
color: white;
text-shadow: 0 2px 8px rgba(0,0,0,0.9);
text-align: center;
}
.intro-bg {
width: 100%;
min-height: 600px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: #1a1a1a; /* fallback solid color */
padding: 48px 0;
box-sizing: border-box;
/* Dessa kan överskrivas av inline-style om de finns */
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
aspect-ratio: 1/1;
background-image: url('images/lifeline_logo.png');
}
@media (max-width: 900px) {
.intro-bg {
min-height: 0;
aspect-ratio: unset;
background-size: contain !important;
background-repeat: no-repeat !important;
background-position: center center !important;
width: 100vw;
max-width: 100vw;
padding: 24px 0;
}
}
header, nav {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
}
body {
margin-top: 90px; /* Adjust if your nav/header is taller/shorter */
background-color: #121212;
color: #f5f5f5;
font-family: 'Montserrat', sans-serif;
text-align: center;
}
nav {
background: rgba(26,26,26,0.97); /* Match header bg, slightly transparent */
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
nav ul {
list-style: none;
margin: 0;
padding: 1rem 0;
}
nav ul li {
margin: 10px;
}
nav a {
color: #ff9900;
text-decoration: none;
font-weight: bold;
font-size: 1.1rem;
transition: color 0.2s;
}
nav a:hover {
color: #ff6600;
}
@media (max-width: 600px) {
#intro {
width: 100%;
min-height: 300px;
/* background properties removed for intro section */
}
nav ul {
flex-direction: column;
gap: 0.5rem;
}
nav ul li {
display: block;
margin: 5px 0;
}
body {
margin-top: 120px; /* More space for stacked nav on mobile */
}
section {
width: 90%;
}
}
header {
background-color: #1a1a1a;
padding: 30px 20px; /* Adds space around the content */
text-align: center; /* Centers the text */
}
/* Gemensamma regler för sektioner med bakgrundsbild */
#kontakt, #lyssna, #info, #services {
position: relative;
background-size: cover;
background-position: center;
color: #fff;
text-shadow: 0 2px 8px rgba(0,0,0,0.95);
padding: 48px 32px;
z-index: 1;
text-align: left;
}
#kontakt::before, #lyssna::before, #info::before, #services::before {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.65);
z-index: 0;
border-radius: inherit;
}
#kontakt > *, #lyssna > *, #info > *, #services > * {
position: relative;
z-index: 1;
}
/* Unika bakgrundsbilder för varje sektion */
#kontakt { background-image: url('images/gallery/marcus02.jpg'); }
#lyssna { background-image: url('images/gallery/marcus01.jpg'); }
#info { background-image: url('images/gallery/mark01.jpg'); }
#services { background-image: url('images/gallery/dala_henrik01.jpg'); }
#info img {
border: 4px solid rgba(255,255,255,0.7);
border-radius: 12px;
box-shadow: 0 4px 24px rgba(0,0,0,0.4);
margin: 24px 0;
}
h1 {
color: #f0d402;
font-size: 48px; /* Adjust size as needed */
font-weight: bold; /* Make it stand out */
}
img {
max-width: 100%; /* Bilden anpassas till skärmens bredd */
height: auto; /* Behåller proportionerna */
display: block; /* Förhindrar onödiga mellanrum */
margin: 0 auto; /* Centrerar bilden */
}
form {
display: flex; /* Använder Flexbox för centrering */
flex-direction: column; /* Ställer in fälten vertikalt */
align-items: center; /* Centrerar fälten horisontellt */
justify-content: center; /* Centrerar innehållet vertikalt */
width: 100%; /* Anpassar sig till skärmens bredd */
}
form input,
form textarea {
width: 300px; /* Sätter en fast bredd på fälten */
max-width: 100%; /* Gör dem responsiva */
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 15px; /* Lägger till extra utrymme mellan fälten */
}
#services ul {
list-style-type: none; /* Tar bort punkterna */
padding-left: 0; /* Tar bort extra indrag */
}
section {
margin: 50px auto;
width: 80%;
opacity: 0;
transform: translateX(-30px);
transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
section.fade-in {
opacity: 1;
transform: translateX(0);
}
section.fade-out {
opacity: 0;
transform: translateX(-30px);
pointer-events: none;
}
button {
background-color: #ff6600; /* Snygg orange färg */
color: white; /* Vit text */
font-size: 16px; /* Större och tydligare text */
padding: 10px 20px; /* Mer utrymme runt texten */
border: none; /* Tar bort standardramen */
border-radius: 5px; /* Rundade hörn */
cursor: pointer; /* Visar att knappen är klickbar */
transition: 0.3s; /* Mjukare hover-effekt */
}
button:hover {
background-color: #e65c00; /* Lite mörkare orange vid hover */
}
#info {
text-align: left;
}
a {
color: #ff9900; /* Välj din färg */
text-decoration: none; /* Tar bort understrykning */
font-weight: bold;
}
a:hover {
color: #ff6600; /* Ändrar färg vid hover */
text-decoration: underline; /* Visar understrykning vid hover */
}
.video-container {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* 16:9 proportion */
height: 0;
}
.video-container iframe {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
/* --- Gallery Grid --- */
.gallery-section {
margin: 50px auto;
width: 80%;
text-align: center;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
margin: 0 auto;
padding: 0;
}
.gallery-grid img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover {
transform: scale(1.04);
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
/* Modal for full-size image */
.gallery-modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 80vw;
height: 80vh;
background: rgba(0,0,0,0.85);
align-items: center;
justify-content: center;
transition: opacity 0.3s;
}
.gallery-modal.active {
display: flex;
}
.gallery-modal img {
max-width: 70vw;
max-height: 70vh;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0,0,0,0.7);
}
.gallery-modal .close-btn {
position: absolute;
top: 32px;
left: 48px;
font-size: 2.5rem;
color: #fff;
background: none;
border: none;
cursor: pointer;
z-index: 10;
text-shadow: 0 2px 8px #000;
transition: color 0.2s;
}
.gallery-modal .close-btn:hover {
color: #ff6600;
}
@media (max-width: 900px) {
.gallery-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.gallery-grid {
grid-template-columns: 1fr;
}
.gallery-grid img {
height: 120px;
}
}