-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextra.css
173 lines (144 loc) · 2.58 KB
/
extra.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
162
163
164
165
166
167
168
169
170
171
172
173
/* styles.css */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', sans-serif;
background-color: #f9f9f9;
color: #333;
text-align: center;
}
header {
background-color: #3cba54;
color: white;
padding: 20px 0;
}
header h1 {
font-size: 2.5em;
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 15px;
}
nav ul li a {
color: white;
text-decoration: none;
font-weight: bold;
}
main {
max-width: 1200px;
margin: 20px auto;
padding: 0 20px;
}
#search {
margin: 30px 0;
}
#search form {
display: flex;
justify-content: center;
align-items: center;
}
#search input[type="text"] {
padding: 10px;
width: 300px;
border: 2px solid #3cba54;
border-radius: 5px;
margin-right: 10px;
}
#search button {
background-color: #3cba54;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#search button:hover {
background-color: #34a853;
}
#categories {
margin: 50px 0;
}
.category-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.category {
background-color: white;
padding: 20px;
margin: 20px;
border-radius: 10px;
width: 30%;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.category:hover {
transform: scale(1.05);
}
.category img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 10px;
}
.category h3 {
margin: 15px 0;
}
.category p {
color: #666;
}
.category button {
background-color: #3cba54;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.category button:hover {
background-color: #34a853;
}
#recommendations {
margin: 50px 0;
}
.recommendation-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.recommendation {
background-color: white;
padding: 20px;
margin: 20px;
border-radius: 10px;
width: 45%;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.recommendation:hover {
transform: scale(1.05);
}
.recommendation h3 {
margin-bottom: 10px;
}
footer {
background-color: #3cba54;
color: white;
padding: 20px 0;
margin-top: 40px;
}
@media (max-width: 768px) {
.category, .recommendation {
width: 90%;
margin: 20px auto;
}
}