Hadiil commited on
Commit
d92c85f
·
verified ·
1 Parent(s): 45171f0

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +45 -38
static/styles.css CHANGED
@@ -1,6 +1,5 @@
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
  }
@@ -17,7 +16,7 @@ body {
17
  }
18
 
19
  @keyframes twinkle {
20
- 0%, 100% { opacity: 0.7; }
21
  50% { opacity: 1; }
22
  }
23
 
@@ -42,6 +41,11 @@ body {
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);
@@ -62,8 +66,7 @@ body {
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%;
@@ -74,14 +77,13 @@ body {
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;
@@ -142,13 +144,36 @@ body {
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;
@@ -158,6 +183,14 @@ body {
158
  color: #fff;
159
  }
160
 
 
 
 
 
 
 
 
 
161
  .chatbot-icon {
162
  position: fixed;
163
  bottom: 20px;
@@ -221,38 +254,12 @@ body {
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;
@@ -262,4 +269,4 @@ body {
262
  margin-top: 10px;
263
  margin-left: 0;
264
  }
265
- }
 
1
  body {
2
+ background: #0A1A3A; /* Bleu nuit */
 
3
  font-family: 'Arial', sans-serif;
4
  overflow-x: hidden;
5
  }
 
16
  }
17
 
18
  @keyframes twinkle {
19
+ 0%, 100% { opacity: 0.8; } /* Augmenté l'opacité pour visibilité sur bleu nuit */
20
  50% { opacity: 1; }
21
  }
22
 
 
41
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
42
  }
43
 
44
+ .function-box.active {
45
+ transform: scale(1.1); /* Agrandissement au clic, légèrement plus grand que le survol */
46
+ box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
47
+ }
48
+
49
  .function-box.shadowed {
50
  opacity: 0.3;
51
  filter: blur(2px);
 
66
  }
67
 
68
  .modal-content {
69
+ background: #0A1A3A; /* Bleu nuit */
 
70
  border-radius: 0;
71
  padding: 30px;
72
  width: 90%;
 
77
  }
78
 
79
  .chatbot-modal {
 
 
80
  display: flex;
81
  flex-direction: column;
82
+ /* Supprimé max-width: 400px et max-height: 500px pour aligner avec .modal-content */
83
  }
84
 
85
  .chatbot-conversation {
86
+ max-height: 450px; /* Augmenté pour s'adapter au modal plus grand */
87
  overflow-y: auto;
88
  margin-bottom: 10px;
89
  padding: 10px;
 
144
  border: none;
145
  border-radius: 8px;
146
  cursor: pointer;
147
+ transition: transform 0.2s, opacity 0.2s;
148
  }
149
 
150
+ .cosmic-btn:hover:not(.loading) {
151
  transform: scale(1.05);
152
  }
153
 
154
+ .cosmic-btn.loading {
155
+ opacity: 0.7;
156
+ cursor: not-allowed;
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ }
161
+
162
+ .cosmic-btn.loading .spinner {
163
+ display: inline-block;
164
+ width: 16px;
165
+ height: 16px;
166
+ border: 2px solid #fff;
167
+ border-top-color: transparent;
168
+ border-radius: 50%;
169
+ animation: spin 1s linear infinite;
170
+ margin-right: 8px;
171
+ }
172
+
173
+ @keyframes spin {
174
+ to { transform: rotate(360deg); }
175
+ }
176
+
177
  .response-card {
178
  margin-top: 20px;
179
  padding: 15px;
 
183
  color: #fff;
184
  }
185
 
186
+ .response-image {
187
+ max-width: 100%;
188
+ max-height: 300px;
189
+ object-fit: contain;
190
+ margin-bottom: 10px;
191
+ border-radius: 8px;
192
+ }
193
+
194
  .chatbot-icon {
195
  position: fixed;
196
  bottom: 20px;
 
254
  padding: 8px 16px;
255
  }
256
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  @media (max-width: 768px) {
258
  .modal-content {
259
  width: 95%;
260
  }
261
  .chatbot-modal {
262
+ width: 95%; /* Aligné avec .modal-content pour petits écrans */
 
263
  }
264
  .input-bar {
265
  flex-direction: column;
 
269
  margin-top: 10px;
270
  margin-left: 0;
271
  }
272
+ }