Hadiil commited on
Commit
f4372af
·
verified ·
1 Parent(s): 4f8415b

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +187 -159
static/styles.css CHANGED
@@ -1,237 +1,265 @@
1
  body {
2
- font-family: 'Arial', sans-serif;
3
  background: url('/images/starry-bg.jpg') no-repeat center center fixed;
4
  background-size: cover;
5
- color: #fff;
6
- margin: 0;
7
- padding: 0;
 
 
 
 
 
 
 
 
 
 
8
  }
9
 
10
- .container {
11
- max-width: 1200px;
12
- margin: 0 auto;
13
- padding: 20px;
14
  }
15
 
16
- header {
17
- text-align: center;
18
- margin-bottom: 40px;
 
19
  }
20
 
21
- header h1 {
22
- font-size: 3em;
23
- margin: 0;
24
- text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
 
 
 
 
25
  }
26
 
27
- header p {
28
- font-size: 1.2em;
29
- margin: 10px 0;
30
  }
31
 
32
- .chatbot-section {
 
 
 
 
 
 
 
 
 
 
 
33
  background: rgba(0, 0, 0, 0.7);
34
- padding: 20px;
35
- border-radius: 10px;
36
- margin-bottom: 20px;
 
37
  }
38
 
39
- .chat-output {
40
- max-height: 300px;
41
- overflow-y: auto;
42
- margin-bottom: 20px;
43
- padding: 10px;
44
- border: 1px solid #444;
45
- border-radius: 5px;
 
 
 
46
  }
47
 
48
- .chat-input {
 
 
49
  display: flex;
50
- gap: 10px;
51
  }
52
 
53
- .chat-input textarea {
54
- flex: 1;
 
 
55
  padding: 10px;
56
- border-radius: 5px;
57
- border: none;
58
- resize: none;
59
- background: #222;
60
- color: #fff;
61
  }
62
 
63
- .chat-input button {
64
- padding: 10px 20px;
65
- background: #6200ea;
66
- color: #fff;
67
- border: none;
68
- border-radius: 5px;
69
- cursor: pointer;
70
  }
71
 
72
- .chat-input button:hover {
73
- background: #3700b3;
 
74
  }
75
 
76
- /* Processing Indicator */
77
- .processing-indicator {
78
- text-align: center;
79
- margin-top: 10px;
80
- font-size: 1.1em;
81
- color: #bb86fc;
82
  }
83
 
84
- /* Features Section */
85
- .features {
86
- display: flex;
87
- flex-wrap: wrap;
88
- gap: 20px;
89
- justify-content: center;
90
  }
91
 
92
- .feature-btn {
93
- background: rgba(0, 0, 0, 0.7);
94
- border: none;
95
- padding: 15px;
96
- border-radius: 10px;
97
  cursor: pointer;
98
- width: 150px;
99
- text-align: center;
100
  color: #fff;
101
- transition: transform 0.2s;
102
  }
103
 
104
- .feature-btn img {
105
- width: 50px;
106
- height: 50px;
107
- margin-bottom: 10px;
108
- }
109
-
110
- .feature-btn:hover {
111
- transform: scale(1.05);
112
  }
113
 
114
- /* Modal Styles */
115
- .modal {
116
- display: none;
117
- position: fixed;
118
- top: 0;
119
- left: 0;
120
- width: 100%;
121
- height: 100%;
122
- background: rgba(0, 0, 0, 0.8);
123
- z-index: 1000;
124
  }
125
 
126
- .modal-content {
127
- background: rgba(0, 0, 0, 0.9);
128
- margin: 5% auto;
129
- padding: 20px;
130
- border-radius: 10px;
131
- width: 80%;
132
- max-width: 600px;
133
- position: relative;
134
  }
135
 
136
- .close {
137
- position: absolute;
138
- top: 10px;
139
- right: 20px;
140
- font-size: 30px;
141
- cursor: pointer;
142
  color: #fff;
 
 
 
 
 
143
  }
144
 
145
- .modal-content h2 {
146
- margin-top: 0;
147
- text-align: center;
148
  }
149
 
150
- .modal-content textarea,
151
- .modal-content input[type="file"],
152
- .modal-content select {
153
- width: 100%;
154
- padding: 10px;
155
- margin: 10px 0;
156
- border-radius: 5px;
157
- border: none;
158
- background: #222;
159
  color: #fff;
160
  }
161
 
162
- .modal-content button {
163
- display: block;
164
- width: 100%;
165
- padding: 10px;
166
- background: #6200ea;
167
- color: #fff;
168
- border: none;
169
- border-radius: 5px;
170
  cursor: pointer;
171
- margin-top: 10px;
172
  }
173
 
