-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
107 lines (91 loc) · 2.15 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
line-height: 35px;
}
#wrapper {
height: 100vh;
overflow-x: hidden;
overflow-y: auto;
perspective: 10px;
}
.container {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
transform-style: preserve-3d;
}
.background,
.foreground {
position: absolute;
height: 100%;
width: 100%;
z-index: -1;
object-fit: cover;
}
.background {
transform: translateZ(-70px) scale(8.1);
}
.foreground {
filter: contrast(2);
transform: translateZ(-40px) scale(5);
}
.container h1 {
position: absolute;
top: 5rem;
font-weight: 600;
z-index: 1;
font-size: 10rem;
letter-spacing: 6px;
color: white;
text-shadow: 0 0 10px rgba(244, 69, 69, 0.879);
}
section {
position: absolute;
}
section h1 {
font-size: 5rem;
color: white;
}
section p {
font-family: "Dosis", sans-serif;
}
.details h2 {
text-align: center;
font-size: 40px;
font-weight: 500;
text-decoration: underline;
margin-bottom: 25px;
}
.bg1 {
background-image: url(assests/ironman.jpg);
}
.bg2 {
background-image: url(assests/captainamerica.jpg);
}
.bg3 {
background-image: url(assests/black-panther.jpg);
}
.bg {
display: flex;
justify-content: center;
align-items: center;
background-position: center;
background-size: cover;
background-attachment: fixed;
height: 500px;
}
.details {
padding: 55px;
font-size: 23px;
color: white;
background: linear-gradient(145deg, rgb(9, 9, 9) 30%, rgb(183, 174, 174) 80%);
}