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.
 
 
 
 

781 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.upgrade-button-inactive {
  318. order: 999999;
  319. }
  320. .upgrade-button-inactive > .upgrade-icon-holder {
  321. opacity: 0.6;
  322. }
  323. [class^="fa-"], [class*=" fa-"] {
  324. display: inline-block;
  325. height: 100%;
  326. width: 100%;
  327. }
  328. .upgrade-icon-holder > .fas {
  329. position: absolute;
  330. font-size: 60px;
  331. text-align: center;
  332. }
  333. .upgrade-button:hover {
  334. background-color: #666;
  335. box-shadow: inset 0px 0px 0px 2px green;
  336. }
  337. .upgrade-button.upgrade-button-inactive {
  338. background-color: #111;
  339. }
  340. .upgrade-button.upgrade-button-inactive:hover {
  341. background-color: #222;
  342. box-shadow: inset 0px 0px 0px 2px red;
  343. }
  344. .upgrade-button-inactive .fas {
  345. opacity: 0.3;
  346. }
  347. .upgrade-button-name {
  348. pointer-events: none;
  349. position: relative;
  350. text-align: center;
  351. width: 100px;
  352. height: 100px;
  353. top: 50%;
  354. bottom: 50%;
  355. right: 50%;
  356. left: 50%;
  357. margin: -25px -50px;
  358. z-index: 1;
  359. font-weight: bold;
  360. overflow-wrap: break-word;
  361. }
  362. .click-popup-food {
  363. pointer-events: none;
  364. transform-origin: -100% 50%;
  365. text-align: center;
  366. position: fixed;
  367. animation: click-popup-food 2s linear;
  368. animation-fill-mode: both;
  369. font-size: 36px;
  370. --target: -200px;
  371. }
  372. .click-popup-gulp {
  373. pointer-events: none;
  374. transform-origin: -100% 50%;
  375. text-align: center;
  376. position: fixed;
  377. animation: click-popup-gulp 2s linear;
  378. animation-fill-mode: both;
  379. font-size: 36px;
  380. --target: 200px;
  381. }
  382. .click-popup-upgrade {
  383. pointer-events: none;
  384. transform-origin: -50% 50%;
  385. text-align: center;
  386. position: fixed;
  387. animation: click-popup-upgrade 2s linear;
  388. animation-fill-mode: both;
  389. font-size: 36px;
  390. --target: -200px;
  391. }
  392. .click-popup-info {
  393. pointer-events: none;
  394. text-align: center;
  395. position: fixed;
  396. transform-origin: 0% 0%;
  397. animation: click-popup-info 2s linear;
  398. animation-fill-mode: both;
  399. font-size: var(--font-size);
  400. --target: -200px;
  401. --font-size: 36px;
  402. }
  403. @keyframes click-popup-food {
  404. 0% {
  405. transform: translate(0px, 0px) scale(1, 1);
  406. opacity: 1;
  407. }
  408. 100% {
  409. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  410. opacity: 0;
  411. }
  412. }
  413. @keyframes click-popup-gulp {
  414. 0% {
  415. transform: translate(0px, 0px) scale(1, 1);
  416. opacity: 1;
  417. }
  418. 100% {
  419. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  420. opacity: 0;
  421. }
  422. }
  423. @keyframes click-popup-upgrade {
  424. 0% {
  425. transform: translate(0px, 0px) scale(1, 1);
  426. opacity: 1;
  427. }
  428. 100% {
  429. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  430. opacity: 0;
  431. }
  432. }
  433. @keyframes click-popup-info {
  434. 0% {
  435. transform: translate(0px, 0px) scale(1, 1);
  436. opacity: 1;
  437. }
  438. 100% {
  439. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  440. opacity: 0;
  441. }
  442. }
  443. div::-webkit-scrollbar {
  444. width: 3px;
  445. height: 2px;
  446. }
  447. div::-webkit-scrollbar-button {
  448. width: 0px;
  449. height: 0px;
  450. }
  451. div::-webkit-scrollbar-thumb {
  452. background: #e1e1e1;
  453. border: 0px none #ffffff;
  454. border-radius: 50px;
  455. }
  456. div::-webkit-scrollbar-thumb:hover {
  457. background: #ffffff;
  458. }
  459. div::-webkit-scrollbar-thumb:active {
  460. background: #000000;
  461. }
  462. div::-webkit-scrollbar-track {
  463. background: #00000000;
  464. border: 0px none #ffffff;
  465. border-radius: 50px;
  466. }
  467. div::-webkit-scrollbar-track:hover {
  468. background: #666666;
  469. }
  470. div::-webkit-scrollbar-track:active {
  471. background: #333333;
  472. }
  473. div::-webkit-scrollbar-corner {
  474. background: transparent;
  475. }
  476. .switcher-button {
  477. position: relative;
  478. display: block;
  479. background-color: #222;
  480. color: #eee;
  481. border: 5px;
  482. border-color: #666;
  483. border-style: solid;
  484. user-select: none;
  485. }
  486. .switcher-button-disabled {
  487. background-color: #111;
  488. color: #999;
  489. }
  490. .switcher-button:hover {
  491. border-color: #777;
  492. background-color: #222;
  493. }
  494. .switcher-button:active {
  495. border-color: #333;
  496. background-color: #111;
  497. }
  498. .news-text {
  499. text-align: center;
  500. position: fixed;
  501. top: 15vh;
  502. left: 50vw;
  503. transform-origin: 0% 0%;
  504. animation: news-text-frames 7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  505. animation-fill-mode: both;
  506. max-width: 40vw;
  507. font-size: 16pt;
  508. }
  509. @keyframes news-text-frames {
  510. 0% {
  511. transform: translate(-50%, -50px);
  512. opacity: 0;
  513. }
  514. 20% {
  515. transform: translate(-50%, 0px);
  516. opacity: 1;
  517. }
  518. 80% {
  519. transform: translate(-50%, -0px);
  520. opacity: 1;
  521. }
  522. 100% {
  523. transform: translate(-50%, 50px);
  524. opacity: 0;
  525. }
  526. }
  527. .powerup {
  528. position: fixed;
  529. --leftpos: 50%;
  530. --toppos: 50%;
  531. --lifetime: 10s;
  532. left: var(--leftpos);
  533. top: var(--toppos);
  534. width: 125px;
  535. height: 125px;
  536. font-size: 80px;
  537. animation: powerup-frames var(--lifetime) linear;
  538. transition: 0.25s;
  539. border-radius: 50%;
  540. background: #611;
  541. border: 150px;
  542. z-index: 10;
  543. }
  544. .powerup:hover {
  545. transform: scale(1.25, 1.25);
  546. }
  547. .powerup:active {
  548. transform: scale(0, 0);
  549. }
  550. .powerup.powerup-clicked {
  551. transform: scale(0, 0);
  552. pointer-events: none;
  553. }
  554. @keyframes powerup-frames {
  555. 0% {
  556. opacity: 0;
  557. }
  558. 20% {
  559. opacity: 1;
  560. }
  561. 80% {
  562. opacity: 1;
  563. }
  564. 100% {
  565. opacity: 0;
  566. }
  567. }
  568. .powerup > .fas {
  569. width: 100%;
  570. height: 100%;
  571. text-align: center;
  572. color: green;
  573. transform: translate(0, 17.5px);
  574. }
  575. #powerups {
  576. margin-top: 100px;
  577. }
  578. #powerup-list {
  579. }
  580. .powerup-entry {
  581. --progress: 0%;
  582. background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%);
  583. transition: 1s;
  584. height: 50px;
  585. max-height: 50px;
  586. }
  587. .powerup-entry-done {
  588. transform: scale(1, 0);
  589. max-height: 0px;
  590. }
  591. #changelog-link a {
  592. position: fixed;
  593. left: 0%;
  594. top: 0%;
  595. height: 10vh;
  596. z-index: 2;
  597. font-size: 36px;
  598. }
  599. #discord-link img {
  600. position: fixed;
  601. right: 0%;
  602. top: 0%;
  603. height: 10vh;
  604. z-index: 2;
  605. }
  606. @media (max-aspect-ratio: 1/1) {
  607. body #changelog-link a {
  608. top: auto;
  609. bottom: 0%;
  610. z-index: 2;
  611. }
  612. body #discord-link img {
  613. top: auto;
  614. bottom: 0%;
  615. z-index: 2;
  616. }
  617. }
  618. .modal {
  619. position: absolute;
  620. z-index: 3;
  621. background: rgba(0, 0, 0, 0.7);
  622. top: 0%;
  623. left: 0%;
  624. height: 100%;
  625. width: 100%;
  626. display: none;
  627. }
  628. .modal .modal-contents {
  629. position: absolute;
  630. width: 60%;
  631. height: 60%;
  632. text-align: center;
  633. vertical-align: middle;
  634. top: 50%;
  635. left: 50%;
  636. transform: translate(-50%, -50%);
  637. }
  638. .modal.modal-active {
  639. display: block;
  640. }
  641. .modal-exit {
  642. width: 15vw;
  643. height: 7.5vh;
  644. font-size: 3vh;
  645. }
  646. .stat-line,
  647. .option-line {
  648. font-size: 18px;
  649. width: 100%;
  650. height: 24px;
  651. }
  652. .stat-line:nth-child(even),
  653. .option-line:nth-child(even) {
  654. background: #333;
  655. }
  656. .stat-line:nth-child(odd),
  657. .option-line:nth-child(odd) {
  658. background: #222;
  659. }
  660. .stat-name,
  661. .option-name {
  662. width: 50%;
  663. float: left;
  664. }
  665. .stat-value,
  666. .option-value {
  667. width: 50%;
  668. max-width: 50%;
  669. box-sizing: border-box;
  670. float: right;
  671. }