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.
 
 
 
 

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