body { font-family: Sans-Serif; user-select: none; -moz-user-select: none; touch-action: manipulation; overflow: hidden; } body.dark { background: #111; color: #eee; } .hidden { display: none !important; } button { background-color: #444; color: #eee; } #tasty-micro { border-radius: 25%; color: #ddd; background-color: #211; width: 300px; height: 300px; position: relative; top: 30px; margin: auto; font-size: 60px; transition: 0.5s; font-size: 200px; transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 2.275) } #tasty-micro:active { transform: scale(0.9, 0.9); transition: 0s; font-size: 175px; } #tasty-micro:focus { outline: none; } #top-bar { font-size: 36px; background-color: #322; position: absolute; width: 100%; height: 10%; top: 0%; left: 0%; text-align: center; margin: auto; padding-top: 1vh; } #top-bar > button { font-size: 3vh; } #resources-area { position: absolute; text-align: center; width: 35%; left: 0%; top: 20%; height: 80%; margin: auto; font-size: 36px; } .resource-quantity { font-size: 30px; } .resource-rate { font-size: 18px; color: #bbb; } #upgrades-area { position: absolute; width: 400px; right: 5%; top: 15%; height: 25%; } #buildings-area { position: absolute; width: 400px; right: 5%; top: 40%; height: 80%; max-height: 70vh; padding-bottom: 10px; } #buildings-list { overflow-x: hidden; overflow-y: scroll; scrollbar-color: #e1e1e1 #888; scrollbar-width: thin; max-height: 50vh; max-width: 400px; } #building-tooltip { position: fixed; width: 400px; background: #333; display: none; z-index: 1; left: 0px; top: 0px; } #building-tooltip-name { font-size: 24px; color: #eee; margin: 10px; top: 10px; left: 10px; } #building-tooltip-desc { font-size: 18px; color: #bbb; margin: 10px; left: 10px; } #building-tooltip-cost { position: absolute; top: 10px; right: 10px; font-size: 20px; } #building-tooltip-prod { font-size: 14px; color: #ccc; margin: 10px; } #powerup-tooltip { position: fixed; width: 400px; background: #333; display: none; z-index: 1; left: 0px; top: 0px; } #powerup-tooltip-name { font-size: 24px; color: #eee; margin: 10px; top: 10px; left: 10px; } #powerup-tooltip-desc { font-size: 18px; color: #bbb; margin: 10px; left: 10px; } .building-button { position: relative; display: block; width: 385px; height: 75px; background-color: #222; color: #eee; border: 5px; border-color: #666; border-style: solid; user-select: none;; } .building-button > .fas { text-align: center; width: 100%; height: 100%; left: 25%; transform: translate(25px, 5px); position: absolute; font-size: 60px; } .building-button-disabled { background-color: #111; color: #999; } .building-button-name { font-size: 24px; position: absolute; left: 10%; top: 15%; user-select: none; -moz-user-select: none; } .building-button-cost { font-size: 18px; position: absolute; left: 10%; bottom: 15%; } .building-button-cost-invalid { color: #f22; } .building-button-cost-valid { color: #1a1; } #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) { opacity: 1; } #buildings-area:hover > .building-button:hover { opacity: 1; } #buildings-area:hover > .building-button:not(:hover) { opacity: 0.6; } .building-button-disabled:hover { background-color: #111 !important; } .building-button:active { border-color: #333; background-color: #111; } .building-button-disabled:active { background-color: #111 !important; border-color: #666 !important; } @media (max-aspect-ratio: 1/1) { #resources-area { top: 25%; left: 5%; } body .news-banner { top: 8%; left: 22.5%; } body .news-text { top: 12%; left: 22.5%; max-width: 40vw; } #tasty-micro { width: 30vw; height: 30vw; font-size: 20vw; } body #tasty-micro:active { transform: scale(0.9, 0.9); transition: 0s; font-size: 15vw; } } .title { font-size: 48px; text-align: center; } #upgrades-list { display: flex; flex-wrap: wrap; max-height: 25%; height: 25%; width: 400px; padding-bottom: 100px; overflow-x: hidden; overflow-y: overlay; scrollbar-color: #e1e1e1 #888; scrollbar-width: thin; } #upgrade-tooltip { position: absolute; width: 400px; background: #333; display: none; z-index: 1; left: 0px; top: 0px; } #upgrade-tooltip-name { font-size: 24px; color: #eee; margin: 10px; top: 50%; left: 10px; } #upgrade-tooltip-desc { font-size: 14px; color: #bbb; margin: 10px; quotes: '\201c' '\201d'; font-style: italic; } #upgrade-tooltip-desc:before { content: open-quote; } #upgrade-tooltip-desc:after { content: close-quote; } #upgrade-tooltip-effect { font-size: 20px; margin: 10px; } #upgrade-tooltip-cost { margin: 10px; } #upgrade-tooltip-prereqs { margin: 10px; } .cost-met { color: #0f0; } .cost-unmet { color: #f00; } .upgrade-button { position: relative; width: 80px; height: 80px; display: block; background-color: #333; transition: 0.2s; text-align: center; box-shadow: inset 0px 0px 0px 2px black; } .upgrade-button > .upgrade-icon-holder { width: 80px; height: 80px; opacity: 1; pointer-events: none; position: absolute; display: flex; transform: translate(0, 10px); } .upgrade-button.upgrade-button-inactive { order: 999999; } .upgrade-button-inactive > .upgrade-icon-holder { opacity: 0.6; } [class^="fa-"], [class*=" fa-"] { display: inline-block; height: 100%; width: 100%; } .upgrade-icon-holder > .fas { position: absolute; font-size: 60px; text-align: center; } .upgrade-button:hover { background-color: #666; box-shadow: inset 0px 0px 0px 2px green; } .upgrade-button.upgrade-button-inactive { background-color: #111; } .upgrade-button.upgrade-button-inactive:hover { background-color: #222; box-shadow: inset 0px 0px 0px 2px red; } .upgrade-button-inactive .fas { opacity: 0.3; } .upgrade-button-name { pointer-events: none; position: relative; text-align: center; width: 100px; height: 100px; top: 50%; bottom: 50%; right: 50%; left: 50%; margin: -25px -50px; z-index: 1; font-weight: bold; overflow-wrap: break-word; } .click-popup-food { pointer-events: none; transform-origin: -100% 50%; text-align: center; position: fixed; animation: click-popup-food 2s linear; animation-fill-mode: both; font-size: 36px; --target: -200px; } .click-popup-gulp { pointer-events: none; transform-origin: -100% 50%; text-align: center; position: fixed; animation: click-popup-gulp 2s linear; animation-fill-mode: both; font-size: 36px; --target: 200px; } .click-popup-upgrade { pointer-events: none; transform-origin: -50% 50%; text-align: center; position: fixed; animation: click-popup-upgrade 2s linear; animation-fill-mode: both; font-size: 36px; --target: -200px; } .click-popup-info { pointer-events: none; text-align: center; position: fixed; transform-origin: 0% 0%; animation: click-popup-info 2s linear; animation-fill-mode: both; font-size: var(--font-size); --target: -200px; --font-size: 36px; } @keyframes click-popup-food { 0% { transform: translate(0px, 0px) scale(1, 1); opacity: 1; } 100% { transform: translate(var(--target), -200px) scale(0.5, 0.5); opacity: 0; } } @keyframes click-popup-gulp { 0% { transform: translate(0px, 0px) scale(1, 1); opacity: 1; } 100% { transform: translate(var(--target), 200px) scale(0.5, 0.5); opacity: 0; } } @keyframes click-popup-upgrade { 0% { transform: translate(0px, 0px) scale(1, 1); opacity: 1; } 100% { transform: translate(var(--target), 200px) scale(0.5, 0.5); opacity: 0; } } @keyframes click-popup-info { 0% { transform: translate(0px, 0px) scale(1, 1); opacity: 1; } 100% { transform: translate(var(--target), 200px) scale(0.5, 0.5); opacity: 0; } } div::-webkit-scrollbar { width: 3px; height: 2px; } div::-webkit-scrollbar-button { width: 0px; height: 0px; } div::-webkit-scrollbar-thumb { background: #e1e1e1; border: 0px none #ffffff; border-radius: 50px; } div::-webkit-scrollbar-thumb:hover { background: #ffffff; } div::-webkit-scrollbar-thumb:active { background: #000000; } div::-webkit-scrollbar-track { background: #00000000; border: 0px none #ffffff; border-radius: 50px; } div::-webkit-scrollbar-track:hover { background: #666666; } div::-webkit-scrollbar-track:active { background: #333333; } div::-webkit-scrollbar-corner { background: transparent; } .switcher-button { position: relative; display: block; background-color: #222; color: #eee; border: 5px; border-color: #666; border-style: solid; user-select: none; } .switcher-button-disabled { background-color: #111; color: #999; } .switcher-button:hover { border-color: #777; background-color: #222; } .switcher-button:active { border-color: #333; background-color: #111; } .news-banner { text-align: center; position: fixed; top: 12vh; left: 50vw; transform: translate(-50%, 0%); font-size: 24pt; color: #eee; } .news-text { text-align: center; position: fixed; top: 15vh; left: 50vw; transform-origin: 0% 0%; animation: news-text-enter 1s cubic-bezier(0.68, -0.55, 0.265, 1.55); animation-fill-mode: both; max-width: 40vw; font-size: 16pt; } .news-text.news-text-leaving { pointer-events: none; animation: news-text-exit 1s cubic-bezier(0.68, -0.55, 0.265, 1.55); animation-fill-mode: both; } @keyframes news-text-enter { 0% { transform: translate(-50%, -50px); opacity: 0; } 100% { transform: translate(-50%, 0px); opacity: 1; } } @keyframes news-text-exit { 0% { transform: translate(-50%, 0px); opacity: 1 } 100% { transform: translate(-50%, 50px); opacity: 0; } } .powerup { position: fixed; --leftpos: 50%; --toppos: 50%; --lifetime: 10s; left: var(--leftpos); top: var(--toppos); width: 125px; height: 125px; font-size: 80px; animation: powerup-frames var(--lifetime) linear; transition: 0.25s; border-radius: 50%; background: #611; border: 150px; z-index: 10; } .powerup:hover { transform: scale(1.25, 1.25); } .powerup:active { transform: scale(0, 0); } .powerup.powerup-clicked { transform: scale(0, 0); pointer-events: none; } @keyframes powerup-frames { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } } .powerup > .fas { width: 100%; height: 100%; text-align: center; color: green; transform: translate(0, 17.5px); } #powerups { margin-top: 100px; } #powerup-list { margin: 80px; } .powerup-entry { --progress: 0%; background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%); transition: 1s; width: 80px; height: 80px; max-height: 80px; } .powerup-entry > .powerup-entry-icon-holder { width: 80px; height: 80px; opacity: 1; pointer-events: none; position: absolute; display: flex; transform: translate(0, 10px); } .powerup-entry-icon-holder > .fas { position: absolute; font-size: 60px; text-align: center; } .powerup-entry-done { transform: scale(1, 0); max-height: 0px; } #changelog-link { position: fixed; left: 0%; top: 0%; height: 10vh; z-index: 2; font-size: 36px; } #changelog-link div { font-size: 24px; color: gray; } #discord-link img { position: fixed; right: 0%; top: 0%; height: 10vh; z-index: 2; } @media (max-aspect-ratio: 1/1) { body #changelog-link { top: auto; bottom: 0%; z-index: 2; } body #discord-link img { top: auto; bottom: 0%; z-index: 2; } } .modal { position: absolute; z-index: 3; background: rgba(0, 0, 0, 0.7); top: 0%; left: 0%; height: 100%; width: 100%; display: none; } .modal .modal-contents { position: absolute; width: 60%; height: 60%; text-align: center; vertical-align: middle; top: 50%; left: 50%; transform: translate(-50%, -50%); } .modal.modal-active { display: block; } .modal-exit { width: 15vw; height: 7.5vh; font-size: 3vh; } .stat-line, .option-line { font-size: 18px; width: 100%; height: 24px; } .stat-line:nth-child(even), .option-line:nth-child(even) { background: #333; } .stat-line:nth-child(odd), .option-line:nth-child(odd) { background: #222; } .stat-name, .option-name { width: 50%; float: left; } .stat-value, .option-value { width: 50%; max-width: 50%; box-sizing: border-box; float: right; }