-
Notifications
You must be signed in to change notification settings - Fork 359
/
CheckoutHotel.css
226 lines (193 loc) · 4.92 KB
/
CheckoutHotel.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
/* General styles */
body {
font-family: 'Poppins', sans-serif;
background-color: #f0f4f8; /* Light background for elegance */
color: #333;
margin: 0;
padding: 0;
box-sizing: border-box; /* Ensure padding and borders are included in total width */
}
*, *::before, *::after {
box-sizing: inherit; /* Set box-sizing for all elements */
}
header {
background-color: #ffcc00; /* Header background */
padding: 20px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo img {
width: 60px;
}
.navhover {
text-decoration: none;
color: #333;
padding: 10px;
transition: color 0.3s, transform 0.3s;
}
.navhover:hover {
color: #ff6600; /* Hover color */
transform: translateY(-2px); /* Lift effect on hover */
}
.checkout-container {
max-width: 800px;
margin: 40px auto;
padding: 30px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Softer shadow for depth */
animation: fadeIn 0.5s;
}
.checkout-container h1 {
text-align: center;
margin-bottom: 20px;
color: #2c3e50; /* Darker text color for professionalism */
font-size: 2.5em; /* Larger heading */
font-weight: bold;
}
#checkout-form {
display: flex;
flex-direction: column;
}
.form-group {
margin-bottom: 20px;
background-color: #f9f9f9; /* Light background for form fields */
border-radius: 8px;
padding: 15px; /* Padding inside form group */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
transition: box-shadow 0.3s; /* Transition for focus effect */
}
.form-group:hover {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Shadow on hover */
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%; /* Full width of the parent container */
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1em; /* Base font size for inputs */
transition: border 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
border: 1px solid #ff6600; /* Focus border color */
outline: none;
box-shadow: 0 0 5px rgba(255, 102, 0, 0.5); /* Shadow on focus */
}
textarea {
resize: none; /* Prevent resizing */
}
/* Payment Options Styles */
.payment-options {
margin: 20px 0;
padding: 15px;
background-color: #f9f9f9; /* Light background for the payment options section */
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
}
.payment-options h2 {
margin-bottom: 15px;
color: #2c3e50; /* Consistent color for headings */
font-size: 1.8em; /* Slightly smaller heading size */
text-align: center;
}
.payment-option {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.payment-option input {
margin-right: 10px; /* Spacing between input and label */
}
/* Button styles */
.btn {
background-color: #ff6600; /* Button color */
color: white;
padding: 15px;
border: none;
border-radius: 5px;
font-size: 18px; /* Increased font size for buttons */
cursor: pointer;
transition: background 0.3s, transform 0.3s; /* Added transform transition */
margin-top: 20px; /* More spacing above button */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
}
.btn:hover {
background-color: #e55b00; /* Hover button color */
transform: translateY(-3px); /* Slight lift effect */
}
/* Footer styles */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0; /* More padding for footer */
position: relative;
bottom: 0;
width: 100%;
margin-top: 40px;
}
.footer-text {
margin: 0;
}
/* Animation */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Mobile styles */
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: flex-start;
}
nav {
flex-wrap: wrap;
}
.checkout-container {
padding: 20px; /* Adjust padding for smaller screens */
}
.btn {
font-size: 16px; /* Slightly smaller button text */
}
}
/* Dark mode styles */
body.dark-mode {
background-color: #333;
color: #fff;
}
body.dark-mode .checkout-container {
background-color: #444;
box-shadow: none;
}
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
border: 1px solid #666;
background-color: #555;
color: white;
}
body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
border: 1px solid #ff6600; /* Focus color */
}