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.
 
 
 
 

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