-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
234 lines (201 loc) · 4.49 KB
/
index.css
File metadata and controls
234 lines (201 loc) · 4.49 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
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
/* Define color variables for consistency */
:root {
--primary: #1e40af;
--secondary: #2563eb;
--accent: #3b82f6;
--text-color: #1a365d;
--bg-color: #f0f4f8;
--white: #ffffff;
--card-bg: #ffffff;
--border-color: rgba(226, 232, 240, 0.8);
--shadow: rgba(0, 0, 0, 0.1);
}
/* Base styles */
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
line-height: 1.6;
background-color: var(--bg-color);
color: var(--text-color);
margin: 0;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header styling */
header {
text-align: center;
margin-bottom: 40px;
padding: 40px 20px;
background: linear-gradient(135deg, var(--secondary), var(--primary));
border-radius: 16px;
color: var(--white);
box-shadow: 0 4px 8px var(--shadow);
}
header h1 {
font-size: 3em;
font-weight: 700;
margin-bottom: 10px;
letter-spacing: -0.5px;
}
header p {
font-size: 1.2em;
}
/* Section headings */
.section {
margin-bottom: 40px;
}
.section h2 {
color: var(--primary);
font-size: 2em;
margin-bottom: 30px;
padding-bottom: 10px;
border-bottom: 3px solid var(--accent);
}
/* Grid layout for cards with fixed row height */
.flex-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
grid-auto-rows: 1fr;
/* Make rows take equal height */
gap: 24px;
}
/* Card styles: fill the grid cell completely */
.club-card,
.event-card {
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
border-radius: 12px;
box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
border: 1px solid var(--border-color);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
/* Hover effect on cards */
.club-card:hover,
.event-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 12px -1px var(--shadow), 0 4px 8px -1px var(--shadow);
}
/* Card content styling */
.card-content {
flex: 1;
height: 100%;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
/* Distribute space evenly */
gap: 15px;
overflow: hidden;
}
.card-content h3 {
margin: 0;
color: var(--primary);
font-size: 1.4em;
font-weight: 600;
}
/* Paragraph styles inside card-content */
.card-content p {
margin: 0;
font-size: 0.95em;
color: #475569;
line-height: 1.6;
min-height: 3.6em;
}
/* Email link styling */
.card-content p a {
color: var(--accent);
text-decoration: none;
border-bottom: 1px dotted transparent;
transition: border-bottom 0.3s ease;
}
.card-content p:last-child {
margin-top: auto;
}
.card-content p a:hover {
border-bottom: 1px dotted var(--accent);
}
/* Custom scrollbar for card content */
.card-content::-webkit-scrollbar {
width: 6px;
}
.card-content::-webkit-scrollbar-track {
background: #f1f5f9;
border-radius: 3px;
}
.card-content::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
transition: background 0.2s ease;
}
.card-content::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Flex item wrapper (for proper grid item behavior) */
.flex-item {
display: flex;
flex-direction: column;
}
/* Easter Egg styling */
.easter-egg {
text-align: center;
margin-top: 40px;
}
.easter-egg a {
color: #999;
font-size: 0.8em;
text-decoration: none;
transition: color 0.3s ease;
}
.easter-egg a:hover {
color: var(--accent);
}
/* Fade-in animation for cards */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.club-card,
.event-card {
height: 100%;
display: flex;
flex-direction: column;
border-radius: 12px;
box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
border: 1px solid var(--border-color);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background: var(--card-bg);
}
/* Stagger animation delays */
.flex-container>*:nth-child(odd) {
animation-delay: 0.1s;
}
.flex-container>*:nth-child(even) {
animation-delay: 0.2s;
}
/* Responsive styles */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
padding: 10px;
}
.flex-container {
grid-template-columns: 1fr;
}
header h1 {
font-size: 2em;
}
}