-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
161 lines (140 loc) · 2.67 KB
/
styles.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
/* General Stylings */
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
padding: 30px;
}
/* Styling the Header Elements */
header {
text-align: center;
margin-bottom: 40px;
}
header h1 {
font-size: 48px;
font-weight: bold;
color: #333;
}
header h2 {
font-size: 28px;
font-weight: bold;
color: #333;
text-align: center;
}
header p {
font-size: 18px;
color: #666;
margin-top: 10px;
}
h2 {
font-weight: bold;
color: #333;
text-align: center;
}
/* Styling the random meal section */
.random-meal {
padding: 10px;
text-align: center;
}
.meal {
max-width: 200px;
cursor: pointer;
}
.random-meal .meal {
display: inline-block;
margin: 0 20px 20px 0;
text-align: left;
}
/* Styling the appended elements */
.random-meal .meal img {
width: 200px;
height: 200px;
border-radius: 10px;
transition: all 0.2s ease-in-out;
}
.random-meal .meal h3 {
font-size: 18px;
color: white;
background-color: rgb(68, 68, 68);
margin: 10px 0;
text-align: center;
border-radius: 6px;
}
/* Styling the Search Meal by Category section */
.search-section {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 40px;
}
/* Styling the Input box and the Button */
.search-input {
width: 50%;
padding: 10px;
font-size: 18px;
border: none;
border-radius: 5px;
box-shadow: 0px 0px 10px #ddd;
margin-right: 20px;
}
.search-btn {
background-color: #333;
color: #fff;
padding: 10px 20px;
border-radius: 5px;
font-size: 18px;
cursor: pointer;
}
/* Styling the appended elements */
.searched-meals {
display: flex;
flex-wrap: wrap;
padding: 20px;
justify-content: center;
}
.searched-meals .meal {
display: inline-block;
margin: 0 20px 20px 0;
text-align: left;
}
.searched-meals .meal img {
width: 200px;
height: 200px;
border-radius: 10px;
}
.searched-meals .meal h3 {
font-size: 18px;
margin: 10px 0;
text-align: center;
border-radius: 6px;
}
/* Styling the Ingredient modal */
.ingredient-modal {
position: fixed;
top: 0;
left: 27.5%;
margin: auto;
width: 45%;
height: 100%;
background-color: rgba(0, 0, 0, 0.93);
display: none;
align-items: center;
justify-content: center;
overflow: scroll;
}
.ingredient-modal h3 {
color: white;
font-size: 38px;
margin-top: 60px;
margin-bottom: 30px;
text-align: center;
}
.ingredient-modal ul {
list-style: none;
padding: 0;
color: rgb(255, 255, 255);
font-size: 22px;
text-align: center;
}
.ingredient-modal li {
margin-bottom: 14px;
}