├── index.html ├── script.js └── style.css /script.js: -------------------------------------------------------------------------------- 1 | var rotateDiv = document.getElementById('rot'); 2 | var rotateIcons = document.getElementById('rot-icons'); 3 | var clickRotateDiv = document.getElementById('click-rot'); 4 | var angle = 0; 5 | 6 | clickRotateDiv.onclick = function() { 7 | angle += 60; 8 | rotateDiv.style.transform = 'rotate(' + angle + 'deg)'; 9 | rotateIcons.style.transform = 'rotate(' + angle + 'deg)'; 10 | }; 11 | 12 | var step = 2; 13 | var color1 = 'rgba(0,0,0,0.5)'; 14 | var color2 = 'rgba(0,0,0,0.1)'; 15 | 16 | var gradient = ' conic-gradient('; 17 | for (var i = 0; i < 360; i += step) { 18 | var color = i % (2 * step) === 0 ? color1 : color2; 19 | gradient += color + ' ' + i + 'deg, '; 20 | } 21 | gradient = gradient.slice(0, -2) + '), rgb(85 93 108)'; 22 | 23 | rotateDiv.style.background = gradient; 24 | 25 | 26 | var toggles = document.querySelectorAll('.toggle'); 27 | var tempElement = document.querySelector('.temp'); 28 | 29 | let isAnimating = false; // Add flag to indicate if animation is active 30 | 31 | toggles.forEach(function(toggle) { 32 | toggle.addEventListener('click', function() { 33 | if (this.classList.contains('active') || isAnimating) { // Check if animation is active 34 | return; 35 | } 36 | toggles.forEach(function(toggle) { 37 | toggle.classList.remove('active'); 38 | }); 39 | this.classList.add('active'); 40 | var tempValue = parseFloat(tempElement.textContent); 41 | if (this.id === 'toggle-cel') { 42 | var celsius = Math.round((tempValue - 32) * 5 / 9); 43 | tempElement.textContent = celsius + '°C'; 44 | } else if (this.id === 'toggle-far') { 45 | var fahrenheit = Math.round(tempValue * 9 / 5 + 32); 46 | tempElement.textContent = fahrenheit + '°F'; 47 | } 48 | }); 49 | }); 50 | 51 | let currentTempF = 34; // Initialize with the initial temperature in Fahrenheit 52 | 53 | // cubic ease in/out function 54 | function easeInOutCubic(t) { 55 | return t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1; 56 | } 57 | 58 | function changeTemp(element, newTemp) { 59 | let unit = element.innerHTML.includes("F") ? "°F" : "°C"; 60 | let currentTemp = unit === "°F" ? currentTempF : Math.round((currentTempF - 32) * 5 / 9); 61 | let finalTemp = unit === "°F" ? newTemp : Math.round((newTemp - 32) * 5 / 9); 62 | 63 | let duration = 2000; // Duration of the animation in milliseconds 64 | let startTime = null; 65 | 66 | function animate(currentTime) { 67 | if (startTime === null) { 68 | startTime = currentTime; 69 | } 70 | 71 | let elapsed = currentTime - startTime; 72 | let progress = Math.min(elapsed / duration, 1); 73 | progress = easeInOutCubic(progress); 74 | 75 | let tempNow = Math.round(currentTemp + (progress * (finalTemp - currentTemp))); 76 | element.innerHTML = `${tempNow}${unit}`; 77 | 78 | if (progress < 1) { 79 | requestAnimationFrame(animate); 80 | } else { 81 | // Update currentTempF once the animation is complete 82 | currentTempF = newTemp; 83 | isAnimating = false; // Reset the flag when animation is done 84 | } 85 | } 86 | 87 | isAnimating = true; // Set flag when animation starts 88 | requestAnimationFrame(animate); 89 | } 90 | 91 | 92 | window.onload = function() { 93 | const sixths = Array.from(document.querySelectorAll('.sixths')); 94 | let index = 0; 95 | let temp = document.querySelector('.temp'); 96 | 97 | document.querySelector('#rot-icons').addEventListener('click', () => { 98 | sixths[index].classList.remove('active'); 99 | index = (index + 1) % sixths.length; 100 | sixths[index].classList.add('active'); 101 | if (index == 0 ) { 102 | changeTemp(temp, 34); 103 | console.log("sun") 104 | document.querySelector('#mountains').classList.remove("snow"); 105 | document.querySelector('#mountains').classList.remove("clouds"); 106 | } else if (index == 1) { 107 | changeTemp(temp, 27); 108 | console.log("sunset") 109 | document.querySelector('#mountains').classList.add("sunset"); 110 | } else if (index == 2) { 111 | changeTemp(temp, 14); 112 | console.log("moon") 113 | document.querySelector('#mountains').classList.remove("sunset"); 114 | document.querySelector('#mountains').classList.add("moon"); 115 | } else if (index == 3) { 116 | changeTemp(temp, 16); 117 | console.log("clouds") 118 | document.querySelector('#mountains').classList.add("clouds"); 119 | } else if (index == 4) { 120 | changeTemp(temp, 8); 121 | console.log("storm") 122 | document.querySelector('#mountains').classList.add("storm"); 123 | } else if (index == 5) { 124 | changeTemp(temp, -4); 125 | console.log("snow") 126 | document.querySelector('#mountains').classList.remove("moon"); 127 | document.querySelector('#mountains').classList.remove("storm"); 128 | document.querySelector('#mountains').classList.add("snow"); 129 | } 130 | 131 | let loadingBar = document.querySelector('.loading-bar'); 132 | loadingBar.classList.add('active'); 133 | 134 | setTimeout(() => { 135 | loadingBar.classList.remove('active'); 136 | }, 1200); 137 | }); 138 | }; -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.cdnfonts.com/css/transponder-aoe'); 2 | html, body { 3 | height: 100%; 4 | -webkit-user-select: none; /* Safari 3.1+ */ 5 | -moz-user-select: none; /* Firefox 2+ */ 6 | -ms-user-select: none; /* IE 10+ */ 7 | user-select: none; /* Standard syntax */ 8 | } 9 | 10 | body { 11 | display: flex; 12 | justify-content: center; 13 | background: rgb(194 206 219); 14 | background: linear-gradient(205deg, rgb(238 233 245) 0%, rgb(30 34 42) 100%); 15 | margin: 0; 16 | font-family:'poppins', sans-serif; 17 | } 18 | .footer { 19 | position: absolute; 20 | bottom: 0; 21 | right: 0; 22 | font-family: monospace; 23 | color: #aaa; 24 | padding: 10px; 25 | font-size: 12px; 26 | } 27 | #noise-svg { 28 | height: 100%; 29 | width: 100%; 30 | opacity: 0.1; 31 | } 32 | #noise-rect { 33 | width: 100vw; 34 | height: 100vh; 35 | } 36 | 37 | .outer-rim, 38 | .outer-rim *{ 39 | position: absolute; 40 | top: 0; 41 | bottom: 0; 42 | left: 0; 43 | right: 0; 44 | margin: auto; 45 | background: linear-gradient(205deg, rgb(69 75 85) 0%, rgb(22 25 32) 100%); 46 | } 47 | .outer-rim { 48 | --init-size: min(min(712px, 90vw) , 90vh); 49 | width: var(--init-size); 50 | height: var(--init-size); 51 | border-radius: 50%; 52 | overflow: hidden; 53 | box-shadow: -40px 40px 30px 10px rgb(0, 0, 0, 0.4), 54 | -80px 80px 40px 10px rgb(0, 0, 0, 0.6), 55 | -120px 120px 80px 10px rgb(0, 0, 0, 0.6); 56 | } 57 | .outer-rim-2 { 58 | width: calc(var(--init-size) * 0.97); 59 | height: calc(var(--init-size) * 0.97); 60 | box-shadow: 2px -2px 2px 0 rgb(108, 115, 129, 0.8), 61 | -30px 30px 12px 10px rgb(0, 0, 0, 0.5), 62 | inset -2px 2px 2px 0 rgb(108, 115, 129, 0.2), 63 | inset 2px -2px 2px 0px rgb(0, 0, 0, 0.3); 64 | border-radius: 50%; 65 | } 66 | .inner-rim { 67 | border-radius: 50%; 68 | width: calc(var(--init-size) * 0.92); 69 | height: calc(var(--init-size) * 0.92); 70 | box-shadow: 71 | -2px 2px 2px 0 rgba(108, 115, 129, 0.4), 72 | 2px -2px 1px 0px rgba(0, 0, 0, 0.2), 73 | inset -3px 3px 2px 1px rgba(0, 0, 0, 0.5); 74 | } 75 | .outer-window.invert{ 76 | rotate: 180deg; 77 | transform-origin: 50% 88%; 78 | scale: 0.99; 79 | } 80 | .outer-window { 81 | background: none; 82 | width: calc(var(--init-size) * 0.83); 83 | height: calc(var(--init-size) * 0.83 / 1.7); 84 | overflow: hidden; 85 | top: 4%; 86 | bottom: unset; 87 | } 88 | .window { 89 | top: -1%; 90 | background: none; 91 | width: calc(var(--init-size) * 0.83); 92 | height: calc(var(--init-size) * 0.83 / 2); 93 | bottom: unset; 94 | border-radius: 12px; 95 | overflow: hidden; 96 | box-shadow: 97 | -2px 2px 2px 0 rgba(108, 115, 129, 0.4), 98 | 2px -2px 1px 0px rgba(0, 0, 0, 0.2); 99 | } 100 | .outer-window:not(.invert) svg { 101 | opacity: 0; 102 | transition: opacity 0.6s ease-in-out; 103 | } 104 | .power-on .outer-window:not(.invert) svg { 105 | opacity: unset; 106 | } 107 | .window-rounded svg#mountains{ 108 | bottom: unset; 109 | width: 100%; 110 | left: 0%; 111 | filter: contrast(1) grayscale(0.6) brightness(1); 112 | } 113 | .window-rounded svg#mountains #clouds, 114 | .window-rounded svg#mountains #mid-clouds{ 115 | opacity: 0; 116 | translate: 0 10%; 117 | } 118 | .window-rounded svg#mountains #strike-1, 119 | .window-rounded svg#mountains #strike-2, 120 | .window-rounded svg#mountains #back-clouds-1, 121 | .window-rounded svg#mountains #back-clouds-2, 122 | .window-rounded svg#mountains #back-clouds-3 { 123 | opacity: 0; 124 | translate: 0 -4%; 125 | } 126 | .window-rounded svg#mountains #moon{ 127 | translate: 0 60%; 128 | } 129 | .window-rounded svg#mountains #snow-1, 130 | .window-rounded svg#mountains #snow-2{ 131 | opacity: 0; 132 | scale: 1.5; 133 | } 134 | .window-rounded svg#mountains #stars{ 135 | opacity: 0; 136 | translate: 0 30%; 137 | } 138 | .window-rounded svg#mountains #sky { 139 | fill: #9fcfeb; 140 | } 141 | .power-on .window-rounded svg#mountains, 142 | .power-on .window-rounded svg#mountains *{ 143 | transition: all 2s ease-in-out !important; 144 | } 145 | /* sunset */ 146 | .window-rounded svg#mountains.sunset { 147 | filter: contrast(0.8) grayscale(0.6) brightness(1.2) sepia(0.3); 148 | } 149 | .window-rounded svg#mountains.sunset #sky { 150 | fill: rgb(255, 81, 0) !important; 151 | } 152 | .window-rounded svg#mountains.sunset #sun { 153 | fill: rgb(255 240 0) !important; 154 | translate:-14% 20%; 155 | scale: 1.3; 156 | } 157 | /* moon */ 158 | .window-rounded svg#mountains.moon { 159 | filter: contrast(1) grayscale(0.7) brightness(0.8); 160 | } 161 | .window-rounded svg#mountains.moon #sky { 162 | fill: rgb(0 47 108) !important; 163 | } 164 | .window-rounded svg#mountains.moon #sun { 165 | translate:0 70%; 166 | opacity: 0; 167 | } 168 | .window-rounded svg#mountains.moon #moon{ 169 | translate: 0 0%; 170 | } 171 | .window-rounded svg#mountains.moon #stars{ 172 | opacity: 1; 173 | translate: 0 0%; 174 | } 175 | .window-rounded svg#mountains.moon #stars path:nth-child(1){ 176 | animation: starAnimation 12s infinite linear; 177 | transform-origin: 48% 7%; 178 | animation-delay: 1s; 179 | } 180 | .window-rounded svg#mountains.moon #stars path:nth-child(6){ 181 | animation: starAnimation 8s reverse infinite linear; 182 | transform-origin: 32% 28%; 183 | animation-delay: 1s; 184 | } 185 | .window-rounded svg#mountains.moon #stars path:nth-child(10){ 186 | animation: starAnimation 10s infinite linear; 187 | transform-origin: 64% 13%; 188 | animation-delay: 1s; 189 | } 190 | @keyframes starAnimation { 191 | 0% { 192 | transform: rotate(0deg) scale(1); 193 | } 194 | 49% { 195 | scale: 1; 196 | } 197 | 50% { 198 | scale: 1.5; 199 | } 200 | 51% { 201 | scale: 1; 202 | } 203 | 100% { 204 | transform: rotate(360deg) scale(1); 205 | scale: 1; 206 | } 207 | } 208 | /* clouds */ 209 | .window-rounded svg#mountains.clouds #clouds, 210 | .window-rounded svg#mountains.clouds #mid-clouds{ 211 | opacity: 1; 212 | translate: 0 0%; 213 | } 214 | .window-rounded svg#mountains.clouds #mid-clouds-1, 215 | .window-rounded svg#mountains.clouds #clouds { 216 | animation: cloudsAnimation 12s infinite ease-in-out !important; 217 | } 218 | .window-rounded svg#mountains.clouds #mid-clouds-2, 219 | .window-rounded svg#mountains.clouds #top-cloud{ 220 | animation: cloudsAnimation 7s infinite ease-in-out !important; 221 | animation-delay: -3s; 222 | } 223 | @keyframes cloudsAnimation { 224 | 0% { 225 | translate: 1% 0; 226 | } 227 | 50% { 228 | translate: -1% 0; 229 | } 230 | 100% { 231 | translate: 1% 0; 232 | } 233 | } 234 | /* storm */ 235 | .window-rounded svg#mountains.storm > *:not(#strike-1):not(#strike-2) { 236 | transition: all 2s ease-in-out; 237 | animation: stormAnimation 10s infinite ease-in-out, stormAnimation2 12s infinite ease-in-out; 238 | } 239 | .window-rounded svg#mountains.storm #clouds, 240 | .window-rounded svg#mountains.storm #back-clouds-1, 241 | .window-rounded svg#mountains.storm #back-clouds-2, 242 | .window-rounded svg#mountains.storm #back-clouds-3 { 243 | opacity: 1; 244 | translate: 0 0%; 245 | filter: contrast(1) grayscale(0.7) brightness(0.6); 246 | animation: cloudsAnimation 12s infinite ease-in-out !important; 247 | } 248 | .window-rounded svg#mountains.storm #strike-1 { 249 | animation: lightningAnimation 10s infinite ease-in-out; 250 | } 251 | .window-rounded svg#mountains.storm #strike-2 { 252 | animation: lightningAnimation 12s infinite ease-in-out; 253 | } 254 | @keyframes stormAnimation { 255 | 20% { 256 | filter: contrast(1) grayscale(0.7) brightness(0.6); 257 | } 258 | 21% { 259 | filter: contrast(1) grayscale(0.7) brightness(1); 260 | } 261 | 22% { 262 | filter: contrast(1) grayscale(0.7) brightness(0.6); 263 | } 264 | 80% { 265 | filter: contrast(1) grayscale(0.7) brightness(0.6); 266 | } 267 | 81% { 268 | filter: contrast(1) grayscale(0.7) brightness(1); 269 | } 270 | 82% { 271 | filter: contrast(1) grayscale(0.7) brightness(0.6); 272 | } 273 | } 274 | @keyframes stormAnimation2 { 275 | 20% { 276 | filter: contrast(1) grayscale(0.7) brightness(0.6); 277 | } 278 | 21% { 279 | filter: contrast(1) grayscale(0.7) brightness(1); 280 | } 281 | 22% { 282 | filter: contrast(1) grayscale(0.7) brightness(0.6); 283 | } 284 | 80% { 285 | filter: contrast(1) grayscale(0.7) brightness(0.6); 286 | } 287 | 81% { 288 | filter: contrast(1) grayscale(0.7) brightness(1); 289 | } 290 | 82% { 291 | filter: contrast(1) grayscale(0.7) brightness(0.6); 292 | } 293 | } 294 | @keyframes lightningAnimation { 295 | 20% { 296 | opacity: 0; 297 | } 298 | 21% { 299 | opacity: 1; 300 | filter: drop-shadow(0px 0px 10px rgb(255, 208, 0)); 301 | } 302 | 22% { 303 | opacity: 0; 304 | } 305 | 80% { 306 | opacity: 0; 307 | } 308 | 81% { 309 | opacity: 1; 310 | filter: drop-shadow(0px 0px 10px rgb(255, 208, 0)); 311 | } 312 | 82% { 313 | opacity: 0; 314 | } 315 | } 316 | .window-rounded svg#mountains.storm #snow-1 { 317 | animation: stormRainAnimation 1s infinite linear !important; 318 | opacity: 0.3; 319 | } 320 | .window-rounded svg#mountains.storm #snow-2 { 321 | animation: stormRainAnimation 1.1s infinite linear !important; 322 | opacity: 0.3; 323 | } 324 | @keyframes stormRainAnimation { 325 | 0% { 326 | transform: translateY(-30%) translateX(-20%); 327 | opacity: 0; 328 | } 329 | 6% { opacity: 0.3;} 330 | 94% { opacity: 0.3;} 331 | 100% { 332 | transform: translateY(20%) translateX(0%); 333 | opacity: 0; 334 | } 335 | } 336 | 337 | /* snow */ 338 | .window-rounded svg#mountains.snow > *:not(#strike-1):not(#strike-2) { 339 | transition: all 2s ease-in-out; 340 | animation: snowTransition 2s ease-in-out; 341 | filter: contrast(1) grayscale(0.5) brightness(1); 342 | } 343 | @keyframes snowTransition { 344 | 0% { 345 | filter: contrast(1) grayscale(0.7) brightness(0.6); 346 | } 347 | 100% { 348 | filter: contrast(1) grayscale(0.5) brightness(1); 349 | } 350 | } 351 | .window-rounded svg#mountains.snow #clouds, 352 | .window-rounded svg#mountains.snow #back-clouds-1, 353 | .window-rounded svg#mountains.snow #back-clouds-2, 354 | .window-rounded svg#mountains.snow #back-clouds-3 { 355 | opacity: 1; 356 | translate: 0 0%; 357 | } 358 | .window-rounded svg#mountains.snow #snow-1 { 359 | transform: translateY(-200%) translateX(-2%); 360 | animation: snowflakeAnimation 10s infinite ease-in-out !important; 361 | opacity: 0; 362 | } 363 | .window-rounded svg#mountains.snow #snow-2 { 364 | animation: snowflakeAnimation 11.3s infinite ease-in-out !important; 365 | opacity: 0; 366 | animation-delay: -5s !important; 367 | } 368 | @keyframes snowflakeAnimation { 369 | 0% { 370 | transform: translateY(-35%) translateX(-2%); 371 | opacity: 0; 372 | } 373 | 10% { transform: translateY(-30%) translateX(-0%); opacity: 0.5;} 374 | 20% { transform: translateY(-25%) translateX(-2%);} 375 | 30% { transform: translateY(-20%) translateX(-0%);} 376 | 40% { transform: translateY(-15%) translateX(-2%);} 377 | 50% { transform: translateY(-10%) translateX(-0%);} 378 | 60% { transform: translateY(-5%) translateX(-2%);} 379 | 70% { transform: translateY(0%) translateX(-0%);} 380 | 80% { transform: translateY(5%) translateX(-2%);} 381 | 90% { transform: translateY(10%) translateX(-0%); opacity: 0.5;} 382 | 100% { 383 | transform: translateY(20%) translateX(-2%); 384 | opacity: 0; 385 | } 386 | } 387 | 388 | /* ---- */ 389 | 390 | .invert .window-rounded{ 391 | background: linear-gradient(0deg, rgba(0,0,0,0.7) 48%, rgba(255,255,255,0) 57%, rgba(255,255,255,0) 100%), rgb(202, 216, 228); 392 | box-shadow: 393 | -2px 2px 1px 0px rgba(0, 0, 0, 0.4), 394 | 2px -2px 2px 0 rgba(108, 115, 129, 0.2), 395 | inset -4px -3px 12px 1px rgba(152, 243, 248, 0.1), 396 | inset 2px 3px 7px 1px rgba(0, 0, 0, 0.5); 397 | } 398 | 399 | .invert .window { 400 | box-shadow: 401 | 2px -2px 1px 0 rgba(108, 115, 129, 0.4), 402 | -2px 4px 3px 0px rgba(0, 0, 0, 0.4); 403 | } 404 | .window-rounded { 405 | background: rgb(0, 0, 0, 0.5); 406 | border-radius: 50%; 407 | height: 200%; 408 | bottom: unset; 409 | top: 1.1%; 410 | margin: 1px; 411 | overflow: hidden; 412 | box-shadow: 413 | -2px 2px 2px 0 rgba(108, 115, 129, 0.4), 414 | 2px -2px 1px 0px rgba(0, 0, 0, 0.2), 415 | inset -3px 3px 2px 1px rgba(0, 0, 0, 0.5); 416 | } 417 | .loading-bar { 418 | background: none; 419 | width: 18%; 420 | height: 1.4%; 421 | bottom: 8%; 422 | border-radius: 50px; 423 | overflow: hidden; 424 | box-shadow: 425 | 0px 0px 2px 1px rgba(0, 0, 0, 0.2), 426 | -1px 2px 6px 4px rgba(0, 0, 0, 0.3), 427 | 1px -2px 6px 4px rgba(255, 255, 255, 0.5), 428 | inset 0px 0px 0px 12px rgba(0, 0, 0, 0.8); 429 | } 430 | .outer-rim:not(.power-on) .loading-bar > div{ 431 | width: 0%; 432 | } 433 | .loading-bar > div { 434 | --color-1: rgba(152, 243, 248, 0.9); 435 | --color-2: rgba(0,0,0, 0.7); 436 | background: var(--color-1); 437 | width: 21.9%; 438 | height: 50%; 439 | transition: all 0.2s ease-in-out; 440 | opacity: 0; 441 | left: unset; 442 | right: 3%; 443 | } 444 | .loading-bar > div:nth-child(1) { 445 | border-top-right-radius: 20px; 446 | border-bottom-right-radius: 20px; 447 | transition-delay: 0.2s; 448 | } 449 | .loading-bar > div:nth-child(2) { 450 | translate: -110%; 451 | transition-delay: 0.4s; 452 | } 453 | .loading-bar > div:nth-child(3) { 454 | translate: -220%; 455 | transition-delay: 0.6s; 456 | } 457 | .loading-bar > div:nth-child(4) { 458 | translate: -330%; 459 | border-top-left-radius: 20px; 460 | border-bottom-left-radius: 20px; 461 | transition-delay: 0.8s; 462 | } 463 | .power-on .loading-bar.active > div { 464 | opacity: 1; 465 | } 466 | .back-circle { 467 | border-radius: 50%; 468 | width: 30%; 469 | height: 30%; 470 | bottom: unset; 471 | top: 12.2%; 472 | right: 0.5%; 473 | background: none; 474 | box-shadow: 475 | -12px 22px 22px 0px rgba(152, 243, 248,0.2), 476 | -6px 12px 12px 4px rgba(152, 243, 248, 0.2), 477 | 0px 0px 0px 4px rgba(108, 115, 129, 0); 478 | } 479 | .circle { 480 | border-radius: 50%; 481 | width: 30%; 482 | height: 30%; 483 | bottom: unset; 484 | top: 12.2%; 485 | right: 0.5%; 486 | transition: transform 1s ease-in-out; 487 | box-shadow: 488 | 0px 0px 2px 2px rgba(108, 115, 129, 0.4), 489 | 0px 0px 3px 4px rgba(108, 115, 129, 0.2); 490 | } 491 | .inner-circle { 492 | border-radius: 50%; 493 | width: 28.6%; 494 | height: 28.6%; 495 | bottom: unset; 496 | top: 12.5%; 497 | box-shadow: 498 | 26px -26px 42px 20px rgba(0, 0, 0, 0.5), 499 | 16px -16px 22px 0px rgba(0, 0, 0, 0.4), 500 | 6px -6px 12px 0px rgba(0, 0, 0, 0.5), 501 | inset -3px 3px 2px 1px rgba(0, 0, 0, 0.5), 502 | inset 5px -5px 14px 3px rgba(108, 115, 129, 0.5), 503 | inset 10px -10px 12px 5px rgba(0, 0, 0, 0.1); 504 | display: block; 505 | background: linear-gradient(25deg, rgb(69 75 85) 0%, rgb(22 25 32) 100%); 506 | cursor: pointer; 507 | } 508 | .sixths-container { 509 | background: none; 510 | transition: transform 1s ease-in-out; 511 | } 512 | .sixths { 513 | width: 24.3%; 514 | height: 100%; 515 | background: none; 516 | rotate: 0deg; 517 | transform-origin: 50%; 518 | } 519 | .sixths:nth-child(2) {rotate: -60deg;} 520 | .sixths:nth-child(3) {rotate: -120deg;} 521 | .sixths:nth-child(4) {rotate: -180deg;} 522 | .sixths:nth-child(5) {rotate: -240deg;} 523 | .sixths:nth-child(6) {rotate: -300deg;} 524 | .sixths .icon { 525 | background: none; 526 | width: 100%; 527 | height: 24.3%; 528 | top: unset; 529 | bottom: 5%; 530 | } 531 | .sixths .icon svg{ 532 | width: 100%; 533 | height: 100%; 534 | background: none; 535 | } 536 | .sixths .icon svg *{ 537 | opacity: 0.07; 538 | transition: all 0.5s ease-in-out; 539 | filter: drop-shadow(0px 0px 4px rgba(152, 243, 248, 0.1)); 540 | } 541 | .power-on .sixths .icon svg *{ 542 | opacity: 0.4; 543 | transition-delay: 0.5s; 544 | } 545 | .power-on .sixths.active .icon svg > *{ 546 | opacity: 1; 547 | transition: all 0.5s ease-in-out; 548 | /* fill:rgba(152, 243, 248,0.9); */ 549 | filter: drop-shadow(0px 0px 6px rgba(152, 243, 248, 1)); 550 | } 551 | .left-modal { 552 | background: rgb(40, 44, 54); 553 | width: 13%; 554 | height: 45%; 555 | border-radius: 14px; 556 | left: unset; 557 | right: 4%; 558 | bottom: unset; 559 | box-shadow: 560 | 0 0 6px 2px rgba(0, 0, 0, 0.4), 561 | inset 0px -44px 18px -20px rgba(0, 0, 0, 0.2), 562 | inset 4px -4px 18px 4px rgba(0, 0, 0, 0.3), 563 | inset -2px 1px 4px 1px rgba(108, 115, 129, 0.3), 564 | inset -10px 2px 10px -4px rgba(108, 115, 129, 0.5); 565 | } 566 | .power { 567 | rotate: 180deg; 568 | width: 69%; 569 | height: 19.88%; 570 | border-radius: 12px; 571 | top: unset; 572 | bottom: 4.5%; 573 | left: unset; 574 | right: 15.5%; 575 | overflow: hidden; 576 | box-shadow: 577 | -4px 4px 4px 0px rgba(0, 0, 0, 0.3), 578 | 0px 0px 0px 1px rgba(0,0,0, 0.6); 579 | cursor: pointer; 580 | transition: box-shadow 0.1s ease-in-out; 581 | } 582 | .power:hover{ 583 | box-shadow: 584 | -3px 3px 2px 0px rgba(0, 0, 0, 0.3), 585 | 0px 0px 0px 1px rgba(0,0,0, 0.6), 586 | inset 0px 0px 5px 3px rgba(0,0,0, 0.2), 587 | inset 0px 0px 0px 1px rgba(0,0,0, 0.3); 588 | } 589 | .power:hover .inner-power { 590 | scale: 0.97; 591 | } 592 | .inner-power { 593 | rotate: 180deg; 594 | width: 80%; 595 | height: 80%; 596 | border-radius: 10px; 597 | box-shadow: 598 | 4px -4px 18px 4px rgba(0, 0, 0, 0.3), 599 | 0px 0px 2px 1px rgba(108, 115, 129, 0.6), 600 | inset 0px -54px 18px -20px rgba(0, 0, 0, 0.2), 601 | inset 4px -4px 18px 4px rgba(0, 0, 0, 0.3); 602 | } 603 | .power:hover .inner-power{ 604 | box-shadow: 605 | 4px -4px 18px 4px rgba(0, 0, 0, 0.4), 606 | 0px 0px 2px 1px rgba(108, 115, 129, 0.6), 607 | inset 0px -54px 18px -20px rgba(0, 0, 0, 0.2), 608 | inset 4px -4px 18px 4px rgba(0, 0, 0, 0.4); 609 | } 610 | .inner-power::before { 611 | display: block; 612 | content: ""; 613 | width: 40%; 614 | height: 40%; 615 | border-radius: 50%; 616 | position: absolute; 617 | left: 0; 618 | right: 0; 619 | top: 0; 620 | bottom: 0; 621 | margin: auto; 622 | border: 2px solid rgba(152, 243, 248,0.6); 623 | box-shadow: 624 | 0px 0px 4px 2px rgba(152, 243, 248, 0.1); 625 | transition: all 0.1s ease-in-out; 626 | } 627 | .inner-power::after{ 628 | display: block; 629 | content: ""; 630 | width: 4%; 631 | height: 25%; 632 | border-radius: 2px; 633 | position: absolute; 634 | left: 0; 635 | right: 0; 636 | top: 30%; 637 | bottom: 0%; 638 | margin: auto; 639 | background: rgba(152, 243, 248, 0.5); 640 | box-shadow: 641 | 0px 0px 4px 2px rgba(152, 243, 248, 0.2), 642 | 0px 0px 0px 3px rgba(19,21,26, 1), 643 | 0px 0px 4px 3px rgba(19,21,26, 0.5); 644 | transition: all 0.1s ease-in-out; 645 | } 646 | .power-on .inner-power::before { 647 | border: 2px solid rgba(152, 243, 248, 1); 648 | box-shadow: 649 | 0px 0px 4px 2px rgba(152, 243, 248, 0.5); 650 | } 651 | .power-on .inner-power::after { 652 | background: rgba(152, 243, 248, 1); 653 | box-shadow: 654 | 0px 0px 4px 2px rgba(152, 243, 248, 0.7), 655 | 0px 0px 0px 4px rgba(19,21,26, 1), 656 | 0px 0px 0px 5px rgba(19,21,26, 0.5); 657 | } 658 | .left-btn-1, 659 | .left-btn-2, 660 | .left-btn-3 { 661 | background: rgb(40, 44, 54); 662 | box-shadow: 663 | inset 2px -2px 4px 0px rgba(255,255,255, 0.2), 664 | inset -2px 2px 4px 0px rgba(0,0,0, 0.2), 665 | 2px -2px 5px 0px rgba(0, 0, 0, 1), 666 | 0px 0px 2px 1px rgba(0,0,0, 0.3), 667 | 0px 0px 0px 1px rgba(0,0,0, 1); 668 | width: 7%; 669 | height: 7%; 670 | border-radius: 8px; 671 | left: unset; 672 | right: 22%; 673 | bottom: 18%; 674 | cursor: pointer; 675 | transition: all 0.2s ease-in-out; 676 | } 677 | .left-btn-2 { 678 | bottom: 38%; 679 | } 680 | .left-btn-3 { 681 | bottom: 58%; 682 | } 683 | .left-btn-1:hover, 684 | .left-btn-2:hover, 685 | .left-btn-3:hover { 686 | box-shadow: 687 | inset 2px -2px 4px 0px rgba(133, 133, 133, 0.2), 688 | inset -2px 2px 4px 0px rgba(0,0,0, 0.2), 689 | 1px -1px 3px 0px rgba(0, 0, 0, 1), 690 | 0px 0px 2px 1px rgba(0,0,0, 0.3), 691 | 0px 0px 0px 1px rgba(0,0,0, 1); 692 | } 693 | .left-btn-1:hover > svg, 694 | .left-btn-2:hover > svg, 695 | .left-btn-3:hover > svg { 696 | scale: 0.97; 697 | } 698 | 699 | .left-btn-1 svg, 700 | .left-btn-2 svg, 701 | .left-btn-3 svg { 702 | width: 70%; 703 | height: 70%; 704 | background: none; 705 | rotate: 180deg; 706 | } 707 | .left-btn-1 svg *, 708 | .left-btn-2 svg *, 709 | .left-btn-3 svg * { 710 | opacity: 0.07; 711 | transition: all 0.5s ease-in-out; 712 | fill: rgba(152, 243, 248, 0.7) !important; 713 | filter: drop-shadow(0px 0px 4px rgba(152, 243, 248, 0.1)); 714 | } 715 | .power-on .left-btn-1 svg *, 716 | .power-on .left-btn-2 svg *, 717 | .power-on .left-btn-3 svg * { 718 | opacity: 0.4; 719 | } 720 | .power-on .active.left-btn-1 svg *, 721 | .power-on .active.left-btn-2 svg *, 722 | .power-on .active.left-btn-3 svg * { 723 | opacity: 1; 724 | transition: all 0.5s ease-in-out; 725 | filter: drop-shadow(0px 0px 6px rgba(152, 243, 248, 1)); 726 | } 727 | .right-modal { 728 | background: rgb(40, 44, 54); 729 | width: 32%; 730 | height: 51%; 731 | right: unset; 732 | left: 0; 733 | bottom: unset; 734 | box-shadow: 735 | inset 0px 0px 40px 42px rgba(0,0,0, 0.3), 736 | inset -24px 0px 16px -22px rgba(158, 192, 201, 1), 737 | inset 0px -54px 18px -20px rgba(0, 0, 0, 0.4), 738 | inset 4px -4px 18px 4px rgba(0, 0, 0, 0.3); 739 | } 740 | .right-modal p.label{ 741 | color: rgba(170, 170, 170, 0.2); 742 | background: none; 743 | width: fit-content; 744 | height: fit-content; 745 | rotate: 180deg; 746 | font-size: calc(var(--init-size) / 64); 747 | top: unset; 748 | bottom: 6%; 749 | right: 5%; 750 | pointer-events: none; 751 | } 752 | .power-on .right-modal p.label{ 753 | color: rgba(170, 170, 170, 0.8); 754 | text-shadow: 755 | 0px 0px 3px rgba(255, 255, 255, 0.4), 756 | 0px 0px 8px rgba(255, 255, 255, 0.5); 757 | } 758 | .screen { 759 | background: rgb(0, 0, 0); 760 | width: 60%; 761 | height: 16%; 762 | right: unset; 763 | left: 18%; 764 | top: unset; 765 | bottom: 14%; 766 | text-align: center; 767 | border-radius: 8px; 768 | overflow: hidden; 769 | box-shadow: 0 0 5px 0 rgba(108, 115, 129, 0.5), 770 | inset 0 0 2px 2px rgba(0,0,0, 1), 771 | inset 0 0 2px 2px rgba(255,255,255, 0.7); 772 | } 773 | .power-on p.temp { 774 | color: rgba(255, 255, 255, 0.45); 775 | text-shadow: 776 | 0px 0px 3px rgba(255, 255, 255, 0.3), 777 | 0px 0px 8px rgba(255, 255, 255, 0.4); 778 | transition: 1s color ease-in-out, 1s text-shadow ease-in-out; 779 | transition-delay: 0.2s; 780 | } 781 | p.temp { 782 | background: none; 783 | font-size: calc(var(--init-size) / 30); 784 | font-weight: 500; 785 | letter-spacing: 4px; 786 | font-family: 'Transponder AOE', sans-serif; 787 | rotate: 180deg; 788 | white-space: nowrap; 789 | padding: 7% 4px 14px 16%; 790 | position: absolute; 791 | pointer-events: none; 792 | } 793 | .toggle { 794 | color: rgba(170, 170, 170, 0.725); 795 | font-size: calc(var(--init-size) / 50); 796 | background: rgba(0, 0, 0, 0.5); 797 | rotate: 180deg; 798 | width: 24%; 799 | height: 8%; 800 | display: flex; 801 | justify-content: center; 802 | align-items: center; 803 | border-radius: 20px; 804 | left: 29%; 805 | bottom: -23%; 806 | box-shadow: 807 | 2px -2px 4px 0 rgba(255, 255, 255, 0.1), 808 | -2px 2px 6px 0 rgba(0,0,0, 0.7), 809 | 0px -5px 12px 0 rgba(158, 192, 201, 0.1), 810 | inset 0px 0px 1px 1px rgba(0, 0, 0, 0.7), 811 | inset -1px 2px 4px 0 rgba(255, 255, 255, 0.4); 812 | cursor: pointer; 813 | } 814 | .toggle.two{ 815 | left: 18%; 816 | right: unset; 817 | } 818 | .power-on .toggle.active { 819 | color: #aaaaaacc; 820 | text-shadow: 821 | 0px 0px 3px rgba(255, 255, 255, 0.5), 822 | 0px 0px 8px rgba(255, 255, 255, 0.6); 823 | box-shadow: 824 | 2px -2px 4px 0 rgba(255, 255, 255, 0.1), 825 | -2px 2px 6px 0 rgba(0,0,0, 0.7), 826 | 0px -5px 12px 0 rgba(158, 192, 201, 0.1), 827 | inset 0px 0px 1px 1px rgba(0, 0, 0, 0.7), 828 | inset -1px 2px 4px 0 rgba(255, 255, 255, 0.4); 829 | } 830 | .toggle:hover{ 831 | background: rgba(0, 0, 0, 0.6); 832 | box-shadow: 833 | 2px -2px 4px 0 rgba(255, 255, 255, 0.1), 834 | -2px 2px 6px 0 rgba(0,0,0, 0.7), 835 | 0px -5px 12px 0 rgba(158, 192, 201, 0.1), 836 | inset 0px 0px 1px 1px rgba(0, 0, 0, 0.7), 837 | inset -1px 2px 4px 0 rgba(255, 255, 255, 0.3); 838 | scale: 0.97; 839 | } 840 | g#rocket { 841 | filter: grayscale(0.7); 842 | } 843 | g#rocket #thrusterflame{ 844 | fill: rgb(154, 244, 250) !important; 845 | filter: drop-shadow(0 10px 3px rgb(11, 223, 238)); 846 | } 847 | 848 | @keyframes rocketAnimation { 849 | 0% { 850 | transform: translateY(-10%) translateX(60%) rotate(40deg) scale(1); 851 | } 852 | 100% { 853 | transform: translateY(-70%) translateX(60%) rotate(0deg) scale(0); 854 | } 855 | } 856 | 857 | g#monsterbody { 858 | /* animation: monsterAnimation 24s infinite linear !important; */ 859 | opacity: 0; 860 | } 861 | @keyframes monsterAnimation { 862 | 0% { 863 | opacity: 1; 864 | translate: -30%; 865 | } 866 | 100% { 867 | opacity: 1; 868 | translate: 50%; 869 | } 870 | } 871 | g#biplane { 872 | /* animation: biplaneAnimation 12s infinite linear !important; */ 873 | } 874 | 875 | @keyframes biplaneAnimation { 876 | 0% { 877 | opacity: 1; 878 | translate: 0%; 879 | rotate: 0deg; 880 | } 881 | 5% { rotate: 0.2deg } 882 | 10% { rotate: -0.2deg } 883 | 15% { rotate: 0.2deg } 884 | 20% { rotate: -0.2deg } 885 | 25% { rotate: 0.2deg } 886 | 30% { rotate: -0.2deg } 887 | 35% { rotate: 0.2deg } 888 | 40% { rotate: -0.2deg } 889 | 45% { rotate: 0.2deg } 890 | 50% { rotate: -0.2deg } 891 | 55% { rotate: 0.2deg } 892 | 60% { rotate: -0.2deg } 893 | 65% { rotate: 0.2deg } 894 | 70% { rotate: -0.2deg } 895 | 75% { rotate: 0.2deg } 896 | 80% { rotate: -0.2deg } 897 | 85% { rotate: 0.2deg } 898 | 90% { rotate: -0.2deg } 899 | 95% { rotate: 0.2deg } 900 | 100% { 901 | opacity: 1; 902 | translate: -95%; 903 | } 904 | } --------------------------------------------------------------------------------