-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
307 lines (262 loc) · 7.69 KB
/
styles.css
File metadata and controls
307 lines (262 loc) · 7.69 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
/* --- VARIABLES & RESET --- */
:root {
/* Palette based on the new sunset image (Task 2) */
--bg-color: #142415; /* Deep Jungle Green background */
--text-color-light: #eaddca; /* Cream/Bone color for body text */
--accent-gold: #e8a64b; /* Sunset Gold for headers and borders */
--accent-brown: #5b3a29; /* Rock Brown for footer/containers */
--accent-red: #c05e3d; /* Sunset reddish-orange for highlights */
--pixel-border: 4px solid var(--accent-gold); /* Standard pixel border */
}
/* --- VARIABLES & RESET --- */
/* (Keep your :root variables here) */
body {
margin: 0;
padding: 0;
background-color: var(--bg-color);
font-family: 'VT323', monospace;
color: var(--text-color-light);
font-size: 1.2rem;
image-rendering: pixelated;
/* IMPORTANT: This stops a horizontal scrollbar from appearing */
overflow-x: hidden;
}
/* --- TYPOGRAPHY --- */
/* Task 3: Center all headings */
h1, h2, h3 {
text-align: center;
color: var(--accent-gold);
text-transform: uppercase;
letter-spacing: 2px;
text-shadow: 2px 2px 0px #000; /* Retro shadow effect */
}
h1 { font-size: 3rem; margin-bottom: 10px; }
h2 { font-size: 2.5rem; border-bottom: 2px dashed var(--accent-brown); padding-bottom: 10px; }
/* --- HEADER & NAV --- */
header {
text-align: center;
padding: 0; /* Changed from 20px to 0 so the image touches the edges */
margin: 0;
width: 100%;
overflow: hidden; /* Ensures no horizontal scrollbars appear */
}
/* --- HEADER IMAGE FIX --- */
.header-image {
display: block;
width: 100%;
/* 1. Reduce height to 50% of the screen height */
height: 50vh;
/* CRITICAL: This crops the image so it doesn't look squashed */
object-fit: cover;
object-position: center bottom; /* Optional: Focuses on the bottom part of the image (the animals) */
/* 2. Remove the line */
border-bottom: none;
/* Keep your shadow if you like it */
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
/* Task 4: Nav section with enclosing lines */
nav {
text-align: center;
margin: 20px auto;
padding: 15px 0;
/* Top and bottom borders to enclose it */
border-top: var(--pixel-border);
border-bottom: var(--pixel-border);
background-color: rgba(91, 58, 41, 0.3); /* Slightly lighter brown background */
}
nav ul {
padding: 0;
list-style-type: none;
}
nav li {
display: inline-block;
margin: 0 15px;
}
nav a {
text-decoration: none;
color: var(--accent-gold);
font-size: 1.5rem;
padding: 5px 10px;
border: 2px solid transparent; /* Placeholder for hover */
}
nav a:hover {
border: 2px dashed var(--accent-gold);
color: var(--text-color-light);
}
/* --- MENU SECTIONS --- */
/* Targets your categories: lunches, desserts, drinks, etc. */
.lunches, .desserts, .drinks, .house-specials {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-bottom: 40px;
padding: 0 20px;
}
/* --- THE MENU CARDS --- */
article {
background-color: var(--accent-brown);
border: 3px solid var(--accent-gold);
border-radius: 25px; /* Round corners */
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
transition: transform 0.3s ease;
}
article:hover {
transform: translateY(-5px);
box-shadow: 0 15px 25px rgba(232, 166, 75, 0.2);
}
article img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 15px;
border: 2px solid rgba(0,0,0,0.3);
margin-bottom: 15px;
}
article h3 {
margin: 10px 0;
color: var(--accent-gold);
font-size: 1.8rem;
text-transform: uppercase;
text-align: center;
}
article p {
font-size: 1.1rem;
line-height: 1.4;
text-align: center;
color: var(--text-color-light);
}
/* Styles the Price inside the <i> tag */
article p i {
display: block;
margin-top: 15px;
font-style: normal;
font-weight: bold;
color: var(--accent-gold);
font-size: 1.4rem;
background-color: rgba(0,0,0,0.2);
padding: 5px;
border-radius: 10px;
}
/* Spacing for "Menu" title */
#menu h2 {
margin-top: 40px;
margin-bottom: 30px;
}
/* --- THE "BUBBLE" CONTAINER --- */
#order-form {
max-width: 600px;
margin: 60px auto; /* Centers it vertically and horizontally */
/* The Bubble Look */
background-color: var(--accent-brown);
border: 4px solid var(--accent-gold);
border-radius: 30px; /* Big rounded corners */
padding: 40px;
/* A deep retro shadow to make it pop off the background */
box-shadow: 0 10px 0 rgba(0,0,0,0.5);
}
#order-form h2 {
margin-top: 0;
border-bottom: none; /* Removes the dashed line from the generic h2 style */
margin-bottom: 20px;
}
/* --- ALIGNING THE LIST --- */
#order-form ul {
list-style: none; /* Removes the bullet points */
padding: 0;
margin: 0;
}
#order-form li {
display: flex; /* This aligns items in a row */
justify-content: space-between; /* Pushes Label left, Input right */
align-items: center; /* Vertically centers them */
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px dashed rgba(232, 166, 75, 0.3); /* faint gold line separator */
}
/* --- INPUT BOXES (The Slots) --- */
#order-form input[type="number"] {
width: 60px; /* Nice and compact for quantities */
background-color: var(--bg-color);
border: 2px solid var(--accent-gold);
color: var(--text-color-light);
font-family: 'VT323', monospace;
font-size: 1.3rem;
text-align: center;
border-radius: 10px;
padding: 5px;
}
/* --- FIELDSETS (Sides & Addons) --- */
fieldset {
border: 2px solid var(--accent-gold);
border-radius: 15px;
background-color: rgba(0,0,0,0.2); /* Slightly darker area */
margin-top: 20px;
padding: 15px;
}
legend {
color: var(--accent-gold);
font-size: 1.3rem;
padding: 0 10px;
}
/* Customizing the checkboxes/radios labels */
fieldset label {
display: inline-block;
margin-right: 15px;
cursor: pointer;
}
/* --- TEXTAREA --- */
#order-form textarea {
width: 100%; /* Full width */
background-color: var(--bg-color);
border: 2px solid var(--accent-gold);
color: var(--text-color-light);
font-family: 'VT323', monospace;
font-size: 1.2rem;
border-radius: 15px;
padding: 10px;
margin-top: 5px;
box-sizing: border-box; /* Ensures padding doesn't break width */
}
/* --- THE CUTE SUBMIT BUTTON --- */
input[type="submit"] {
display: block;
width: 100%;
margin-top: 30px;
padding: 15px;
/* Sunset Gradient Background */
background: linear-gradient(180deg, var(--accent-gold), var(--accent-red));
/* Pixel Art Button Style */
border: 4px solid #000; /* Thick black border */
border-radius: 15px; /* Slightly rounded */
color: #142415; /* Dark text makes it readable */
font-family: 'VT323', monospace;
font-size: 2rem;
text-transform: uppercase;
font-weight: bold;
cursor: pointer;
/* The "3D" Clicky Shadow */
box-shadow: 0 8px 0 #000;
transition: all 0.1s;
}
/* Button Press Effect */
input[type="submit"]:active {
transform: translateY(8px); /* Moves down 8px */
box-shadow: 0 0 0 #000; /* Shadow disappears */
}
/* --- FOOTER --- */
/* Task 8: Interesting footer color */
footer {
margin-top: 50px;
/* Using the reddish-orange sunset color for high contrast footer */
background-color: var(--accent-red);
color: var(--bg-color);
text-align: center;
padding: 30px;
border-top: var(--pixel-border);
font-size: 1.4rem;
text-shadow: 1px 1px 0 var(--accent-gold);
}