-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibrary.css
More file actions
378 lines (317 loc) · 7.8 KB
/
library.css
File metadata and controls
378 lines (317 loc) · 7.8 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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
/* Video Background */
.video-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -1; /* Places video behind content */
}
.video-bg video {
width: 100%;
height: 100%;
object-fit: cover; /* Ensures the video covers the screen */
opacity: 0.7; /* Adds slight transparency for readability */
}
/* Content Container */
.main {
position: relative; /* Ensures content is above the video */
z-index: 1; /* Higher than the video background */
}
/* Sidebar Fix */
.side-bar {
position: absolute;
top: 0;
left: 0;
width: 20%; /* Adjust the width of the sidebar */
height: 100%; /* Sidebar spans the full height */
background-color: rgba(0, 0, 51, 0.8); /* Semi-transparent background for readability */
padding: 20px;
}
/* Main Content */
.main-content {
margin-left: 22%; /* Avoids overlap with the sidebar */
padding: 20px;
color: white;
text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8); /* Better text visibility */
}
/* Hero Section */
#hero {
text-align: center;
padding: 100px 20px;
color: white;
font-size: 2rem;
background: rgba(0, 0, 51, 0.6); /* Adds a semi-transparent overlay */
border-radius: 10px;
}
/* General Body Styling */
body {
margin: 0;
font-family: Arial, sans-serif;
color: white;
background-color: #001f3f; /* Fallback background */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
display: flex;
background: linear-gradient(to right, #003366, #0d0d0d); /* Water gradient */
color: white;
overflow-x: hidden;
text-align: center;
}
.main {
display: flex;
width: 100%;
}
.side-bar {
background-color: #003366; /* Dark water color */
color: white;
width: 340px;
border-radius: 1rem;
padding: 1rem;
display: flex;
flex-direction: column;
}
.side-bar .nav {
display: flex;
flex-direction: column;
gap: 1rem;
}
.side-bar .navbar {
display: flex;
align-items: center;
gap: 0.5rem;
}
.side-bar a {
color: white;
text-decoration: none;
font-weight: bold;
}
.side-bar ul {
list-style: none;
padding: 0;
margin: 0;
}
.side-bar li {
background-color: #b3d9ff; /* Light water color */
margin: 0.5rem 0;
padding: 0.5rem;
border-radius: 0.5rem;
color: #003366; /* Text color matching dark water theme */
font-weight: bold;
}
.side-bar input[type="text"] {
width: 100%;
padding: 0.5rem;
border: none;
border-radius: 0.5rem;
margin-bottom: 1rem;
background-color: #b3d9ff; /* Light water blue */
color: #003366; /* Complementary text color */
}
.main-content {
flex: 1;
padding: 1rem;
}
header {
background:#b3d9ff; /* Light water color */
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
width: 100%;
}
header h1 {
font-size: 2rem;
color:#003366 ;
}
nav a {
margin: 0 10px;
text-decoration: none;
transition: color 0.3s;
color: #003366; /* Light water blue */
}
nav a:hover {
font-weight: bold;
}
#hero {
padding: 20px ;
background-color: #b3d9ff; /* Light blue background */
height: 540px;
margin: 20px; /* Margin around the entire div for spacing */
box-shadow: 0 0 0 20px #b3d9ff; /* Creates a border effect using shadow */
background-image: url("https://img.freepik.com/premium-photo/sandy-sea-bottom-marine-life-underwater-background_559531-1636.jpg");
color:#ffff;
/* Adjusted text color for contrast */
font-size: large;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
font-family: "Times New Roman", Times, serif; /* Times New Roman font */
overflow: hidden; /* Hide text during transition */
position: relative;
}
#hero-text {
position: absolute;
top: -100px; /* Start off-screen */
left: 170px; /* Slight padding from the left */
font-size: 40px; /* Large font size */
color: #003366; /* White text */
transition: top 1s ease-in-out; /* Smooth transition */
}
#hero:hover #hero-text {
top: 200px;
margin-bottom: 10px; /* Move to its final position */
color:#b3d9ff
}
/* #hero h2 {
font-size: 2.5rem;
margin-bottom: 10px;
}
#hero p {
font-size: 1.2rem;
} */
#library-section {
padding: 50px 20px;
}
#search-bar {
width: 80%;
padding: 10px;
margin-bottom: 20px;
border-radius: 8px;
border: none;
}
.book-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
.book-card {
background: #b3d9ff; /* Soft blue for water theme */
border-radius: 10px;
padding: 20px;
width: 200px;
text-align: left;
color: #003366; /* Complementary text color */
}
.book-card h3 {
margin-bottom: 5px;
}
#add-book-section {
padding: 50px 20px;
}
form {
display: flex;
flex-direction: column;
gap: 10px;
align-items: center;
}
form input, form textarea, form button {
width: 80%;
padding: 10px;
border-radius: 8px;
border: none;
}
footer {
background: #003366; /* Dark water blue */
padding: 10px;
position: fixed;
bottom: 0;
width: 100%;
color: #b3d9ff;
}
.book-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.book-card {
background: #b3d9ff; /* Soft blue for water theme */
border-radius: 10px;
padding: 20px;
width: 250px;
text-align: center;
color: #003366; /* Complementary text color */
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-card:hover {
transform: translateY(-5px);
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}
.book-image {
width: 100%;
height: 225px;
border-radius: 8px;
margin-bottom: 10px;
}
.card-actions {
display: flex;
justify-content: space-between;
margin-top: 10px;
}
.card-actions button {
background-color: #003366; /* Dark blue button */
color: white;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
transition: background-color 0.3s ease;
}
.card-actions button:hover {
background-color: #002244; /* Slightly darker blue */
}
/* Popup Styling */
/* #confirmation-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); */
/* background-color: #b3d9ff; Soft blue for water theme */
/* color: #003366;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); */
/* display: none; /* Initially hidden */
/* z-index: 1000; */
/* } */
/* #confirmation-popup p {
margin: 0;
font-weight: bold;
font-size: 1.2rem;
text-align: center;
}
#confirmation-popup.show {
display: block;
animation: fade-in-out 3s;
} */
#confirmation-popup.hidden {
display: none;
}
/* CSS for showing the popup */
#confirmation-popup.show {
display: block;
/* Add any desired styling for the popup here, e.g., background color, border */
}
@keyframes fade-in-out {
0% { opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { opacity: 0; }
}
/* New Books Section */
#new-books-section {
margin-top: 30px;
}