-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
705 lines (644 loc) · 15.1 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
/* The main CSS has been created for mobile/portable device viewing, eveything within Media query is for desktop viewing */
/* The media queries for desktop where relevant are right below the mobile version code */
/* removing the scroll bar along x-axis */
html, body {
overflow-x: hidden;
height: 100%;
margin: auto;
position: relative;
text-align: center;
/* allow day and night time mode backgrounds to have smooth transition */
transition: background-image 2s ease-in-out;
background-repeat: no-repeat;
background-size: cover;
}
/* background */
/* background image for day time */
.day-time {
background-image: url("images/background.svg");
background-color: #BBEEF3;
}
/* background image for night time */
.night-time {
background-image: url("images/background-night.svg");
background-color: #7E8F90;
}
/* Paragraph style */
p {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
}
/* changed font colours for day and night mode */
.night-time p {
color: #4F5859;
}
.day-time p {
color: #2D506D;
}
/* format for all paragraph text boxes that pop up except ground one */
/* positioning */
.text-box {
position: absolute;
box-sizing: border-box;
margin: 0;
overflow-y: auto;
overflow-x: hidden;
width: 150px;
max-height: 150px;
transition: opacity 0.5s linear;
z-index: 1;
}
/* for desktop mode */
@media (min-width: 768px) {
.text-box {
max-height: none;
transition: opacity 1s linear;
overflow-y: unset;
width: 200px;
bottom: auto;
}
}
/* text box styling */
.text-box-style {
background-color: white;
padding: 5px;
border-radius: 3px;
}
/* colour of text box border day and night */
.night-time .text-box-style {
border: 3px solid #C1C9CA;
}
.day-time .text-box-style {
border: 3px solid #B7B7B7;
}
/* font style for h1 and h2 classes */
.font-style {
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
transition: 2s ease-in-out;
}
/* font size for h1 class*/
.welcome {
display: inline;
font-size: 1.5rem;
}
/* desktop mode */
@media (min-width: 768px) {
.welcome {
font-size: 3rem;
}
}
/* size and position of h2 class */
.instruction {
font-size: 0.8rem;
margin: 10px 20px;
}
/* font colour for day time and night time */
.day-time .font-style {
color: #2D506D;
}
.night-time .font-style {
color: white;
}
/* underline for header text day and night */
.day-time .welcome {
border-bottom: #2D506D solid 2px;
}
.night-time .welcome {
border-bottom: white solid 2px;
}
/* Sky line - includes smoke, sun and moon*/
/* Container to distance between Header text and house */
.sky-line {
display: block;
height: 180px;
}
/* sun and moon container and position */
.sun-moon-container {
cursor: pointer;
display: inline;
position: relative;
height: 118px;
width: 118px;
float: left;
z-index: 1;
left: 10%;
top: 20%;
}
/* position within container for sun and moon to be on top of eachother */
.satellite {
position: absolute;
height: 100%;
width: 100%;
transition: opacity 2s ease-in-out;
background-repeat: no-repeat;
}
/* background image for day time */
.sun {
background-image: url("images/sun-white.svg");
}
/* background image for night time */
.moon {
background-image: url("images/moon.svg");
}
/* sun hover to change from white to yellow */
.sun-moon-container:hover .sun {
background-image: url("images/sun-color.svg");
}
/* chimney smoke */
/* container for group of smoke */
.smoke-container {
display: inline;
width: 50%;
float:right;
}
/* size of container for each smoke cloud */
.smoke {
position: relative;
background-image: url("images/smoke-white.svg");
background-repeat: no-repeat;
margin-bottom: 8px;
height:70px;
width: 107px;
z-index: 1;
}
/* position for smoke clouds */
.smoke1, .smoke3 {
margin-left: auto;
margin-right: auto;
}
.smoke2 {
margin-left: 40%;
margin-right: auto;
}
/* desktop mode */
@media (min-width: 768px) {
.smoke1, .smoke3 {
margin-left: 20%;
margin-right: auto;
}
.smoke2 {
margin-left: 30%;
margin-right: auto;
}
}
/* positioning of link images within smoke cloud */
.links-logo {
position: absolute;
height: 30px;
bottom: 16px;
left: 50%;
transform: translate(-50%,0);
opacity: 0.3;
}
/* hover image over smoke cloud and logo */
.smoke:hover {
background-image: url("images/smoke-grey.svg");
}
.smoke:hover .links-logo {
opacity: 0.8;
}
/* House elements container */
/* width of house container */
.elements-width {
min-width: 375px;
max-width: 640px;
margin: auto;
}
/* main house background */
.house-container {
position: relative;
width: 90%;
background-image: url(images/housebase-white.svg);
background-repeat: no-repeat;
background-size: 100%;
/* Indent the windows below roof */
padding-top: 200px;
}
/* Circular Winodw */
/* circular window container and position */
.circle-window-container {
margin: auto auto 30px auto;
position: relative;
width: 167px;
height: 167px;
}
/* position of background images within container */
.circle-window {
position: absolute;
height: 100%;
width: 100%;
transition: opacity 2s ease-in-out;
background-repeat: no-repeat;
}
/* background image for day time */
.circle-day {
background-image: url("images/circularwindow-white.svg");
}
/* background image for night time */
.circle-night {
background-image: url("images/circularwindow-night.svg");
}
/* position of text when hovering over circle window*/
.circle-text {
opacity: 0;
right: 120px;
bottom: 120px;
}
/* desktop mode */
@media (min-width: 768px) {
.circle-text {
bottom: 100px;
top: auto;
left: 100px;
}
}
/* hover to change backgroun image during day time */
.circle-window-container:hover .circle-day {
background-image: url("images/circularwindow-color.svg");
}
/* hover for pop up text day and night time */
.circle-window-container:hover .circle-text,
.circle-window-container:hover .circle-night-text {
opacity: 1;
}
/* Ground Floor Container */
/* ground floor container for door and rectangular window */
/* stacked on top of each other */
.gf-container {
display: block;
max-width: 100%;
height: auto;
margin: 0 11.3%;
background-color: white;
}
/* desktop mode */
/* door and window next to each other */
@media (min-width: 768px) {
.gf-container {
height: 300px;
position: relative;
}
}
/* Rectangular Window */
/* window container sets size and position of window */
.rectangle-window-container {
position: relative;
height: 147px;
width: 192px;
top: 19.5%;
display: block;
/* centered in parent div */
margin: auto;
}
/* desktop mode position */
@media (min-width: 768px) {
.rectangle-window-container {
position: absolute;
top: 20%;
display: inline;
transform: none;
left: 52%;
}
}
/* position of background images within container */
.rectangle-window {
position: absolute;
height: 100%;
width: 100%;
transition: opacity 2s ease-in-out;
background-repeat: no-repeat;
}
/* background image for day time */
.rectangle-window-day {
background-image: url("images/rectangularwindow-white.svg");
}
/* background image for night time */
.rectangle-window-night {
background-image: url("images/rectangularwindow-night.svg");
}
/* Text position for text when hovering over rectangle window */
.window-text {
left: 120px;
bottom: 130px;
opacity: 0;
}
/* desktop mode */
@media (min-width: 768px) {
.window-text {
bottom: 100px;
top: auto;
}
}
/* hover over rectangle window to reveal image carousel */
.rectangle-window-container:hover .img-carousel {
display: inline;
}
/* hover over rectangle window day time to reveal colour change in window */
.rectangle-window-container:hover .rectangle-window-day {
background-image: url("images/rectangularwindow-color.svg");
}
/* hover over window container day and night to get assocaited text box to appear */
.rectangle-window-container:hover .window-text,
.rectangle-window-container:hover .rectangle-window-night-text {
opacity: 1;
}
/* Image Carousel */
/* image carousel size and position */
.img-carousel {
position: absolute;
display:none;
top: 8px;
/* centres container withing parent container */
left: 50%;
transform: translate(-50%,0);
height: 120px;
margin: auto;
width: 160px;
overflow: hidden;
/* z-index: 1; */
}
/* text caption for each image slide */
.text-caption {
/* display: none; */
position: fixed;
top: 0;
padding-top: 10px;
font-size: small;
font-family: Arial, Helvetica, sans-serif;
width: 100%;
text-align: left;
padding: 5px;
color: #2D506D;
}
/* image slide dots to show position of image */
/* position in image carousel container */
.dots-container {
position: absolute;
width: 100%;
bottom: 0;
z-index:2;
}
/* size and position of dot for slide image */
.dots-container div {
display: inline-block;
width: 8px;
height: 8px;
background-image: url(images/dot.svg);
background-repeat: no-repeat;
}
/* to indicate current image shown */
.dots-container .dot-active {
background-image: url(images/dot-color.svg);
background-repeat: no-repeat;
transition: 0.5s linear;
}
/* Image Carousel Buttons */
/* play, pause, left and right buttons styling */
button {
border: none;
height: 100%;
padding: 0;
background: none;
}
/* image size of buttons */
button > img {
width: 10px;
height: auto;
}
/* removes outline when button is clicked */
button:focus {
outline: none;
}
/* play and pause buttons positioning */
.btn-play-pause {
position: absolute;
z-index: 2;
bottom: 10px;
width: 100%;
}
/* class to hide element */
.play-hide {
display: none;
}
/* size of left and right arrows and vertical position */
.btn-arrow {
position: absolute;
height: 100%;
width: 25px;
/* positioning infront of all elements on website */
z-index: 2;
}
/* left slide arrow horizontal position */
.left-arrow {
left: 0;
}
/* right slide arrow horizontal position */
.right-arrow {
right: 0;
}
/* hover for shadow on right and left arrows */
.btn-arrow:hover {
background-color: rgba(128, 128, 128, 0.2);
}
/* hide buttons when only 1 image is included for image carousel */
.btn-hidden {
opacity: 0;
}
/* image slides */
/* default size and position of each slide */
.slide {
position: absolute;
overflow: hidden;
width: 100%;
height: 100%;
transition: all 0.5s linear;
margin: 0;
}
/* images inbedded with slide to fit within slide size */
.slide img {
max-width: 100%;
height: auto;
}
/* sliding motion for image carousel */
/* for image carousels with more than 3 slides, all other slides hidden */
.img-hidden {
display: none;
}
/* for image carousels with 3 slides, index -1 prevents overlap of slides when sliding */
.img-index {
z-index: -1;
}
/* position of next slide on the right */
.img-right {
left: 100%;
}
/* position of active slide */
.img-active {
left: 0;
z-index: 1;
}
/* position of next slide on the left */
.img-left {
left: -100%;
}
/* Door */
/* size and position of all doors */
.door-container {
position: relative;
margin: 30px auto auto auto;
width: 167px;
height: 240px;
display: block;
}
/* desktop mode */
@media (min-width: 768px) {
.door-container {
position: absolute;
left: 10%;
/* bottom is to keep image algned with house */
bottom: 0;
}
}
/* position of day time and night time door within door container */
.door {
position: absolute;
height: 100%;
width: 100%;
transition: opacity 2s ease-in-out;
background-repeat: no-repeat;
}
/* background image of door during day time */
.door-day {
background-image: url("images/door-white.svg");
}
/* background image of door during night time */
.door-night {
background-image: url("images/door-night.svg");
}
/* position of me at door */
.me-char {
position: absolute;
display: none;
left:51px;
bottom: 0%;
}
/* hover over day time door for change in colour */
.door-container:hover .door-day {
background-image: url("images/door-color.svg");
}
/* hover over day time door for me to appear */
.door-container:hover .me-char {
display: inline-block;
}
/* text position for door when hovered over */
.door-text {
bottom:120px;
right: 120px;
opacity: 0;
}
/* desktop mode */
@media (min-width: 768px) {
.door-text {
top: auto;
bottom: 200px;
left:-100px;
}
}
/* styling of some text within door text class */
.door-text span {
font-style: italic;
}
/* hover over door for text to appear - day and night time */
.door-container:hover .door-text,
.door-container:hover .door-night-text {
opacity: 1;
}
/* Ground */
/* line that runs across below house */
.ground-line {
border-top: white solid 8px;
margin: 5px auto;
width: 100%;
}
/* container for foundations and text */
.ground-container {
display: block;
padding-bottom: 50px;
width: 90%;
background: transparent;
transition: 2s linear;
position: relative;
margin: auto;
}
/* text position of text that appears when ground is hovered over */
.ground-text {
margin: 0px 50px;
padding: 5px;
opacity: 0;
transition: opacity 0.5s linear;
z-index: 1;
}
/* desktop mode */
@media (min-width: 768px) {
.ground-text {
width: 80%;
margin: auto;
}
}
/* hover over ground to reveal background image */
.ground-container:hover {
background-image: url("images/foundation-white.svg");
background-repeat: no-repeat;
background-position: center top;
background-size: contain;
}
/* hover over ground to reveal text */
.ground-container:hover .ground-text {
opacity: 1;
}
/* Letter box */
/* size, position, and bakground image of letterbox */
.letterbox {
position: absolute;
background-image: url("images/letterbox-white.svg");
height: 111px;
width: 88px;
bottom: 0px;
}
/* position of text when letter box is hovered over */
.letterbox-text {
top: 50px;
bottom: auto;
opacity: 0;
width: auto;
}
/* desktop mode */
@media (min-width: 768px) {
.letterbox-text {
left: -50px;
}
}
/* hover over letter box for a new image during day time mode only */
.day-time .letterbox:hover {
background-image: url("images/letterbox-color.svg");
}
/* hover over letter box, day or night time to reveal text */
.letterbox:hover .letterbox-text {
opacity: 1;
}
/* hide night time elements during the day time mode */
.day-time .background-night,
.day-time .circle-night,
.day-time .rectangle-window-night,
.day-time .door-night,
.day-time .moon {
opacity: 0;
}
/* hiding day time elements during night time mode */
.night-time .door-day,
.night-time .circle-day,
.night-time .rectangle-window-day,
.night-time .sun {
opacity: 0;
}