-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.css
235 lines (203 loc) · 4.23 KB
/
checkout.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
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
/* Global Styles */
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #ffffff;
color: #333;
line-height: 1.6;
overflow-x: hidden; /* Prevent horizontal scroll issues */
}
/* Prevent Content Overflow */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* Header Styles */
header {
background: linear-gradient(75deg, #d10d3e, #bfba1a);
color: white;
padding: 30px;
text-align: center;
width: 100%;
}
header h1 {
margin: 0;
font-size: 3.5em;
transition: transform 0.3s ease-in-out;
}
/* Interactive Effect */
header h1:hover {
transform: scale(1.05);
}
/* Navigation Bar */
nav {
display: flex;
justify-content: center;
background-color: #333;
padding: 10px 0;
width: 100%;
}
nav a {
color: white;
text-decoration: none;
padding: 14px 20px;
font-weight: 600;
transition: background 0.3s, transform 0.2s;
}
nav a:hover {
background-color: #ff7e5f;
border-radius: 5px;
transform: scale(1.1);
}
/* Footer Styles */
footer {
background-color: #333;
color: white;
padding: 15px 0;
text-align: center;
margin-top: 40px;
font-size: 0.9em;
}
footer p {
margin: 3% 0;
}
footer a {
color: white;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;
}
footer a:hover {
color: #ff7e5f;
}
/* Main Content */
main {
padding: 20px;
max-width: 800px;
margin: 0 auto;
}
/* Checkout Container */
.receipt-container {
background: #e5e5e5;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
animation: fadeIn 0.8s ease-in-out;
}
.receipt-container h2,
.receipt-container h3 {
text-align: center;
font-size: 1.8em;
color: #000000;
}
.receipt-container ul {
list-style-type: none;
padding: 0;
margin: 20px 0;
}
.receipt-container li {
padding: 10px;
background: #f9f9f9;
border: 1px solid #ddd;
margin-bottom: 10px;
transition: transform 0.3s ease-in-out;
}
.receipt-container li:hover {
transform: scale(1.02);
}
.receipt-container p {
text-align: center;
font-size: 1.2em;
color: #666;
margin-top: 20px;
}
.receipt-container a {
display: inline-block;
background: #f8552d;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
text-align: center;
font-size: 1.1em;
margin-top: 30px;
transition: background 0.3s, transform 0.2s;
}
.receipt-container a:hover {
background: #bfba1a;
transform: scale(1.05);
}
/* Checkout Page */
.checkout-container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.checkout-container h2 {
text-align: center;
font-size: 2em;
}
.checkout-container ul {
list-style-type: none;
padding: 0;
}
.checkout-container li {
padding: 10px 0;
border-bottom: 1px solid #ddd;
}
.checkout-container p {
text-align: center;
font-size: 1.2em;
}
/* View Receipt Link */
.view-receipt-link {
display: inline-block;
background: #f8552d;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
text-align: center;
font-size: 1.2em;
margin-top: 30px;
transition: background 0.3s, transform 0.2s;
}
.view-receipt-link:hover {
background: #bfba1a;
transform: scale(1.05);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Responsive Design */
@media (max-width: 768px) {
header h1 {
font-size: 2.5em;
}
.receipt-container,
.checkout-container {
padding: 15px;
max-width: 90%;
}
.receipt-container h2,
.checkout-container h2 {
font-size: 1.5em;
}
.view-receipt-link,
.receipt-container a {
font-size: 1em;
padding: 8px 16px;
}
}