-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
166 lines (143 loc) · 3.17 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
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
font-family: Arial, sans-serif;
background-image: url('Images.jpg');
/* Replace with your image path */
background-size: cover;
background-position: center;
margin: 0;
padding: 0;
color: #fff;
}
h2,
h3 {
text-align: center;
color: #004d99;
/* Darker blue for headings */
}
p {
text-align: center;
font-size: 1.1em;
margin-bottom: 10px;
}
form {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
form h3 {
margin-bottom: 15px;
}
.seat-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: 20px 0;
}
.seat-container div {
display: flex;
justify-content: center;
gap: 20px;
margin: 5px 0;
}
.seat-container label {
display: inline-block;
padding: 10px;
border: 2px solid #d1e7ff;
border-radius: 5px;
text-align: center;
width: 60px;
color: #004d99;
background-color: #f0faff;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease-in-out;
}
.seat-container input[type="checkbox"] {
display: none;
/* Hide the default checkbox */
}
.seat-container input[type="checkbox"]:checked+label {
background-color: #28a745;
/* Green color */
color: #fff;
border-color: #28a745;
}
.seat-container label.booked {
background-color: #ff4d4d;
/* Red color for booked seats */
color: white;
border-color: #e60000;
/* Darker red border */
cursor: not-allowed;
opacity: 0.7;
/* Slightly transparent to indicate that it's not available */
}
.seat-container label.booked:hover {
background-color: #ff4d4d;
/* Keep the same red when hovered */
}
#passenger_details div {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
#passenger_details label {
margin-right: 10px;
color: #004d99;
font-weight: bold;
}
#passenger_details input,
#passenger_details select {
padding: 8px;
margin-right: 5px;
width: 30%;
border: 1px solid #b3d1ff;
border-radius: 5px;
outline: none;
}
#passenger_details input:focus,
#passenger_details select:focus {
border-color: #0056b3;
box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}
button[type="submit"] {
display: block;
width: 100%;
padding: 10px;
margin: 20px auto 0;
background-color: #0056b3;
color: #fff;
border: none;
border-radius: 5px;
font-size: 1.2em;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
button[type="submit"]:hover {
background-color: #003366;
}
/* Responsive Design */
@media (max-width: 768px) {
form {
width: 95%;
}
.seat-container div {
flex-wrap: wrap;
gap: 10px;
}
#passenger_details input,
#passenger_details select {
width: 45%;
}
}