-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
203 lines (175 loc) · 4.14 KB
/
styles.css
File metadata and controls
203 lines (175 loc) · 4.14 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
/* General Styles */
body {
font-family: 'Poppins', sans-serif; /* Stylish font */
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #fff2df;
color: black; /* Text remains black in all modes */
transition: background-color 0.3s ease, color 0.3s ease;
}
.light-mode {
background-color: #fff2df; /* Light background */
color: black; /* Keep all text black */
}
.dark-mode {
background-color: #674d3c; /* Dark background */
color: black; /* Keep all text black */
}
/* Navbar */
.navbar {
background-color: var(--navbar-bg);
color: black; /* Text remains black */
transition: background-color 0.3s ease, color 0.3s ease;
}
.light-mode .navbar {
--navbar-bg: #d9ad7c;
}
.dark-mode .navbar {
--navbar-bg: #a2836e;
}
/* Hero Section */
.hero-section {
background: var(--hero-bg);
color: black; /* Text remains black */
text-align: center;
padding: 5rem;
border-radius: 12px;
margin-bottom: 2rem;
transition: background 0.5s ease, transform 0.5s ease;
}
.hero-section:hover {
transform: translateY(-10px);
}
.light-mode .hero-section {
--hero-bg: linear-gradient(to right, #d9ad7c, #fff2df);
}
.dark-mode .hero-section {
--hero-bg: linear-gradient(to right, #a2836e, #674d3c);
}
/* Buttons */
button {
border-radius: 5px;
padding: 8px 15px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease;
border: none;
}
button:hover {
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
button.btn-danger {
background-color: #e63946; /* Red for "Try Visualize" button */
color: white;
}
button.btn-danger:hover {
background-color: #d62828;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
button.btn {
background-color: #d9ad7c; /* Default for other buttons */
color: black;
}
button.btn:hover {
background-color: #a2836e;
}
/* Footer */
footer {
background-color: var(--footer-bg);
color: black; /* Text remains black */
text-align: center;
padding: 10px 0;
margin-top: auto;
position: relative;
z-index: 1;
transition: background-color 0.3s ease;
}
.light-mode footer {
--footer-bg: #d9ad7c;
}
.dark-mode footer {
--footer-bg: #674d3c;
}
/* Upload and Form Sections */
#uploadSection,
#analyzeSection,
#visualization,
#predictSection {
background: var(--section-bg);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: background 0.3s ease, box-shadow 0.3s ease;
animation: fadeIn 0.5s ease-in-out;
}
.light-mode #uploadSection,
.light-mode #analyzeSection,
.light-mode #visualization,
.light-mode #predictSection {
--section-bg: #fff2df;
}
.dark-mode #uploadSection,
.dark-mode #analyzeSection,
.dark-mode #visualization,
.dark-mode #predictSection {
--section-bg: #a2836e;
}
/* Theme Toggle */
.theme-toggle {
font-size: 1.5rem;
cursor: pointer;
margin-right: 20px;
user-select: none;
transition: transform 0.3s ease;
}
.theme-toggle:hover {
transform: rotate(20deg);
}
/* Stylish Dialogue Box */
.speech-bubble {
display: none; /* Hidden by default */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff2df;
border: 2px solid #d9ad7c;
padding: 15px 20px;
border-radius: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
color: black; /* Text remains black */
text-align: center;
z-index: 10;
font-weight: 500; /* Slightly bold */
font-size: 1rem; /* Adjusted font size */
}
.speech-bubble.visible {
display: block; /* Show when triggered */
}
/* File Input Adjustments */
#fileInput {
width: 250px; /* Reduced width */
margin-right: 10px; /* Spacing between input and button */
padding: 5px;
border: 1px solid #d9ad7c;
border-radius: 5px;
background-color: #fff2df;
color: black;
font-size: 14px;
}
#fileInput:hover {
border-color: #a2836e;
}
/* Animations */
@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}