cookie clicker but bigger
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

777 lines
12 KiB

  1. body {
  2. font-family: Sans-Serif;
  3. user-select: none;
  4. -moz-user-select: none;
  5. touch-action: manipulation;
  6. overflow: hidden;
  7. }
  8. body.dark {
  9. background: #111;
  10. color: #eee;
  11. }
  12. .hidden {
  13. display: none !important;
  14. }
  15. button {
  16. background-color: #444;
  17. color: #eee;
  18. }
  19. #tasty-micro {
  20. border-radius: 25%;
  21. color: #ddd;
  22. background-color: #211;
  23. width: 300px;
  24. height: 300px;
  25. position: relative;
  26. top: 30px;
  27. margin: auto;
  28. font-size: 60px;
  29. transition: 0.5s;
  30. font-size: 200px;
  31. transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 2.275)
  32. }
  33. #tasty-micro:active {
  34. transform: scale(0.9, 0.9);
  35. transition: 0s;
  36. font-size: 175px;
  37. }
  38. #tasty-micro:focus {
  39. outline: none;
  40. }
  41. #top-bar {
  42. font-size: 36px;
  43. background-color: #322;
  44. position: absolute;
  45. width: 100%;
  46. height: 10%;
  47. top: 0%;
  48. left: 0%;
  49. text-align: center;
  50. margin: auto;
  51. }
  52. #top-bar > button {
  53. font-size: 3vh;
  54. }
  55. #resources-area {
  56. position: absolute;
  57. text-align: center;
  58. width: 35%;
  59. left: 0%;
  60. top: 20%;
  61. height: 80%;
  62. margin: auto;
  63. font-size: 36px;
  64. }
  65. .resource-quantity {
  66. font-size: 30px;
  67. }
  68. .resource-rate {
  69. font-size: 18px;
  70. color: #bbb;
  71. }
  72. #upgrades-area {
  73. position: absolute;
  74. width: 400px;
  75. right: 5%;
  76. top: 15%;
  77. height: 25%;
  78. }
  79. #buildings-area {
  80. position: absolute;
  81. width: 400px;
  82. right: 5%;
  83. top: 40%;
  84. height: 80%;
  85. max-height: 70vh;
  86. padding-bottom: 10px;
  87. }
  88. #buildings-list {
  89. overflow-x: hidden;
  90. overflow-y: scroll;
  91. scrollbar-color: #e1e1e1 #888;
  92. scrollbar-width: thin;
  93. max-height: 50vh;
  94. max-width: 400px;
  95. }
  96. #building-tooltip {
  97. position: fixed;
  98. width: 400px;
  99. background: #333;
  100. display: none;
  101. z-index: 1;
  102. left: 0px;
  103. top: 0px;
  104. }
  105. #building-tooltip-name {
  106. font-size: 24px;
  107. color: #eee;
  108. margin: 10px;
  109. top: 10px;
  110. left: 10px;
  111. }
  112. #building-tooltip-desc {
  113. font-size: 18px;
  114. color: #bbb;
  115. margin: 10px;
  116. left: 10px;
  117. }
  118. #building-tooltip-cost {
  119. position: absolute;
  120. top: 10px;
  121. right: 10px;
  122. font-size: 20px;
  123. }
  124. #building-tooltip-prod {
  125. font-size: 14px;
  126. color: #ccc;
  127. margin: 10px;
  128. }
  129. #powerup-tooltip {
  130. position: fixed;
  131. width: 400px;
  132. background: #333;
  133. display: none;
  134. z-index: 1;
  135. left: 0px;
  136. top: 0px;
  137. }
  138. #powerup-tooltip-name {
  139. font-size: 24px;
  140. color: #eee;
  141. margin: 10px;
  142. top: 10px;
  143. left: 10px;
  144. }
  145. #powerup-tooltip-desc {
  146. font-size: 18px;
  147. color: #bbb;
  148. margin: 10px;
  149. left: 10px;
  150. }
  151. .building-button {
  152. position: relative;
  153. display: block;
  154. width: 385px;
  155. height: 75px;
  156. background-color: #222;
  157. color: #eee;
  158. border: 5px;
  159. border-color: #666;
  160. border-style: solid;
  161. user-select: none;;
  162. }
  163. .building-button > .fas {
  164. text-align: center;
  165. width: 100%;
  166. height: 100%;
  167. left: 25%;
  168. transform: translate(25px, 5px);
  169. position: absolute;
  170. font-size: 60px;
  171. }
  172. .building-button-disabled {
  173. background-color: #111;
  174. color: #999;
  175. }
  176. .building-button-name {
  177. font-size: 24px;
  178. position: absolute;
  179. left: 10%;
  180. top: 15%;
  181. user-select: none;
  182. -moz-user-select: none;
  183. }
  184. .building-button-cost {
  185. font-size: 18px;
  186. position: absolute;
  187. left: 10%;
  188. bottom: 15%;
  189. }
  190. .building-button-cost-invalid {
  191. color: #f22;
  192. }
  193. .building-button-cost-valid {
  194. color: #1a1;
  195. }
  196. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  197. opacity: 1;
  198. }
  199. #buildings-area:hover > .building-button:hover {
  200. opacity: 1;
  201. }
  202. #buildings-area:hover > .building-button:not(:hover) {
  203. opacity: 0.6;
  204. }
  205. .building-button-disabled:hover {
  206. background-color: #111 !important;
  207. }
  208. .building-button:active {
  209. border-color: #333;
  210. background-color: #111;
  211. }
  212. .building-button-disabled:active {
  213. background-color: #111 !important;
  214. border-color: #666 !important;
  215. }
  216. @media (max-aspect-ratio: 1/1) {
  217. #resources-area {
  218. top: 25%;
  219. left: 5%;
  220. }
  221. body .news-text {
  222. top: 12%;
  223. left: 22.5%;
  224. max-width: 40vw;
  225. }
  226. #tasty-micro {
  227. width: 30vw;
  228. height: 30vw;
  229. font-size: 20vw;
  230. }
  231. body #tasty-micro:active {
  232. transform: scale(0.9, 0.9);
  233. transition: 0s;
  234. font-size: 15vw;
  235. }
  236. }
  237. .title {
  238. font-size: 48px;
  239. text-align: center;
  240. }
  241. #upgrades-list {
  242. display: flex;
  243. flex-wrap: wrap;
  244. max-height: 25%;
  245. height: 25%;
  246. width: 400px;
  247. padding-bottom: 100px;
  248. overflow-x: hidden;
  249. overflow-y: overlay;
  250. scrollbar-color: #e1e1e1 #888;
  251. scrollbar-width: thin;
  252. }
  253. #upgrade-tooltip {
  254. position: absolute;
  255. width: 400px;
  256. background: #333;
  257. display: none;
  258. z-index: 1;
  259. left: 0px;
  260. top: 0px;
  261. }
  262. #upgrade-tooltip-name {
  263. font-size: 24px;
  264. color: #eee;
  265. margin: 10px;
  266. top: 50%;
  267. left: 10px;
  268. }
  269. #upgrade-tooltip-desc {
  270. font-size: 14px;
  271. color: #bbb;
  272. margin: 10px;
  273. quotes: '\201c' '\201d';
  274. font-style: italic;
  275. }
  276. #upgrade-tooltip-desc:before {
  277. content: open-quote;
  278. }
  279. #upgrade-tooltip-desc:after {
  280. content: close-quote;
  281. }
  282. #upgrade-tooltip-effect {
  283. font-size: 20px;
  284. margin: 10px;
  285. }
  286. #upgrade-tooltip-cost {
  287. margin: 10px;
  288. }
  289. #upgrade-tooltip-prereqs {
  290. margin: 10px;
  291. }
  292. .cost-met {
  293. color: #0f0;
  294. }
  295. .cost-unmet {
  296. color: #f00;
  297. }
  298. .upgrade-button {
  299. position: relative;
  300. width: 80px;
  301. height: 80px;
  302. display: block;
  303. background-color: #333;
  304. transition: 0.2s;
  305. text-align: center;
  306. box-shadow: inset 0px 0px 0px 2px black;
  307. }
  308. .upgrade-button > .upgrade-icon-holder {
  309. width: 80px;
  310. height: 80px;
  311. opacity: 0.8;
  312. pointer-events: none;
  313. position: absolute;
  314. display: flex;
  315. transform: translate(0, 10px);
  316. }
  317. .upgrade-button-inactive > .upgrade-icon-holder {
  318. opacity: 0.6;
  319. }
  320. [class^="fa-"], [class*=" fa-"] {
  321. display: inline-block;
  322. height: 100%;
  323. width: 100%;
  324. }
  325. .upgrade-icon-holder > .fas {
  326. position: absolute;
  327. font-size: 60px;
  328. text-align: center;
  329. }
  330. .upgrade-button:hover {
  331. background-color: #666;
  332. box-shadow: inset 0px 0px 0px 2px green;
  333. }
  334. .upgrade-button.upgrade-button-inactive {
  335. background-color: #111;
  336. }
  337. .upgrade-button.upgrade-button-inactive:hover {
  338. background-color: #222;
  339. box-shadow: inset 0px 0px 0px 2px red;
  340. }
  341. .upgrade-button-inactive .fas {
  342. opacity: 0.3;
  343. }
  344. .upgrade-button-name {
  345. pointer-events: none;
  346. position: relative;
  347. text-align: center;
  348. width: 100px;
  349. height: 100px;
  350. top: 50%;
  351. bottom: 50%;
  352. right: 50%;
  353. left: 50%;
  354. margin: -25px -50px;
  355. z-index: 1;
  356. font-weight: bold;
  357. overflow-wrap: break-word;
  358. }
  359. .click-popup-food {
  360. pointer-events: none;
  361. transform-origin: -100% 50%;
  362. text-align: center;
  363. position: fixed;
  364. animation: click-popup-food 2s linear;
  365. animation-fill-mode: both;
  366. font-size: 36px;
  367. --target: -200px;
  368. }
  369. .click-popup-gulp {
  370. pointer-events: none;
  371. transform-origin: -100% 50%;
  372. text-align: center;
  373. position: fixed;
  374. animation: click-popup-gulp 2s linear;
  375. animation-fill-mode: both;
  376. font-size: 36px;
  377. --target: 200px;
  378. }
  379. .click-popup-upgrade {
  380. pointer-events: none;
  381. transform-origin: -50% 50%;
  382. text-align: center;
  383. position: fixed;
  384. animation: click-popup-upgrade 2s linear;
  385. animation-fill-mode: both;
  386. font-size: 36px;
  387. --target: -200px;
  388. }
  389. .click-popup-info {
  390. pointer-events: none;
  391. text-align: center;
  392. position: fixed;
  393. transform-origin: 0% 0%;
  394. animation: click-popup-info 2s linear;
  395. animation-fill-mode: both;
  396. font-size: var(--font-size);
  397. --target: -200px;
  398. --font-size: 36px;
  399. }
  400. @keyframes click-popup-food {
  401. 0% {
  402. transform: translate(0px, 0px) scale(1, 1);
  403. opacity: 1;
  404. }
  405. 100% {
  406. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  407. opacity: 0;
  408. }
  409. }
  410. @keyframes click-popup-gulp {
  411. 0% {
  412. transform: translate(0px, 0px) scale(1, 1);
  413. opacity: 1;
  414. }
  415. 100% {
  416. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  417. opacity: 0;
  418. }
  419. }
  420. @keyframes click-popup-upgrade {
  421. 0% {
  422. transform: translate(0px, 0px) scale(1, 1);
  423. opacity: 1;
  424. }
  425. 100% {
  426. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  427. opacity: 0;
  428. }
  429. }
  430. @keyframes click-popup-info {
  431. 0% {
  432. transform: translate(0px, 0px) scale(1, 1);
  433. opacity: 1;
  434. }
  435. 100% {
  436. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  437. opacity: 0;
  438. }
  439. }
  440. div::-webkit-scrollbar {
  441. width: 3px;
  442. height: 2px;
  443. }
  444. div::-webkit-scrollbar-button {
  445. width: 0px;
  446. height: 0px;
  447. }
  448. div::-webkit-scrollbar-thumb {
  449. background: #e1e1e1;
  450. border: 0px none #ffffff;
  451. border-radius: 50px;
  452. }
  453. div::-webkit-scrollbar-thumb:hover {
  454. background: #ffffff;
  455. }
  456. div::-webkit-scrollbar-thumb:active {
  457. background: #000000;
  458. }
  459. div::-webkit-scrollbar-track {
  460. background: #00000000;
  461. border: 0px none #ffffff;
  462. border-radius: 50px;
  463. }
  464. div::-webkit-scrollbar-track:hover {
  465. background: #666666;
  466. }
  467. div::-webkit-scrollbar-track:active {
  468. background: #333333;
  469. }
  470. div::-webkit-scrollbar-corner {
  471. background: transparent;
  472. }
  473. .switcher-button {
  474. position: relative;
  475. display: block;
  476. background-color: #222;
  477. color: #eee;
  478. border: 5px;
  479. border-color: #666;
  480. border-style: solid;
  481. user-select: none;
  482. }
  483. .switcher-button-disabled {
  484. background-color: #111;
  485. color: #999;
  486. }
  487. .switcher-button:hover {
  488. border-color: #777;
  489. background-color: #222;
  490. }
  491. .switcher-button:active {
  492. border-color: #333;
  493. background-color: #111;
  494. }
  495. .news-text {
  496. text-align: center;
  497. position: fixed;
  498. top: 15vh;
  499. left: 50vw;
  500. transform-origin: 0% 0%;
  501. animation: news-text-frames 7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  502. animation-fill-mode: both;
  503. max-width: 40vw;
  504. font-size: 16pt;
  505. }
  506. @keyframes news-text-frames {
  507. 0% {
  508. transform: translate(-50%, -50px);
  509. opacity: 0;
  510. }
  511. 20% {
  512. transform: translate(-50%, 0px);
  513. opacity: 1;
  514. }
  515. 80% {
  516. transform: translate(-50%, -0px);
  517. opacity: 1;
  518. }
  519. 100% {
  520. transform: translate(-50%, 50px);
  521. opacity: 0;
  522. }
  523. }
  524. .powerup {
  525. position: fixed;
  526. --leftpos: 50%;
  527. --toppos: 50%;
  528. --lifetime: 10s;
  529. left: var(--leftpos);
  530. top: var(--toppos);
  531. width: 125px;
  532. height: 125px;
  533. font-size: 80px;
  534. animation: powerup-frames var(--lifetime) linear;
  535. transition: 0.25s;
  536. border-radius: 50%;
  537. background: #611;
  538. border: 150px;
  539. z-index: 10;
  540. }
  541. .powerup:hover {
  542. transform: scale(1.25, 1.25);
  543. }
  544. .powerup:active {
  545. transform: scale(0, 0);
  546. }
  547. .powerup.powerup-clicked {
  548. transform: scale(0, 0);
  549. pointer-events: none;
  550. }
  551. @keyframes powerup-frames {
  552. 0% {
  553. opacity: 0;
  554. }
  555. 20% {
  556. opacity: 1;
  557. }
  558. 80% {
  559. opacity: 1;
  560. }
  561. 100% {
  562. opacity: 0;
  563. }
  564. }
  565. .powerup > .fas {
  566. width: 100%;
  567. height: 100%;
  568. text-align: center;
  569. color: green;
  570. transform: translate(0, 17.5px);
  571. }
  572. #powerups {
  573. margin-top: 100px;
  574. }
  575. #powerup-list {
  576. }
  577. .powerup-entry {
  578. --progress: 0%;
  579. background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%);
  580. transition: 1s;
  581. height: 50px;
  582. max-height: 50px;
  583. }
  584. .powerup-entry-done {
  585. transform: scale(1, 0);
  586. max-height: 0px;
  587. }
  588. #changelog-link a {
  589. position: fixed;
  590. left: 0%;
  591. top: 0%;
  592. height: 10vh;
  593. z-index: 2;
  594. font-size: 36px;
  595. }
  596. #discord-link img {
  597. position: fixed;
  598. right: 0%;
  599. top: 0%;
  600. height: 10vh;
  601. z-index: 2;
  602. }
  603. @media (max-aspect-ratio: 1/1) {
  604. body #changelog-link a {
  605. top: auto;
  606. bottom: 0%;
  607. z-index: 2;
  608. }
  609. body #discord-link img {
  610. top: auto;
  611. bottom: 0%;
  612. z-index: 2;
  613. }
  614. }
  615. .modal {
  616. position: absolute;
  617. z-index: 3;
  618. background: rgba(0, 0, 0, 0.7);
  619. top: 0%;
  620. left: 0%;
  621. height: 100%;
  622. width: 100%;
  623. display: none;
  624. }
  625. .modal .modal-contents {
  626. position: absolute;
  627. width: 60%;
  628. height: 60%;
  629. text-align: center;
  630. vertical-align: middle;
  631. top: 50%;
  632. left: 50%;
  633. transform: translate(-50%, -50%);
  634. }
  635. .modal.modal-active {
  636. display: block;
  637. }
  638. .modal-exit {
  639. width: 15vw;
  640. height: 7.5vh;
  641. font-size: 3vh;
  642. }
  643. .stat-line,
  644. .option-line {
  645. font-size: 18px;
  646. width: 100%;
  647. height: 24px;
  648. }
  649. .stat-line:nth-child(even),
  650. .option-line:nth-child(even) {
  651. background: #333;
  652. }
  653. .stat-line:nth-child(odd),
  654. .option-line:nth-child(odd) {
  655. background: #222;
  656. }
  657. .stat-name,
  658. .option-name {
  659. width: 50%;
  660. float: left;
  661. }
  662. .stat-value,
  663. .option-value {
  664. width: 50%;
  665. max-width: 50%;
  666. box-sizing: border-box;
  667. float: right;
  668. }