-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
1360 lines (1028 loc) · 37 KB
/
style.css
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
==================================
CSS STYLESHEET
==================================
FYI: I'm only testing this sh*t on Chromium-based Edge because a vast majority uses Chromium no matter the platform.
Source: https://gs.statcounter.com/browser-market-share
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');
* {
margin: 0; /* Nuke default margin - it's an annoyance to work with */
padding: 0; /* Nuke default padding as well */
box-sizing: border-box; /* Makes box sizing more logical -- https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing */
}
.hidden { /* To be used as default for items that are to be toggled by JavaScript */
display: none;
}
/* ====== CSS VARIABLES START ====== */
:root { /* CSS Variables work a lot like Components in XD or Swatches in Illustrator, Photoshop, InDesign, etc - If there's a need adjust the colors, this will save a lot of time */
/* Fonts */
--font: "Montserrat", "Segoe UI", "Helvetica", "Roboto", sans-serif; /* font-family: var(--font); Montserrat is the main player, the rest are used as fallback */
/* Colors */
--color1: #D9D9D9; /* We're memorizing the color values here so we can define them as "color: var(--color1);" so it'll be easier to change/adjust if needed */
--color2: #C28671;
--color3: #8A99A0;
--color4: #F5F5F5;
/* Margins - To streamline left-right margins for misc objects */
--default-width: 90%; /* width: var(--default-width); margin: auto; */
--max-page-width: 980px;
/* Miscelanious - Sizes of common elements, etc */
--nav-icon-size: 28px; /* size: var(--nav-icon-size); */
--default-top-margin: 70px; /* margin-top: var(--default-top-margin); */
}
/* end of css variables */
/* ====== MAIN PAGE ELEMENTS ====== */
body {
background-color: var(--color4); /* Changes background color */
}
h1, h2, h3, h4, h5, h6 { /* Re-use code and style multiple thingies at once */
font-family: var(--font);
font-weight: 600;
}
h1, h2 {
font-size: 1.4em; /* Adjusts font size for headings */
}
a, p {
font-family: var(--font);
font-weight: 400;
}
p.textbox {
margin: 18px auto; /* Adds both top and bottom margin specifically to the textbox to simulate double line breaks */
font-size: 0.9em;
line-height: 1.4em; /* Fix line height for readability reasons */
}
main {
padding-top: calc(var(--default-top-margin) * 2); /* Adds 10px to Default Margin value for aesthetical reasons */
}
.cta { /* Call to Action - Consisting of heading and 1-3 buttons */
width: var(--default-width); /* Refers to CSS variable so I only need to define width once */
margin: auto;
margin-top: var(--default-top-margin); /* Same here, except for margin-top */
text-align: center; /* Centers the text */
}
.cta .container {
display: flex; /* Easiest, cleanest way to stack elements horizontally */
align-items: center; /* Align items horizontally */
justify-content: center; /* Align items vertically */
gap: 20px; /* Margin between flex elements */
margin-top: 10px; /* Distance itself a little from the heading above */
}
.cta .button, #booking-system .button, #contact-form .button, #about button {
font-family: var(--font);
display: flex; /* A tags display improperly; this fixes it */
align-items: center;
background-color: var(--color3); /* Refers to CSS variable in :root */
color: white; /* Color = Text color */
border: none;
text-transform: uppercase; /*Turn all text into CAPS LOCK */
font-weight: 700; /* Make text more thicc */ /* Yes, I weight shame fonts. Deal with it. 😎 */
font-size: 0.8em; /* Reduce font size - I use EM instead of PX here, as EM is relative and scale better on mobile browsers*/
padding: 10px;
letter-spacing: 0.06em; /* Adds a little spacing between individual letters for legibility reasons */
text-decoration: none;
transition: 0.2s; /* Used with hover effect */
cursor: pointer;
max-width: 170px;
height: 50px;
}
.cta .button:last-child, #booking-system .button:last-of-type, #contact-form .button:last-of-type, #about button:last-of-type { /* First-child = First-born element in a family (group) of elements */
border: var(--color3) 2px solid; /* border (outline): [color] [thickness] [type] */
color: var(--color3); /* Text color */
background-color: white;
}
.cta .button:first-child, #booking-system .button:first-of-type, #contact-form .button:first-of-type, #about button:first-of-type { /* ^ You get the idea */
background-color: var(--color2);
color: white;
border: none;
}
.cta .button:hover, #booking-system .button:hover, #contact-form .button:hover, #about button:hover { /* I know it doesn't display correctly on mobile, but f*ck it :D */
background-color: black;
color: white;
transform: scale(1.1); /* Scale element to 110% on hover */
}
/* (end of main page elements) */
/* ====== NAVIGATION MENU START ====== */
nav#main { /* Navigation bar */
display: flex;
background: white;
position: fixed;
width: 100%;
height: 78px;
z-index: 2; /* Be infront of Burger Menu (when active) which has a Z of 1 - default is 0 */
background-color: white;
}
nav#main .container {
display: flex;
justify-content: center; /* Properly align contents of the navbar */
align-items: center; /* Vertically align items to the center */
width: var(--default-width);
max-width: var(--max-page-width);
margin: 0 auto;
}
/* --- Social Media buttons --- */
nav#main .SoMe {
gap: 8px;
display: none;
}
nav#main .SoMe a {
display: flex; /* Align SoMe icons correctly */
font-size: 0; /* Hide text only there for the sake of screen readers */
max-width: var(--nav-icon-size);
}
nav#main .SoMe img {
width: 100%;
}
/* --- Logo ---- */
nav .logo {
text-align: center;
width: 100%;
margin-left: 32px;
font-size: 0; /* Hide text only there for the sake of screen readers */
}
nav .logo img {
width: 100%;
max-width: 72px;
}
/* --- Burger Menu --- */
nav#main .burger-menu {
margin-left: auto;
font-size: 0; /* Hide text only there for the sake of screen readers */
max-width: var(--nav-icon-size); /* Refers to :root variable instead of a fixed number for consistency reasons */
}
nav#main .burger-menu img {
width: 100%;
}
.logo img{
max-width: 100px;
}
/* --- Burger Menu toggle --- */
nav#main .burger-menu {
font-size: 0; /* Hide text only there for screen readers */
border: none;
background: none;
cursor: pointer; /* Make thing properly appear clickable */
}
nav#main .burger-menu.active {
background-color: white; /* This is actually black, because invert filter below applies to this */
border-radius: 12px; /* Rounded corners */
filter: invert(1); /* Inverts the colors - so everything that's black turns white, vise-versa */
}
/* --- Desktop Navigation Menu items --- */
nav#main .desktop { /* Desktop navigation strip - Only visible on large screens */
display: none; /* Handled by @media query - must be hidden on Mobile version */
justify-content: space-between; /* Center content horizontally */
align-items: center; /* Center content vertically */
list-style-type: none;
width: 70%;
max-width: 600px;
}
nav#main .desktop a {
display: block; /* Changes visual property to be similar of a div box */
text-decoration: none; /* Removes ugly underline */
color: black; /* Removed link color */
font-weight: 600; /* Makes the font a lil extra thicc */
font-size: 0.9em;
}
nav#main .desktop a.active { /* Only applied to "active" button element (pre-defined on each page) */
color: var(--color3);
}
nav#main .desktop a:hover { /* Only applies to mouseover/hover */
color: var(--color2);
}
/* --- Mobile Fullscreen Burger Menu --- */
nav#burger-content { /* [Only visible when clicked] -- The contents and design of the Burger Menu */
width: 100%;
height: 100vh; /* Force height to take over the entire browser window */
position: fixed; /* Forces the nav to stay in place and float on top no matter what */
z-index: 1; /* Force element to be infront of everything else (default: 0) */
background-color: white;
}
nav#burger-content .container {
width: 75%;
margin-top: 170px;
margin-left: 5%;
}
nav#burger-content .container .logo img {
max-width: 80px; /* Prevents the logo from becoming massive */
}
nav#burger-content .container ul {
list-style-type: none; /* Removes bullet points */
}
nav#burger-content .container ul li {
border-bottom: var(--color1) solid 2px; /* Seperate the links with a line */
}
nav#burger-content .container ul li:last-child {
border: none; /* Fix issue with the last element */
}
nav#burger-content .container ul li a {
display: flex; /* Align items next to eachother horizontally instead of vertically */
gap: 6px;
height: 54px;
color: black;
text-decoration: none;
font-weight: 600;
font-size: 1.2em;
align-items: center;
}
nav#burger-content .container ul li a .marker {
width: var(--nav-icon-size); /* Uniformity with navbar icons */
height: var(--nav-icon-size);
background: none; /* Hide pointer icon by default */
display: block;
background-position-x: -4px; /* Fix icon alignment ever so slightly - only visible on hover */
}
nav#burger-content .container ul li a:hover .marker, nav#burger-content .container ul li a.active .marker {
background-image: url(img/icons/active-nav-item-icon.svg); /* Display pointer icon on hover and on active element */
}
/* end of navigation menu */
/* ====== INDIVIDUAL PAGE CONTENTS ====== */
/* --- Repetitive stuff for sections and containers --- */
#intro, #process, #services, #project-phases, #project-list, #project-dev, #service-list, #booking-system, #prices, #about, #values, #find-dlb, #contact-info, #contact-form { /* Fix sizing and alignment */
width: var(--default-width);
max-width: var(--max-page-width);
margin: auto; /* Center element properly */
}
#process, #services, #service-list, #prices, #booking-system, #values, #contact-info, #contact-form { /* Apply top margin */
margin-top: var(--default-top-margin);
}
/* --- FRONTPAGE Elements --- */
#welcome {
margin-top: -40px;
}
#process video { /* Video element on the frontpage */
width: 100%; /* Allow video to be responsive */
margin-bottom: 10px;
}
#process video.desktop { /* Hide Desktop video by default - This is handled by @media query below */
display: none;
}
#services {
text-align: center;
}
#services .container {
display: flex;
justify-content: center;
gap: 12px;
margin-top: 10px;
}
#services .container a {
width: 33%;
display: block;
text-decoration: none;
color: black;
text-align: center;
transition: .1s; /* Smoothen hover effect */
}
#services .container a:hover {
transform: scale(1.05); /* Effect - Scale to 105% on hover */
}
#services .container a img {
width: 100%;
font-size: 0; /* Hide the stupid placeholder text visible when an image is missing */
margin-bottom: 12px;
}
/* --- PROJECTS Page Elements --- */
#project-phases .item {
display: flex;
align-items: center;
gap: 14px;
margin-top: 21px;
}
#project-phases .item img {
width: 46px;
}
#project-phases .item h2 {
font-size: 0.95em;
font-weight: 700;
}
#project-phases .item p {
font-size: 0.85em;
}
#project-list .container {
display: flex;
justify-content: center;
flex-wrap: wrap;
text-align: center;
}
#project-list .item {
margin: 10px auto 30px auto; /* Shorthand for: margin-top: 10px; margin-right: auto; margin-bottom: 30px; margin-left: auto; */
text-decoration: none;
color: white;
background-color: var(--color1);
background-position: center; /* Fix background aligmnet */
background-size: cover; /* Shrink background to fit */
background-repeat: no-repeat; /* Turn off mechanic allowing background to "tile" */
width: 100%;
height: 46vw; /* Flexible item width - set element size to 46% of browser window width */
transition: .1s; /* Hover effect stuff */
}
#project-list .item h3 {
text-shadow: 0px 0px 18px black;
height: 30vw; /* Pre-defined height allows for text lines to be pushed upwards instead of downwards */
display: flex; /* This in itself shouldn't do anything, BUT it enables behavior below */
align-items: flex-end; /* Bottom-aligns text so text gets pushed upwards instead of downwards */
justify-content: center;
}
#project-list .item span {
font-size: 0.65em;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 6px 20px;
background-color: var(--color2);
display: block;
width: -moz-fit-content; /* Added this because VScode spits out error otherwise, which annoys me a lot more than it should :D */
width: fit-content; /* Actual magic; set the box width to *just* the width they need - nothing more/less */
margin: auto;
margin-top: 16px;
}
#project-list .item:hover {
transform: scale(1.05);
}
/* Define project portfolio images with background-image */
/* The radial gradient overlay has been created with https://html-css-js.com/css/generator/text-shadow/ */
/* While this may be a spammy way of doing it, I don't care, it works JUST like I want it to!! */
#stuehus-tureby { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/stuehus-tureby.jpg") }
#villa-karlslunde { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/villa-karlslunde.png") }
#koekken-faxe { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/koekken-faxe.png") }
#koekken-alleroed { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/koekken-alleroed.png") }
#b6-femern { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/b6-femern.png") }
#b5-femern { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/b5-femern.jpg") }
#tagreno-roskilde { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/tagreno-roskilde.png") }
#tilbygning-koege { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/tilbygning-koege.png") }
#droemmehus-jystrup { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/droemmehus-jystrup.jpg") }
#tilbygning-vaerloese { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/tilbygning-vaerloese.jpg") }
#stuehus-slagelse { background-image: radial-gradient(ellipse farthest-corner at center center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%), url("img/projects/stuehus-slagelse.jpg") }
/* --- SERVICES Page Elements --- */
#service-list .container {
margin-bottom: 44px;
width: 100%;
}
#service-list span {
display: block;
height: 55vw;
background-color: var(--color1); /* Fallback for when images load */
background-position: center;
background-size: cover;
}
#service-list .box {
width: 90%;
margin: auto;
background-color: white;
border: var(--color3) solid 2px;
padding: 20px;
font-size: 0.82em;
line-height: 1.3em;
margin-top: -50px;
}
#service-list h2 {
margin-bottom: 14px;
font-size: 1.5em;
}
/* Define background images */
#proj-dev-service { background-image: url("img/thumbnails/proj-dev-service.jpg") }
#consultation-service { background-image: url("img/thumbnails/consultation-service.jpg") }
#sketching-service { background-image: url("img/thumbnails/sketching-service.jpg") }
/* --- BOOKING Page Elements --- */
#booking-system .container {
background-color: white;
border: 2px var(--color3) solid;
padding: 12px;
margin: 10px auto;
}
#booking-system .segment, #contact-form .segment {
margin-bottom: 25px;
}
#booking-system .text-container, #booking-system label, #contact-form label {
font-size: 0.8em;
font-family: var(--font);
}
#booking-system .text-container {
display: flex;
gap: 5px;
}
#booking-system .required, #contact-form .required {
font-size: 14px;
color: red;
font-weight: 600;
}
#booking-system .button-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
#booking-system .button-container button {
background-color: var(--color1);
color: black;
border: none;
font-size: 0.64em; /* Reduce font size - I use EM instead of PX here, as EM is relative and scale better on mobile browsers*/
padding: 7px;
letter-spacing: 0.1em; /* Adds a little spacing between individual letters for legibility reasons */
text-decoration: none;
transition: 0.2s; /* Used with hover effect */
cursor: pointer;
transition: .1s;
border-radius: 6px;
text-transform: uppercase;
font-weight: 700;
}
#booking-system .button-container button:hover {
background-color: var(--color3);
color: white;
}
#booking-system .button-container button.active {
background-color: var(--color2);
color: white;
}
#booking-system input, #booking-system textarea, #booking-system select, #contact-form input, #contact-form textarea, #contact-form select {
width: 100%;
border: 2px var(--color3) solid;
padding: 8px;
font-family: var(--font);
font-weight: 600;
}
#booking-system .flex-container, #contact-form .flex-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
#booking-system .flex-container .segment, #contact-form .flex-container .segment {
width: 48%;
}
#booking-system select {
width: 100%;
}
#booking-system select option {
padding: 5000px !important;
}
#booking-system .button, #contact-form .button {
width: -moz-fit-content;
width: fit-content;
margin: auto;
}
#booking-system .container .complete, #contact-form .complete { /* Style elements triggered when User Journey is complete */
padding: 151px 0;
text-align: center;
}
#booking-system .container .complete img, #contact-form .complete img {
width: 100%;
max-width: 60px;
margin-bottom: 20px;
}
#prices {
text-align: center;
}
#prices .flex-container {
margin-top: 10px;
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 14px;
}
#prices .flex-container .container {
width: 25%;
}
#prices .container img {
width: 72%;
max-width: 64px;
margin: auto;
font-size: 0; /* Remove placeholder text when image is missing */
display: block;
}
#prices .container h2 {
font-size: 0.9em;
text-align: center;
margin: 6px 0;
}
#prices .container p {
font-size: 0.8em;
margin-bottom: 9px;
}
/* --- ABOUT Page Elements --- */
#about .flex {
display: flex;
justify-content: space-between;
gap: 6vw;
}
#about img {
width: 100%;
margin-top: 20px;
}
#about button {
width: 100%;
text-align: center;
justify-content: center;
text-align: center;
margin: auto;
}
#values .text-container {
max-width: calc(var(--max-page-width) / 2 );
margin: auto;
margin-bottom: var(--default-top-margin);
}
#values .gallery {
display: flex;
flex-wrap: wrap;
gap: 14px;
justify-content: center;
}
#values .gallery img {
width: 47%;
}
/* --- CONTACT Page Elements --- */
#find-dlb img {
width: 100%;
margin-bottom: 20px;
}
#find-dlb .info {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 10px;
margin-top: 40px;
max-width: 360px;
}
#find-dlb .info .container {
margin: auto;
display: flex;
justify-content: center;
text-decoration: none;
font-size: 0.9em;
color: black;
align-items: center;
}
#find-dlb .info .container img {
max-width: 48px;
margin-top: -6px;
margin-bottom: 0;
}
#contact-info .map-container {
justify-content: center;
margin-top: 10px;
}
#contact-info .opening-hours {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
#contact-info .opening-hours p {
width: 50%;
font-size: 1em;
line-height: 1.5em;
}
#contact-info .opening-hours p.closed {
color: var(--color2);
font-weight: 600;
}
#contact-info .opening-hours p:nth-child(even) {
text-align: right;
}
#contact-info #google-maps {
margin-top: 30px;
width: 100%;
}
#contact-info #google-maps iframe {
width: 100%; /* Handle the iframe width in CSS because doing it in HTML simply doesn't work as intended */
height: 60vw; /* Handle the iframe height in CSS because doing it in HTML is a war crime :D */
border: 0;
}
/*
!!! Contact form code tied into the Booking System code for conosistency reasons !!
*/
#contact-form h2 {
margin-bottom: 10px;
}
#contact-form .complete { /* Style elements triggered when User Journey is complete */
padding: 71px 0;
}
/* (end of individual page content) */
/* ====== FOOTER START ====== */
footer {
background-color: white;
padding: var(--default-top-margin) 0;
padding-bottom: calc(var(--default-top-margin) / 2);
font-size: 0.9em;
text-align: center;
margin-top: calc(var(--default-top-margin) + 20px); /* This looks fucked, but all it does it that it adds 20px to default margin value for aesthetical reasons*/
}
footer section {
display: flex;
justify-content: space-between; /* Works a bit like space-between, but it respects the space on the outer borders */
margin: auto;
align-items: center;
max-width: var(--max-page-width);
width: var(--default-width);
}
footer .SoMe {
gap: 12px;
display: flex;
}
footer .SoMe a {
display: flex; /* Align SoMe icons correctly */
font-size: 0; /* Hide text only there for the sake of screen readers */
max-width: var(--nav-icon-size); /* More uniformity with the navbar icons */
}
footer .SoMe img {
width: 100%;
}
footer .address {
width: 80%;
margin: auto;
margin-top: 18px;
justify-content: center;
gap: 12px;
}
footer .address img {
width: calc(var(--nav-icon-size) / 1.5);
}
/* end of footer */
/* W3S SLIDER https://www.w3schools.com/howto/howto_js_slideshow.asp */
/* Slideshow container */
#intro .slider {
padding-bottom: var(--default-top-margin);
}
/* Hide the images by default */
.mySlides {
display: none;
}
.slider .prev, .slider .next {
cursor: pointer;
font-weight: bold;
font-size: 1.3em;
transition: 0.6s ease;
background-color: var(--color3);
color: white;
padding: 5px 8px;
opacity: 0.7;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: var(--color2);
transition: none;
color: white;
opacity: 1;
}
/* The dots/bullets/indicators */
.dot {
cursor: pointer;
height: 15px;
width: 15px;
margin: 0 3px;
background-color: var(--color1);
border-radius: 50%;
display: inline-block;
transition: background-color 0.3s ease;
}
.slider .active, .dot:hover {
background-color: var(--color2)
}
.slider img {
width: 100%;
}
.slider .buttons {
display: flex;
justify-content: space-between;
width: var(--default-width);
margin: auto;
margin-top: -30vw;
margin-bottom: calc(30vw + -36px);
z-index: 2;
}
.slider .dots {
text-align: center;
}
/* ====== MEDIA QUERIES - SCALE CONTENT FOR BIGGER DEVICES ======*/
@media screen and (min-width: 1024px) { /* --- Laptop --- */
/* ====== CSS VARIABLES START ====== */
:root { /* Update relevant CSS variables */
/* Margins - To streamline left-right margins for mis.c objects */
--default-width: 80%;
--max-page-width: 980px;
/* Miscelanious - Sizes of common elements, etc */
--nav-icon-size: 32px;
--default-top-margin: 80px;
}
main#fneh {
margin-bottom: calc(var(--default-top-margin) * -1);
}
/* end of css variables */
/* ====== MAIN PAGE ELEMENTS ====== */
.cta .button, #booking-system .button, #contact-form .button {
font-size: 0.9em;
padding: 15px;
letter-spacing: 0.07em;
max-width: 200px;
}
/* (end of main page elements) */
/* ====== NAVIGATION MENU START ====== */
nav#main .container {
flex-direction: row-reverse;
justify-content: space-between;
}
nav#main .logo {
margin: 0;
width: unset;
}
nav#main .desktop {
display: flex;
}
/* --- Burger Menu --- */
nav#main .burger-menu {
display: none;
}
/* end of navigation menu */
/* ====== INDIVIDUAL PAGE CONTENTS ====== */
/* --- Repetitive stuff for sections and containers --- */
#process, #services, #project-phases, #project-list, #project-dev, #service-list, #booking-system, #prices, #about, #values, #find-dlb, #contact-info, #contact-form { /* Fix sizing and alignment */
width: var(--default-width);
margin: auto; /* Center element properly */
max-width: var(--max-page-width);
}
#services, #project-list, #prices, #values, #booking-system, #contact-info, #contact-form { /* Apply top margin */
margin-top: var(--default-top-margin);
}
/* --- FRONTPAGE Elements --- */
#intro {
display: flex;
flex-direction: row-reverse;
align-items: center;
gap: 2vw