-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathstyle.css
More file actions
136 lines (119 loc) · 2.32 KB
/
style.css
File metadata and controls
136 lines (119 loc) · 2.32 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
:root {
--bg-light: #ffffff;
--bg-dark: #0a0a0a;
--text-light: #000000;
--text-dark: #ffffff;
--primary: #ffcc0d; /* Yellow */
--accent: #002147; /* Navy Blue */
}
html,
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: var(--bg-light);
color: var(--text-light);
transition: background 0.3s, color 0.3s;
min-height: 100vh;
height: fit-content;
display: flex;
flex-direction: column;
}
body.dark-mode {
background-color: var(--bg-dark);
color: var(--text-dark);
}
header {
text-align: center;
padding: 1.5rem;
background-color: var(--bg-light);
color: var(--accent);
}
.banner {
max-width: 20%;
height: auto;
margin-bottom: 1rem;
}
#searchInput {
padding: 0.5rem;
width: 50%;
max-width: 400px;
margin-top: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
}
#toggleMode {
margin-left: 1rem;
padding: 0.5rem 1rem;
background-color: var(--accent);
color: var(--primary);
border: none;
border-radius: 4px;
cursor: pointer;
transition: 0.5s ease-in-out;
}
#toggleMode:hover {
background-color: var(--primary);
color: #000;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 1rem;
gap: 1rem;
}
.card {
background-color: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 12px;
padding: 1.5rem;
width: 300px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
transition: transform 0.25s ease, box-shadow 0.25s ease;
position: relative;
cursor: help;
}
.card:hover {
transform: translateY(-6px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.card a {
color: var(--accent); /* Navy Blue */
font-weight: 600;
text-decoration: none;
}
.card a:hover {
text-decoration: underline;
}
body.dark-mode .card {
background-color: #1c1c1c;
color: var(--text-dark);
border-color: #333;
box-shadow: 0 6px 16px rgba(255, 255, 255, 0.05);
}
body.dark-mode .card a {
color: var(--primary); /* Yellow */
}
/* Footer styling */
footer {
position: relative;
top: 100%;
text-align: center;
padding: 1rem;
background-color: #000;
color: var(--primary);
margin-top: auto;
}
footer .social-links {
margin-top: 0.5rem;
}
footer .social-links a {
color: var(--primary);
text-decoration: none;
margin: 0 0.6rem;
font-weight: bold;
transition: color 0.3s;
}
footer .social-links a:hover {
color: #fff;
}