174
- .modal-content button:hover {
175
- background: #3700b3;
 
176
  }
177
 
178
- /* File Name Display */
179
- .file-name {
180
- margin-top: 5px;
181
- font-size: 0.9em;
182
- color: #bb86fc;
183
  }
184
 
185
- /* Output Area */
186
- .output {
187
- margin-top: 20px;
188
- padding: 10px;
 
189
  background: rgba(255, 255, 255, 0.1);
190
- border-radius: 5px;
191
- max-height: 300px;
192
- overflow-y: auto;
193
- }
194
-
195
- /* Image Container in Response */
196
- .image-container {
197
  margin-bottom: 10px;
198
- text-align: center;
 
 
 
 
199
  }
200
 
201
- .image-container img {
202
- max-width: 100%;
203
- max-height: 200px;
204
- border-radius: 5px;
205
  }
206
 
207
- .response-text {
208
- white-space: pre-wrap;
209
  }
210
 
211
- /* Tabs for Translate Modal */
212
- .tabs {
213
  display: flex;
214
- gap: 10px;
215
- margin-bottom: 10px;
 
 
216
  }
217
 
218
- .tab-btn {
219
- padding: 10px;
220
- background: #333;
221
  border: none;
222
- border-radius: 5px;
223
  color: #fff;
224
- cursor: pointer;
 
225
  }
226
 
227
- .tab-btn.active {
228
- background: #6200ea;
229
  }
230
 
231
- .tab-content {
 
 
 
 
232
  display: none;
233
  }
234
 
235
- .tab-content.active {
236
- display: block;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
237
  }
 
1
  body {
 
2
  background: url('/images/starry-bg.jpg') no-repeat center center fixed;
3
  background-size: cover;
4
+ font-family: 'Arial', sans-serif;
5
+ overflow-x: hidden;
6
+ }
7
+
8
+ .stars {
9
+ position: fixed;
10
+ top: 0;
11
+ left: 0;
12
+ width: 100%;
13
+ height: 100%;
14
+ background: transparent;
15
+ z-index: -1;
16
+ animation: twinkle 10s infinite;
17
  }
18
 
19
+ @keyframes twinkle {
20
+ 0%, 100% { opacity: 0.7; }
21
+ 50% { opacity: 1; }
 
22
  }
23
 
