-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
182 lines (148 loc) · 3.02 KB
/
index.css
File metadata and controls
182 lines (148 loc) · 3.02 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
* {
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
overflow-x: hidden; /* Hide horizontal scrollbar */
}
.content {
padding: 20px;
}
.paragraphs {
position: absolute;
bottom: 20px; /* Adjust bottom position as needed */
left: 50%; /* Center horizontally */
transform: translateX(-50%); /* Center horizontally */
width: 80%; /* Adjust width as needed */
background-color: rgba(255, 255, 255, 0.8); /* Set background color and opacity */
padding: 20px;
border-radius: 10px;
font-size: large;
}
.paragraphs p {
margin-bottom: 20px; /* Add margin between paragraphs */
}
.paragraphs p.slogan {
font-size: x-large;
}
.background-wrapper {
position: relative;
height: 100vh; /* Adjust height of background wrapper */
overflow-y: hidden; /* Hide vertical scrollbar */
}
.background-image {
background-image: url('hunger.jpg');
background-size: cover;
background-position: center;
height: 100%; /* Adjust the height of the background image */
width: 100%; /* Ensure the background image covers the entire width */
position: absolute;
top: 0;
left: 0;
z-index: -1; /* Place the background image behind other content */
}
main {
padding: 20px;
}
main {
display: flex;
flex-wrap: wrap;
/* Allow flex items to wrap to the next line */
justify-content: center;
align-items: center;
padding: 20x;
font-family: "Roboto", sans-serif;
}
.content1 {
text-align: left;
padding: 100px;
}
.content1 h1 {
font-size: 70px;
font-weight: 600;
color: #171717;
padding-bottom: 50px;
}
.content1 p {
width: 75%;
line-height: 2;
color: #040404;
font-size: 30px;
font-weight: 300;
line-height: 45px;
}
.card {
width: 300px;
height: 500px;
border-radius: 10px;
overflow: hidden;
cursor: pointer;
position: relative;
color: #f0f0f0;
box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.2);
margin: 10px;
/* Add margin between cards */
}
.card img {
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0.9;
transition: opacity 0.2s ease-out;
}
.card h2 {
position: absolute;
inset: auto auto 30px 30px;
margin: 0;
transition: inset 0.3s 0.3s ease-out;
font-family: "Roboto Condensed", sans-serif;
font-weight: normal;
text-transform: uppercase;
}
.card p,
.card a {
position: absolute;
opacity: 0;
max-width: 80%;
transition: opacity 0.3s ease-out;
}
.card p {
inset: auto auto 80px 30px;
}
.card a {
inset: auto auto 40px 30px;
color: inherit;
text-decoration: none;
}
.card:hover h2 {
inset: auto auto 220px 30px;
transition: inset 0.3s ease-out;
}
.card:hover p,
.card:hover a {
opacity: 1;
transition: opacity 0.5s 0.1s ease-in;
}
.card:hover img {
transition: opacity 0.3s ease-in;
opacity: 1;
}
.material-symbols-outlined {
vertical-align: middle;
}
@media(max-width: 1200px) {
.hideOnMobile {
display: none;
}
.menu-button {
display: block;
}
nav .logo {
padding: 22px 0;
}
}