-
-
Notifications
You must be signed in to change notification settings - Fork 441
/
finance.css
206 lines (181 loc) · 4.36 KB
/
finance.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
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
/* General Styles */
/* Dark Mode Styles */
/* Dark Mode Styles */
.dark-mode {
background: linear-gradient(to right, #252793, black);
color: #ffffff;
}
.dark-mode a {
color: #bb86fc;
}
body {
font-family: 'Arial', sans-serif;
background-color: #f0f8ff;
margin: 0;
padding: 0;
background: linear-gradient(to right, #252793, white);
}
/* Header Styles */
.second-header {
text-align: center;
padding: 20px;
background-color: #4682b4; /* Steel blue */
color: white;
margin-top: 80px;
}
.second-header p{
color: #4b5563;
line-height: 1.6;
margin: 0;
flex-grow: 1;
}
h1 {
margin: 0;
font-size: 36px;
}
p {
font-size: 18px;
margin: 10px 0;
}
/* Main Content Styles */
main {
display: grid;
grid-template-columns: repeat(3, 1fr); /* Three columns */
grid-gap: 20px; /* Space between the items */
justify-content: center; /* Center the grid horizontally */
align-content: center; /* Center the grid vertically */
padding: 20px;
max-width: 960px; /* Adjust max width for 3 columns */
margin: 0 auto; /* Center the grid on the page */
}
/* Course Card Styles */
.course {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 350px; /* Keeps the cards narrow */
text-align: center;
transition: transform 0.3s;
}
.course:hover {
transform: translateY(-5px);
}
h2 {
color: #4682b4; /* Steel blue */
font-size: 22px;
margin-bottom: 15px;
}
.poster-image {
width: 100%; /* Ensures the image takes up the full width of the container */
height: auto;
border-radius: 10px;
margin-bottom: 15px;
}
button {
margin-top: 15px;
padding: 10px 20px;
background-color: #4682b4; /* Steel blue */
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #5a9bd3; /* Lighter blue on hover */
}
/* Responsive Design */
@media (max-width: 768px) {
main {
grid-template-columns: 1fr; /* Single column layout on smaller screens */
}
.course {
width: 90%; /* Full width on smaller screens */
}
}
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(73, 232, 247, 0.466), rgba(141, 38, 172, 0.5));
transition: transform 0.1s, left 0.1s, top 0.1s;
}
.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
/* Scroll-to-Top Button Styles */
#scrollToTopBtn {
position: fixed;
bottom: 30px;
right: 30px;
background-color: #4682b4;
color: white;
padding: 7px 15px;
border: none;
border-radius: 50%; /* Circular shape */
cursor: pointer;
font-size: 22px;
display: none; /* Hidden by default */
z-index: 1000;
transition: transform 0.3s, background-color 0.3s;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#scrollToTopBtn:hover {
background-color: #5a9bd3;
transform: scale(1.1); /* Scale up slightly */
}
/* Enhanced Tooltip Styling */
#scrollToTopBtn::after {
content: "Go to top";
position: absolute;
bottom: 120%; /* Tooltip above the button */
left: 50%;
transform: translateX(-50%) translateY(10px);
background-color: #333;
color: #fff;
padding: 8px 12px;
font-size: 14px;
border-radius: 6px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
opacity: 0;
transition: opacity 0.4s ease, transform 0.4s ease;
white-space: nowrap;
pointer-events: none;
}
/* Triangle Pointer for Tooltip */
#scrollToTopBtn::before {
content: "";
position: absolute;
bottom: 110%; /* Slightly below tooltip box */
left: 50%;
transform: translateX(-50%);
border-width: 6px;
border-style: solid;
border-color: transparent transparent #333 transparent;
opacity: 0;
transition: opacity 0.4s ease;
}
/* Show tooltip on hover */
#scrollToTopBtn:hover::after,
#scrollToTopBtn:hover::before {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
/* Responsive Positioning */
@media (max-width: 768px) {
#scrollToTopBtn {
bottom: 20px;
right: 20px;
font-size: 18px;
}
}