-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathdailyplans.css
182 lines (156 loc) · 3.97 KB
/
dailyplans.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
175
176
177
178
179
180
181
182
/* General Styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
}
.navbar {
display: flex;
justify-content: flex-start;
padding: 10px 20px;
background-color: #f5f5f5;
border-bottom: 1px solid #ddd;
}
.nav-link {
text-decoration: none;
color: #E53935;
font-size: 1rem;
font-weight: bold;
transition: color 0.3s; /* Highlighted: Added smooth transition effect */
}
.nav-link:hover {
color: #d32f2f; /* Highlighted: Changed hover color for navbar links */
}
.section-title {
text-align: center;
font-size: 2rem;
color: #333;
margin-bottom: 20px;
}
.daily-plan-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
/* Card Styles */
.daily-plan-card {
width: 250px;
height: 350px;
perspective: 1000px; /* Highlighted: Added 3D perspective for card flip effect */
cursor: pointer;
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.8s; /* Highlighted: Added smooth transition for flip animation */
}
.card-front,
.card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 10px; /* Highlighted: Added rounded corners for better aesthetics */
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Highlighted: Added subtle shadow for depth */
}
.card-front {
background: #fff;
}
.card-image {
width: 100%;
height: 100%;
object-fit: cover; /* Highlighted: Ensured image scales properly */
}
.card-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5); /* Highlighted: Semi-transparent background for text visibility */
color: #fff;
padding: 10px;
text-align: center;
}
.meal-name {
font-size: 1.2rem;
margin-bottom: 5px;
}
.meal-name {
display: inline-block; /* Make it behave like a button */
padding: 10px 20px;
background-color: #4caf50; /* Button color */
color: white;
font-size: 18px;
text-align: center;
border: none;
border-radius: 5px; /* Rounded corners */
cursor: pointer;
transition: background-color 0.3s ease; /* Smooth hover effect */
text-decoration: none;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.meal-name:hover {
background-color: #45a049; /* Darker green on hover */
}
.meal-name:active {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
transform: translateY(2px); /* Simulates button press */
background-color: #3e8e41; /* Even darker when clicked */
}
.price {
font-size: 1rem;
font-weight: bold;
}
.card-back {
background: #fff;
color: #333;
transform: rotateY(180deg); /* Highlighted: Defined back face rotation */
padding: 15px;
box-sizing: border-box;
text-align: center;
}
.card-back h3 {
font-size: 1.5rem;
margin-bottom: 10px;
}
.card-back ul {
list-style: none;
padding: 0;
margin: 0;
}
.card-back ul li {
font-size: 1rem;
margin: 5px 0;
}
/* Responsive Design */
@media (max-width: 768px) {
.daily-plan-container {
flex-direction: column;
align-items: center; /* Highlighted: Centered content for smaller screens */
}
.daily-plan-card {
width: 80%; /* Highlighted: Adjusted width for tablet screens */
height: 400px; /* Highlighted: Increased height for better spacing */
}
}
@media (max-width: 480px) {
.nav-link {
font-size: 0.9rem; /* Highlighted: Reduced navbar font size for mobile screens */
}
.section-title {
font-size: 1.5rem; /* Highlighted: Adjusted title font size for better visibility */
}
.daily-plan-card {
width: 90%; /* Highlighted: Adjusted width for mobile screens */
height: 380px; /* Highlighted: Adjusted height for better layout on mobile */
}
}
/* footer */
.payments i:hover{
transform: scale(1.2);
}