24
+ .cosmic-gradient {
25
+ background: linear-gradient(45deg, #ff6ec4, #7873f5);
26
+ -webkit-background-clip: text;
27
+ -webkit-text-fill-color: transparent;
28
  }
29
 
30
+ .function-box {
31
+ background: rgba(255, 255, 255, 0.1);
32
+ backdrop-filter: blur(10px);
33
+ border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
34
+ padding: 30px;
35
+ cursor: pointer;
36
+ transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, filter 0.3s;
37
+ min-height: 280px;
38
  }
39
 
40
+ .function-box:hover {
41
+ transform: scale(1.05);
42
+ box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
43
  }
44
 
45
+ .function-box.shadowed {
46
+ opacity: 0.3;
47
+ filter: blur(2px);
48
+ transition: opacity 0.3s, filter 0.3s;
49
+ }
50
+
51
+ .modal {
52
+ position: fixed;
53
+ top: 0;
54
+ left: 0;
55
+ width: 100%;
56
+ height: 100%;
57
  background: rgba(0, 0, 0, 0.7);
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ z-index: 1000;
62
  }
63
 
64
+ .modal-content {
65
+ background: url('/images/starry-bg.jpg') no-repeat center center fixed;
66
+ background-size: cover;
67
+ border-radius: 0;
68
+ padding: 30px;
69
+ width: 90%;
70
+ max-width: 700px;
71
+ position: relative;
72
+ animation: fadeIn 0.3s ease-in;
73
+ box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
74
  }
75
 
76
+ .chatbot-modal {
77
+ max-width: 400px;
78
+ max-height: 500px;
79
  display: flex;
80
+ flex-direction: column;
81
  }
82
 
83
+ .chatbot-conversation {
84
+ max-height: 350px;
85
+ overflow-y: auto;
86
+ margin-bottom: 10px;
87
  padding: 10px;
88
+ background: rgba(0, 0, 0, 0.2);
89
+ border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
 
 
 
90
  }
91
 
92
+ .chatbot-conversation p {
93
+ margin: 5px 0;
 
 
 
 
 
94
  }
95
 
96
+ .chatbot-conversation .user-message {
97
+ text-align: right;
98
+ color: #ff6ec4;
99
  }
100
 
101
+ .chatbot-conversation .bot-message {
102
+ text-align: left;
103
+ color: #7873f5;
 
 
 
104
  }
105
 
106
+ @keyframes fadeIn {
107
+ from { opacity: 0; transform: translateY(-20px); }
108
+ to { opacity: 1; transform: translateY(0); }
 
 
 
109
  }
110
 
111
+ .close-modal {
112
+ position: absolute;
113
+ top: 10px;
114
+ right: 15px;
115
+ font-size: 24px;
116
  cursor: pointer;
 
 
117
  color: #fff;
 
118
  }
119
 
120
+ .tab-btn {
121
+ flex: 1;
122
+ padding: 10px;
123
+ background: rgba(255, 255, 255, 0.1);
124
+ border: none;
125
+ color: #fff;
126
+ cursor: pointer;
127
+ transition: background 0.3s;
128
  }
129
 
130
+ .tab-btn.active {
131
+ background: rgba(255, 255, 255, 0.3);
 
 
 
 
 
 
 
 
132
  }
133
 
134
+ .tab-btn:hover {
135
+ background: rgba(255, 255, 255, 0.2);
 
 
 
 
 
 
136
  }
137
 
138
+ .cosmic-btn {
139
+ background: linear-gradient(45deg, #ff6ec4, #7873f5);
 
 
 
 
140
  color: #fff;
141
+ padding: 10px 20px;
142
+ border: none;
143
+ border-radius: 8px;
144
+ cursor: pointer;
145
+ transition: transform 0.2s;
146
  }
147
 
148
+ .cosmic-btn:hover {
149
+ transform: scale(1.05);
 
150
  }
151
 
152
+ .response-card {
153
+ margin-top: 20px;
154
+ padding: 15px;
155
+ background: rgba(255, 255, 255, 0.1);
156
+ backdrop-filter: blur(10px);
157
+ border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
 
 
 
158
  color: #fff;
159
  }
160
 
161
+ .chatbot-icon {
162
+ position: fixed;
163
+ bottom: 20px;
164
+ right: 20px;
165
+ z-index: 1100;
 
 
 
166
  cursor: pointer;
167
+ transition: transform 0.3s, box-shadow 0.3s;
168
  }
169
 
170
+ .chatbot-icon:hover {
171
+ transform: scale(1.1);
172
+ box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
173
  }
174
 
175
+ .hidden {
176
+ display: none;
 
 
 
177
  }
178
 
179
+ .drop-area {
180
+ border: 2px dashed #fff;
181
+ border-radius: 8px;
182
+ padding: 30px;
183
+ text-align: center;
184
  background: rgba(255, 255, 255, 0.1);
 
 
 
 
 
 
 
185
  margin-bottom: 10px;
186
+ cursor: pointer;
187
+ display: flex;
188
+ align-items: center;
189
+ justify-content: center;
190
+ min-height: 100px;
191
  }
192
 
193
+ .drop-area p {
194
+ color: #fff;
195
+ font-size: 1.2rem;
196
+ margin: 0;
197
  }
198
 
199
+ .drop-area:hover {
200
+ background: rgba(255, 255, 255, 0.2);
201
  }
202
 
203
+ .input-bar {
 
204
  display: flex;
205
+ align-items: center;
206
+ background: rgba(255, 255, 255, 0.1);
207
+ border-radius: 8px;
208
+ padding: 5px;
209
  }
210
 
211
+ .input-bar input {
212
+ flex: 1;
213
+ background: transparent;
214
  border: none;
 
215
  color: #fff;
216
+ outline: none;
217
+ padding: 8px;
218
  }
219
 
220
+ .input-bar .cosmic-btn {
221
+ padding: 8px 16px;
222
  }
223
 
224
+ .loading-spinner {
225
+ margin-top: 10px;
226
+ color: #fff;
227
+ font-size: 1rem;
228
+ text-align: center;
229
  display: none;
230
  }
231
 
232
+ .loading-spinner::before {
233
+ content: '';
234
+ display: inline-block;
235
+ width: 20px;
236
+ height: 20px;
237
+ border: 3px solid #fff;
238
+ border-top-color: transparent;
239
+ border-radius: 50%;
240
+ animation: spin 1s linear infinite;
241
+ margin-right: 10px;
242
+ vertical-align: middle;
243
+ }
244
+
245
+ @keyframes spin {
246
+ to { transform: rotate(360deg); }
247
+ }
248
+
249
+ @media (max-width: 768px) {
250
+ .modal-content {
251
+ width: 95%;
252
+ }
253
+ .chatbot-modal {
254
+ max-width: 90%;
255
+ max-height: 80vh;
256
+ }
257
+ .input-bar {
258
+ flex-direction: column;
259
+ align-items: stretch;
260
+ }
261
+ .input-bar .cosmic-btn {
262
+ margin-top: 10px;
263
+ margin-left: 0;
264
+ }
265
  }