-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
174 lines (150 loc) · 2.88 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
162
163
164
165
166
167
168
169
170
171
172
173
174
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
background-color: #181a1b;
}
header {
padding: 10px;
border-bottom: 1px solid rgb(55, 60, 62);
height: 90px;
}
.main-title {
font-family: "Tangerine", cursive;
font-size: 70px;
color: whitesmoke;
text-align: center;
}
#main-section {
min-height: calc(
100vh - 240px
); /* Account for the combined height of header and footer */
background-color: #333;
display: flex;
flex-direction: column;
}
#main-section h1 {
color: whitesmoke;
text-align: center;
padding-top: 40px;
font-size: 40px;
}
#main-section span {
font-family: "Tangerine", cursive;
font-size: 60px;
}
a {
text-decoration: none;
}
#card-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.recipe-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 5px;
position: relative; /* Add relative positioning to create a stacking context for the child elements of the container*/
cursor: pointer;
}
.recipe-container:hover {
filter: brightness(
70%
); /* Adjust the brightness percentage for the shadow effect */
transition: filter 0.3s ease; /* Add a smooth transition for the effect */
}
.recipe-card {
width: 300px;
height: 400px;
overflow: hidden; /* Ensure the image does not overflow the card */
margin: 10px;
}
.recipe-card img {
width: 100%;
height: 100%;
object-fit: cover;
}
h2 {
color: whitesmoke;
text-align: center;
font-size: 18px;
background-color: brown;
margin: -20px 10px 0;
width: 50%;
height: auto;
padding: 10px;
position: relative; /* Add relative positioning for z-index to work */
z-index: 1; /* Ensure the h2 appears above the card */
}
footer {
height: 150px;
text-align: center;
}
.footer-links {
list-style: none;
display: flex;
justify-content: center;
padding: 10px 0;
}
.footer-links li {
display: inline-block;
display: flex;
flex-direction: column;
align-items: center;
}
.footer-links a {
display: block;
width: 80px;
height: 80px;
border-radius: 50%;
background-color: aqua;
overflow: hidden;
margin: 0 35px;
}
.footer-links img {
width: 100%;
height: 100%;
object-fit: cover;
}
.footer-links a:hover {
filter: brightness(
70%
); /* Adjust the brightness percentage for the shadow effect */
transition: filter 0.3s ease; /* Add a smooth transition for the effect */
}
.footer-title {
color: whitesmoke;
font-weight: bold;
margin-top: 5px;
}
/* .recipe-type {
background-color: aqua;
margin: 5px 10px 5px;
width: 80px;
height: 80px;
border-radius: 50%;
} */
/* img {
display: block;
margin-left: auto;
margin-right: auto;
height: auto;
width: 50%;
}
ul {
list-style-position: inside;
text-align: left;
margin: 0 auto;
width: 400px;
height: fit-content;
} */