Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- 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 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
padding: 20px;
|
| 14 |
}
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
}
|
| 31 |
|
| 32 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
background: rgba(0, 0, 0, 0.7);
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
| 37 |
}
|
| 38 |
|
| 39 |
-
.
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
padding:
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
| 46 |
}
|
| 47 |
|
| 48 |
-
.
|
|
|
|
|
|
|
| 49 |
display: flex;
|
| 50 |
-
|
| 51 |
}
|
| 52 |
|
| 53 |
-
.
|
| 54 |
-
|
|
|
|
|
|
|
| 55 |
padding: 10px;
|
| 56 |
-
|
| 57 |
-
border:
|
| 58 |
-
resize: none;
|
| 59 |
-
background: #222;
|
| 60 |
-
color: #fff;
|
| 61 |
}
|
| 62 |
|
| 63 |
-
.
|
| 64 |
-
|
| 65 |
-
background: #6200ea;
|
| 66 |
-
color: #fff;
|
| 67 |
-
border: none;
|
| 68 |
-
border-radius: 5px;
|
| 69 |
-
cursor: pointer;
|
| 70 |
}
|
| 71 |
|
| 72 |
-
.
|
| 73 |
-
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
margin-top: 10px;
|
| 80 |
-
font-size: 1.1em;
|
| 81 |
-
color: #bb86fc;
|
| 82 |
}
|
| 83 |
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
flex-wrap: wrap;
|
| 88 |
-
gap: 20px;
|
| 89 |
-
justify-content: center;
|
| 90 |
}
|
| 91 |
|
| 92 |
-
.
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
cursor: pointer;
|
| 98 |
-
width: 150px;
|
| 99 |
-
text-align: center;
|
| 100 |
color: #fff;
|
| 101 |
-
transition: transform 0.2s;
|
| 102 |
}
|
| 103 |
|
| 104 |
-
.
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
}
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 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 |
-
.
|
| 127 |
-
background: rgba(
|
| 128 |
-
margin: 5% auto;
|
| 129 |
-
padding: 20px;
|
| 130 |
-
border-radius: 10px;
|
| 131 |
-
width: 80%;
|
| 132 |
-
max-width: 600px;
|
| 133 |
-
position: relative;
|
| 134 |
}
|
| 135 |
|
| 136 |
-
.
|
| 137 |
-
|
| 138 |
-
top: 10px;
|
| 139 |
-
right: 20px;
|
| 140 |
-
font-size: 30px;
|
| 141 |
-
cursor: pointer;
|
| 142 |
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
}
|
| 144 |
|
| 145 |
-
.
|
| 146 |
-
|
| 147 |
-
text-align: center;
|
| 148 |
}
|
| 149 |
|
| 150 |
-
.
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
border-radius: 5px;
|
| 157 |
-
border: none;
|
| 158 |
-
background: #222;
|
| 159 |
color: #fff;
|
| 160 |
}
|
| 161 |
|
| 162 |
-
.
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
color: #fff;
|
| 168 |
-
border: none;
|
| 169 |
-
border-radius: 5px;
|
| 170 |
cursor: pointer;
|
| 171 |
-
|
| 172 |
}
|
| 173 |
|
| 174 |
-
.
|
| 175 |
-
|
|
|
|
| 176 |
}
|
| 177 |
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
margin-top: 5px;
|
| 181 |
-
font-size: 0.9em;
|
| 182 |
-
color: #bb86fc;
|
| 183 |
}
|
| 184 |
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
padding:
|
|
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
}
|
| 200 |
|
| 201 |
-
.
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
}
|
| 206 |
|
| 207 |
-
.
|
| 208 |
-
|
| 209 |
}
|
| 210 |
|
| 211 |
-
|
| 212 |
-
.tabs {
|
| 213 |
display: flex;
|
| 214 |
-
|
| 215 |
-
|
|
|
|
|
|
|
| 216 |
}
|
| 217 |
|
| 218 |
-
.
|
| 219 |
-
|
| 220 |
-
background:
|
| 221 |
border: none;
|
| 222 |
-
border-radius: 5px;
|
| 223 |
color: #fff;
|
| 224 |
-
|
|
|
|
| 225 |
}
|
| 226 |
|
| 227 |
-
.
|
| 228 |
-
|
| 229 |
}
|
| 230 |
|
| 231 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 232 |
display: none;
|
| 233 |
}
|
| 234 |
|
| 235 |
-
.
|
| 236 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
}
|