-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
102 lines (89 loc) · 2.74 KB
/
styles.css
File metadata and controls
102 lines (89 loc) · 2.74 KB
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
<style>
/* Seat color classes */
.seats-white { color: white; background-color: green;}
.seats-green { color: black; background-color: #0fff0f;}
.seats-yellow { color: black; background-color: yellow;}
.seats-red { color: white; background-color: red;}
.seats-black { color: black; background-color: white;}
/* Pill-shaped seat container */
.seat-pill {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 12px;
border-radius: 9999px;
border: 2px solid black;
font-size: 0.875rem;
margin-top: 8px;
}
/* Card entrance animation */
@keyframes slideIn {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.course-card {
animation: slideIn 0.3s ease-out forwards;
}
/* Delay animation for each card */
.course-card:nth-child(1) { animation-delay: 0s; }
.course-card:nth-child(2) { animation-delay: 0.1s; }
.course-card:nth-child(3) { animation-delay: 0.2s; }
.course-card:nth-child(4) { animation-delay: 0.3s; }
.course-card:nth-child(5) { animation-delay: 0.4s; }
.course-card:nth-child(6) { animation-delay: 0.5s; }
.course-card:nth-child(7) { animation-delay: 0.6s; }
.course-card:nth-child(8) { animation-delay: 0.7s; }
.course-card:nth-child(9) { animation-delay: 0.8s; }
.course-card:nth-child(10) { animation-delay: 0.9s; }
.course-card:nth-child(11) { animation-delay: 1.0s; }
.course-card:nth-child(12) { animation-delay: 1.1s; }
/* Cart overlay styles */
#cart {
max-width: 300px;
}
.cart-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background-color: #f3f4f6; /* Light gray for light mode */
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out;
}
.cart-item:hover {
transform: translateY(-2px);
}
.dark .cart-item {
background-color: #374151; /* Dark gray for dark mode */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.cart-remove {
cursor: pointer;
color: #ef4444; /* Red-500 */
font-size: 1rem;
line-height: 1;
transition: color 0.2s ease-in-out;
}
.cart-remove:hover {
color: #dc2626; /* Red-600 */
}
#clear-cart {
font-size: 1.25rem;
}
button:disabled, button[disabled] {
background-color: #d1d5db; /* Gray-300 for light mode */
color: #6b7280; /* Gray-500 for text */
cursor: not-allowed;
opacity: 0.6;
}
.dark button:disabled, .dark button[disabled] {
background-color: #4b5563; /* Gray-600 for dark mode */
color: #9ca3af; /* Gray-400 for text */
}