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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
| 1 |
+
body,
|
| 2 |
+
html {
|
| 3 |
+
height: 100%;
|
| 4 |
+
margin: 0;
|
| 5 |
+
display: flex;
|
| 6 |
+
justify-content: center;
|
| 7 |
+
align-items: center;
|
| 8 |
+
background-color: #333;
|
| 9 |
+
color: #fff;
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
}
|
| 12 |
|
| 13 |
+
#logo-link {
|
| 14 |
+
position: absolute;
|
| 15 |
+
top: 10px; /* Prilagodite ovo kako biste logo postavili na željenu poziciju */
|
| 16 |
+
left: 50%;
|
| 17 |
+
transform: translateX(-50%);
|
| 18 |
+
z-index: 1000; /* Ako je potrebno da bude iznad ostalih elemenata */
|
| 19 |
}
|
| 20 |
|
| 21 |
+
#logo-img {
|
| 22 |
+
width: 200px; /* Prilagodite širinu */
|
| 23 |
+
height: auto;
|
| 24 |
+
opacity: 0.5; /* Prilagodite prozirnost */
|
| 25 |
+
transition: opacity 0.3s ease;
|
| 26 |
+
|
| 27 |
+
/* Ako želite da logo malo zasvetli kada se pređe mišem preko njega */
|
| 28 |
+
&:hover {
|
| 29 |
+
opacity: 0.8;
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
#audioResponse {
|
| 34 |
+
display: none;
|
| 35 |
+
}
|
| 36 |
+
:root {
|
| 37 |
+
--color-box: #fff;
|
| 38 |
+
--color-shadow: #65c1ff;
|
| 39 |
+
--color-font: #000;
|
| 40 |
+
}
|
| 41 |
+
.centered {
|
| 42 |
+
position: fixed;
|
| 43 |
+
left: 50%;
|
| 44 |
+
transform: translateX(-50%);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.button-container {
|
| 48 |
+
bottom: 20px; /* Adjust the bottom spacing as needed */
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.blob-container {
|
| 52 |
+
top: 50%;
|
| 53 |
+
transform: translate(-50%, -50%);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
#thought-bubble {
|
| 57 |
+
width: 200px;
|
| 58 |
+
display: none;
|
| 59 |
+
height: 120px;
|
| 60 |
+
background-color: white;
|
| 61 |
+
border-radius: 100px; /* This gives a circular shape to the main part of the cloud */
|
| 62 |
+
position: fixed;
|
| 63 |
+
top: 50%;
|
| 64 |
+
left: 50%;
|
| 65 |
+
transform: translate(-50%, -50%);
|
| 66 |
+
z-index: 10;
|
| 67 |
+
/* Add box shadow for a 3D effect if desired */
|
| 68 |
+
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
|
| 69 |
+
animation: float 3s ease-in-out infinite, gentleRotation 6s infinite linear;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.cloud-puff {
|
| 73 |
+
/* Apply the same animation but with a slight delay to each puff for added effect */
|
| 74 |
+
animation: puffMove 3s ease-in-out infinite;
|
| 75 |
+
animation-delay: calc(var(--i) * 0.2s);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.cloud-puff::before {
|
| 79 |
+
content: "";
|
| 80 |
+
position: absolute;
|
| 81 |
+
width: 100%;
|
| 82 |
+
height: 100%;
|
| 83 |
+
background: white;
|
| 84 |
+
border-radius: 50%;
|
| 85 |
+
top: 0;
|
| 86 |
+
left: 0;
|
| 87 |
+
z-index: -1;
|
| 88 |
+
animation: colorChange 10s infinite alternate;
|
| 89 |
+
}
|
| 90 |
+
/* Additional pseudo-elements for more cloud puffs if needed */
|
| 91 |
+
#thought-bubble .cloud-puff:nth-child(1) {
|
| 92 |
+
content: "";
|
| 93 |
+
position: absolute;
|
| 94 |
+
background-color: white;
|
| 95 |
+
border-radius: 50%;
|
| 96 |
+
width: 140px;
|
| 97 |
+
height: 140px;
|
| 98 |
+
top: -50px;
|
| 99 |
+
left: -40px; /* Adjust as needed */
|
| 100 |
+
animation-delay: 0.2s;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
#thought-bubble .cloud-puff:nth-child(2) {
|
| 104 |
+
content: "";
|
| 105 |
+
position: absolute;
|
| 106 |
+
background-color: white;
|
| 107 |
+
border-radius: 50%;
|
| 108 |
+
width: 140px;
|
| 109 |
+
height: 140px;
|
| 110 |
+
top: -70px;
|
| 111 |
+
left: 40px; /* Adjust as needed */
|
| 112 |
+
animation-delay: 0.4s;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
#thought-bubble .cloud-puff:nth-child(3) {
|
| 116 |
+
content: "";
|
| 117 |
+
position: absolute;
|
| 118 |
+
background-color: white;
|
| 119 |
+
border-radius: 50%;
|
| 120 |
+
width: 140px;
|
| 121 |
+
height: 140px;
|
| 122 |
+
top: -30px;
|
| 123 |
+
left: 110px; /* Adjust as needed */
|
| 124 |
+
animation-delay: 0.6s;
|
| 125 |
+
}
|
| 126 |
+
#thought-bubble .cloud-puff:nth-child(4) {
|
| 127 |
+
content: "";
|
| 128 |
+
position: absolute;
|
| 129 |
+
background-color: white;
|
| 130 |
+
border-radius: 50%;
|
| 131 |
+
width: 140px;
|
| 132 |
+
height: 140px;
|
| 133 |
+
top: 20px;
|
| 134 |
+
left: 70px; /* Adjust as needed */
|
| 135 |
+
animation-delay: 0.8s;
|
| 136 |
+
}
|
| 137 |
+
#thought-bubble .cloud-puff:nth-child(5) {
|
| 138 |
+
content: "";
|
| 139 |
+
position: absolute;
|
| 140 |
+
background-color: white;
|
| 141 |
+
border-radius: 50%;
|
| 142 |
+
width: 140px;
|
| 143 |
+
height: 140px;
|
| 144 |
+
top: 25px;
|
| 145 |
+
left: -20px; /* Adjust as needed */
|
| 146 |
+
animation-delay: 1s;
|
| 147 |
+
}
|
| 148 |
+
#thought-bubble .cloud-puff:nth-child(6) {
|
| 149 |
+
content: "";
|
| 150 |
+
position: absolute;
|
| 151 |
+
background-color: white;
|
| 152 |
+
border-radius: 50%;
|
| 153 |
+
width: 40px;
|
| 154 |
+
height: 40px;
|
| 155 |
+
top: 135px;
|
| 156 |
+
left: -60px; /* Adjust as needed */
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
@keyframes float {
|
| 160 |
+
0%,
|
| 161 |
+
100% {
|
| 162 |
+
transform: translate(-50%, -50%) scale(1);
|
| 163 |
+
}
|
| 164 |
+
50% {
|
| 165 |
+
transform: translate(-47%, -53%) scale(1.05);
|
| 166 |
+
}
|
| 167 |
+
}
|
| 168 |
+
@keyframes gentleRotation {
|
| 169 |
+
0% {
|
| 170 |
+
transform: translate(-50%, -50%) rotate(0deg);
|
| 171 |
+
}
|
| 172 |
+
50% {
|
| 173 |
+
transform: translate(-47%, -53%) rotate(-3deg);
|
| 174 |
+
}
|
| 175 |
+
100% {
|
| 176 |
+
transform: translate(-50%, -50%) rotate(0deg);
|
| 177 |
+
}
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
/* Modify the puffMove animation for a bobbing effect */
|
| 181 |
+
@keyframes puffMove {
|
| 182 |
+
0%,
|
| 183 |
+
100% {
|
| 184 |
+
transform: translateY(0) scale(1);
|
| 185 |
+
}
|
| 186 |
+
50% {
|
| 187 |
+
transform: translateY(-10px) scale(1.07);
|
| 188 |
+
}
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
@keyframes colorChange {
|
| 192 |
+
0% {
|
| 193 |
+
background: white;
|
| 194 |
+
}
|
| 195 |
+
100% {
|
| 196 |
+
background: #daf1f1; /* Light grey for a subtle change */
|
| 197 |
+
}
|
| 198 |
+
}
|
| 199 |
+
.content {
|
| 200 |
+
display: flex;
|
| 201 |
+
justify-content: center; /* Centers horizontally */
|
| 202 |
+
align-items: flex-end; /* Aligns vertically to the bottom */
|
| 203 |
+
height: 85vh; /* Takes up 85% of the viewport height */
|
| 204 |
+
padding-bottom: 10vh; /* Adds some space at the bottom */
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
.mic-checkbox {
|
| 208 |
+
display: none;
|
| 209 |
}
|
| 210 |
|
| 211 |
+
.mic-checkbox:checked + .mic-button {
|
| 212 |
+
transform: rotateY(180deg);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
}
|
| 214 |
|
| 215 |
+
.button-container {
|
| 216 |
+
perspective: 500px;
|
| 217 |
+
-moz-perspective: 500px;
|
| 218 |
+
-webkit-perspective: 500px;
|
| 219 |
+
bottom: 40px;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
.mic-button {
|
| 223 |
+
display: flex;
|
| 224 |
+
align-items: center;
|
| 225 |
+
justify-content: center;
|
| 226 |
+
height: 100px;
|
| 227 |
+
width: 100px;
|
| 228 |
+
border-radius: 100%;
|
| 229 |
+
transition: transform 0.4s;
|
| 230 |
+
border: 2px solid #fff;
|
| 231 |
+
transform-style: preserve-3d;
|
| 232 |
+
-webkit-transform-style: preserve-3d;
|
| 233 |
+
-moz-transform-style: preserve-3d;
|
| 234 |
+
position: relative;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
.button-message,
|
| 238 |
+
.mic {
|
| 239 |
+
backface-visibility: hidden;
|
| 240 |
+
-webkit-backface-visibility: hidden;
|
| 241 |
+
-moz-backface-visibility: hidden;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
.button-message {
|
| 245 |
+
position: absolute;
|
| 246 |
+
width: 50px;
|
| 247 |
+
color: #fff;
|
| 248 |
+
font-family: "Montserrat", sans-serif;
|
| 249 |
+
font-weight: bold;
|
| 250 |
+
text-align: center;
|
| 251 |
+
line-height: 20px;
|
| 252 |
+
z-index: 2;
|
| 253 |
+
transform: rotateY(0deg);
|
| 254 |
+
pointer-events: none;
|
| 255 |
+
left: 23px;
|
| 256 |
+
top: 20px;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
.mic-button-loader {
|
| 260 |
+
position: absolute;
|
| 261 |
+
height: 102px;
|
| 262 |
+
width: 100px;
|
| 263 |
+
background-color: transparent;
|
| 264 |
+
transform: rotateY(180deg);
|
| 265 |
+
top: -31px;
|
| 266 |
+
left: -50px;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
.mic-checkbox:checked + .mic-button > .mic > .mic-button-loader {
|
| 270 |
+
border-top: 3px solid var(--color-shadow);
|
| 271 |
+
border-radius: 100%;
|
| 272 |
+
animation: borderLoader 1.3s 0.2s ease-in-out infinite;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
.mic {
|
| 276 |
+
position: relative;
|
| 277 |
+
top: -11px;
|
| 278 |
+
border: 10px solid #fff;
|
| 279 |
+
height: 20px;
|
| 280 |
+
width: 0;
|
| 281 |
+
border-radius: 10px;
|
| 282 |
+
transform: rotateY(180deg);
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
.mic:after,
|
| 286 |
+
.mic:before,
|
| 287 |
+
.mic-base {
|
| 288 |
+
position: absolute;
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
.mic:after {
|
| 292 |
+
content: "";
|
| 293 |
+
top: 7px;
|
| 294 |
+
left: -17px;
|
| 295 |
+
height: 26px;
|
| 296 |
+
width: 26px;
|
| 297 |
+
background-color: transparent;
|
| 298 |
+
border: 4px solid #fff;
|
| 299 |
+
border-bottom-left-radius: 110px;
|
| 300 |
+
border-bottom-right-radius: 110px;
|
| 301 |
+
border-top: 0;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.mic:before {
|
| 305 |
+
content: "";
|
| 306 |
+
top: 33px;
|
| 307 |
+
left: -2px;
|
| 308 |
+
border-bottom: 18px solid #fff;
|
| 309 |
+
border-left: 2px solid #fff;
|
| 310 |
+
border-right: 2px solid #fff;
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
.mic-base {
|
| 314 |
+
top: 46px;
|
| 315 |
+
left: -10px;
|
| 316 |
+
border-bottom: 5px solid #fff;
|
| 317 |
+
border-left: 10px solid #fff;
|
| 318 |
+
border-right: 10px solid #fff;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
@keyframes borderLoader {
|
| 322 |
+
from {
|
| 323 |
+
transform: rotate(0deg);
|
| 324 |
+
}
|
| 325 |
+
to {
|
| 326 |
+
transform: rotate(359deg);
|
| 327 |
+
}
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
/*
|
| 331 |
+
Just to fix the cover.
|
| 332 |
+
Not really needed.
|
| 333 |
+
|
| 334 |
+
.mic-checkbox + .mic-button > .mic, .mic:after, .mic:before, .mic-base {
|
| 335 |
+
display: none;
|
| 336 |
+
}
|
| 337 |
+
|
| 338 |
+
.mic-checkbox:checked + .mic-button > .mic, .mic:after, .mic:before, .mic-base {
|
| 339 |
+
display: block;
|
| 340 |
+
}
|
| 341 |
+
*/
|
| 342 |
+
.credits {
|
| 343 |
+
font-weight: bold;
|
| 344 |
+
font-size: 18px;
|
| 345 |
+
color: #fff;
|
| 346 |
+
font-family: "Montserrat", sans-serif;
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
.disabled {
|
| 350 |
+
pointer-events: none;
|
| 351 |
+
opacity: 0.5;
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.blob-container {
|
| 355 |
+
display: none;
|
| 356 |
+
justify-content: space-around;
|
| 357 |
+
align-items: center;
|
| 358 |
+
height: 200px; /* Set as needed */
|
| 359 |
+
}
|
| 360 |
+
.blob {
|
| 361 |
+
background: var(--color-shadow);
|
| 362 |
+
border-radius: 50%;
|
| 363 |
+
width: 50px;
|
| 364 |
+
height: 50px;
|
| 365 |
+
opacity: 0.5;
|
| 366 |
+
transform: scale(1);
|
| 367 |
+
transition: transform 0.1s, height 0.1s; /* Smooth transition for scaling */
|
| 368 |
}
|