Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
308 lines (296 loc) · 6.54 KB
/
Copy pathstyle.css
File metadata and controls
308 lines (296 loc) · 6.54 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
:root{
--black: #121212;
--white: #ffffff;
--red: #FF4500;
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
font-family: Arial, sans-serif;
/* This CSS variable syntax was fixed */
background-color: var(--black);
margin: 0;
padding: 0;
overflow-x: hidden;
/* Removed text-align: center; as it causes layout issues */
}
/* --- Main Content Blur Effect --- */
#main-content.blurred {
filter: blur(8px);
transition: filter 0.3s ease-out;
}
/* --- Header / Navigation --- */
header{
position: fixed;
/* Adjusted to 20px from 25px */
bottom: 20px;
left: 50%;
transform: translate(-50%);
width: 90%;
max-width: 700px; /* Added max-width for better scaling */
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.2);
/* Changed border-radius for a clean pill shape */
border-radius: 50px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 40px;
box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
z-index: 100; /* Ensure header is above other content */
}
header h1{
color: var(--white);
font-weight: 700;
font-size: 22px; /* Slightly reduced size */
letter-spacing: 1px;
}
nav a{
color: var(--white);
margin-left: 25px;
font-weight: 500;
position: relative;
transition: color 0.3s ease;
text-decoration: none; /* Added to remove underline */
}
nav a::after{
content:"";
position: absolute;
left: 0%;
bottom: -5px;
width: 0%;
height: 2px;
background-color: var(--red);
transition: width 0.3s ease;
}
nav a:hover {
color: var(--red);
}
nav a:hover::after{
width: 100%;
}
/* --- Hero Section --- */
.hero{
position: relative;
height: 70vh;
overflow: hidden;
}
.hero video{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(60%);
}
.overlay{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
}
/* This class selector was fixed */
.hero-text {
position: absolute;
top: 35%;
left: 10%;
color: var(--white);
max-width: 600px;
z-index: 2;
text-align: left; /* Added to override any parent centering */
}
.hero-text h2 {
color: var(--red);
font-size: 48px;
margin-bottom: 20px;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-text p {
font-size: 20px;
color: #ddd;
line-height: 1.6;
margin-bottom: 25px;
}
/* General .btn class for all buttons */
.btn {
background: var(--red);
border: none;
color: var(--white);
padding: 12px 28px;
font-size: 16px;
border-radius: 25px;
cursor: pointer;
transition: background 0.3s ease;
text-decoration: none; /* For links styled as buttons */
display: inline-block; /* For links styled as buttons */
}
.btn:hover {
background: #e03d00; /* Darker red on hover */
}
/* --- Featured Recipes Section --- */
.recipes{
padding: 80px 60px;
background-color: var(--black);
text-align: center;
}
.recipes h2{
color: var(--red);
font-size: 32px;
margin-bottom: 40px;
letter-spacing: 1px;
}
.recipe-grid{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.recipe-card{
background: #1a1a1a;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease;
text-align: left; /* Aligns text inside card to the left */
}
.recipe-card:hover{
transform: translateY(-6px);
}
.recipe-card img{
width: 100%;
height: 180px;
object-fit: cover;
}
.recipe-card h3{
margin: 15px 20px 10px; /* Adjusted margin */
color: var(--white); /* Brighter color */
font-size: 20px; /* Increased size */
}
/* NEW: Added styling for the paragraph */
.recipe-card p {
margin: 0 20px 20px;
color: #aaa;
font-size: 14px;
line-height: 1.5;
}
/* --- NEW: Browse by Cuisine Section --- */
.browse-cuisine {
padding: 40px 60px 80px; /* Less top padding */
background-color: var(--black);
text-align: center;
}
.browse-cuisine h2 {
color: var(--red);
font-size: 32px;
margin-bottom: 40px;
letter-spacing: 1px;
}
.cuisine-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 25px;
margin-bottom: 40px;
}
.cuisine-card {
position: relative;
border-radius: 15px;
overflow: hidden;
display: block;
height: 250px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease;
}
.cuisine-card:hover {
transform: translateY(-6px);
}
.cuisine-card img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(70%);
transition: filter 0.3s ease;
}
.cuisine-card:hover img {
filter: brightness(50%);
}
.cuisine-name {
position: absolute;
bottom: 20px;
left: 20px;
color: var(--white);
font-size: 24px;
font-weight: bold;
text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
/* --- Footer --- */
footer{
background: #0d0d0d;
color: #aaa;
text-align: center;
padding: 30px; /* Increased padding */
font-size: 14px;
letter-spacing: 0.5px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
/* Add padding-bottom to clear the fixed header */
padding-bottom: 100px;
}
/* --- NEW: Popup Styles --- */
.popup-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(5px);
display: flex;
justify-content: center;
align-items: center;
z-index: 1001;
/* Start hidden */
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-container.active {
opacity: 1;
visibility: visible;
}
.popup {
background: #2a2a2a; /* Dark background for popup */
color: var(--white);
padding: 30px 40px;
border-radius: 15px;
text-align: center;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
/* Animation */
transform: scale(0.9);
transition: transform 0.3s ease-out;
}
.popup-container.active .popup {
transform: scale(1);
}
.popup-avatar {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 20px;
border: 3px solid var(--red);
}
.popup h2 {
color: var(--red);
margin-bottom: 15px;
font-size: 28px;
}
.popup p {
color: #ccc;
font-size: 16px;
margin-bottom: 25px;
}