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.
 
 
 
 

756 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: 50vh;
  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: 25%;
  217. left: 5%;
  218. }
  219. body .news-text {
  220. top: 12%;
  221. left: 22.5%;
  222. max-width: 40vw;
  223. }
  224. #tasty-micro {
  225. width: 30vw;
  226. height: 30vw;
  227. font-size: 20vw;
  228. }
  229. body #tasty-micro:active {
  230. transform: scale(0.9, 0.9);
  231. transition: 0s;
  232. font-size: 15vw;
  233. }
  234. }
  235. .title {
  236. font-size: 48px;
  237. text-align: center;
  238. }
  239. #upgrades-list {
  240. display: flex;
  241. flex-wrap: wrap;
  242. max-height: 25%;
  243. height: 25%;
  244. width: 400px;
  245. padding-bottom: 100px;
  246. overflow-x: hidden;
  247. overflow-y: overlay;
  248. }
  249. #upgrade-tooltip {
  250. position: absolute;
  251. width: 400px;
  252. background: #333;
  253. display: none;
  254. z-index: 1;
  255. left: 0px;
  256. top: 0px;
  257. }
  258. #upgrade-tooltip-name {
  259. font-size: 24px;
  260. color: #eee;
  261. margin: 10px;
  262. top: 50%;
  263. left: 10px;
  264. }
  265. #upgrade-tooltip-desc {
  266. font-size: 14px;
  267. color: #bbb;
  268. margin: 10px;
  269. quotes: '\201c' '\201d';
  270. font-style: italic;
  271. }
  272. #upgrade-tooltip-desc:before {
  273. content: open-quote;
  274. }
  275. #upgrade-tooltip-desc:after {
  276. content: close-quote;
  277. }
  278. #upgrade-tooltip-effect {
  279. font-size: 20px;
  280. margin: 10px;
  281. }
  282. #upgrade-tooltip-cost {
  283. margin: 10px;
  284. }
  285. #upgrade-tooltip-prereqs {
  286. margin: 10px;
  287. }
  288. .cost-met {
  289. color: #0f0;
  290. }
  291. .cost-unmet {
  292. color: #f00;
  293. }
  294. .upgrade-button {
  295. position: relative;
  296. width: 80px;
  297. height: 80px;
  298. display: block;
  299. background-color: #444;
  300. transition: 0.2s;
  301. text-align: center;
  302. box-shadow: inset 0px 0px 0px 2px black;
  303. }
  304. .upgrade-button > .fas {
  305. width: 100px;
  306. height: 100px;
  307. font-size: 60px;
  308. transform: translate(-50px, 10px);
  309. opacity: 0.8;
  310. pointer-events: none;
  311. position: absolute;
  312. }
  313. .upgrade-button:hover {
  314. background-color: #666;
  315. box-shadow: inset 0px 0px 0px 2px green;
  316. }
  317. .upgrade-button.upgrade-button-inactive {
  318. background-color: #222;
  319. }
  320. .upgrade-button.upgrade-button-inactive:hover {
  321. background-color: #333;
  322. box-shadow: inset 0px 0px 0px 2px red;
  323. }
  324. .upgrade-button-inactive .fas {
  325. opacity: 0.3;
  326. }
  327. .upgrade-button-name {
  328. pointer-events: none;
  329. position: relative;
  330. text-align: center;
  331. width: 100px;
  332. height: 100px;
  333. top: 50%;
  334. bottom: 50%;
  335. right: 50%;
  336. left: 50%;
  337. margin: -25px -50px;
  338. z-index: 1;
  339. font-weight: bold;
  340. overflow-wrap: break-word;
  341. }
  342. .click-popup-food {
  343. pointer-events: none;
  344. transform-origin: -100% 50%;
  345. text-align: center;
  346. position: fixed;
  347. animation: click-popup-food 2s linear;
  348. animation-fill-mode: both;
  349. font-size: 36px;
  350. --target: -200px;
  351. }
  352. .click-popup-gulp {
  353. pointer-events: none;
  354. transform-origin: -100% 50%;
  355. text-align: center;
  356. position: fixed;
  357. animation: click-popup-gulp 2s linear;
  358. animation-fill-mode: both;
  359. font-size: 36px;
  360. --target: 200px;
  361. }
  362. .click-popup-upgrade {
  363. pointer-events: none;
  364. transform-origin: -50% 50%;
  365. text-align: center;
  366. position: fixed;
  367. animation: click-popup-upgrade 2s linear;
  368. animation-fill-mode: both;
  369. font-size: 36px;
  370. --target: -200px;
  371. }
  372. .click-popup-info {
  373. pointer-events: none;
  374. text-align: center;
  375. position: fixed;
  376. transform-origin: 0% 0%;
  377. animation: click-popup-info 2s linear;
  378. animation-fill-mode: both;
  379. font-size: var(--font-size);
  380. --target: -200px;
  381. --font-size: 36px;
  382. }
  383. @keyframes click-popup-food {
  384. 0% {
  385. transform: translate(0px, 0px) scale(1, 1);
  386. opacity: 1;
  387. }
  388. 100% {
  389. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  390. opacity: 0;
  391. }
  392. }
  393. @keyframes click-popup-gulp {
  394. 0% {
  395. transform: translate(0px, 0px) scale(1, 1);
  396. opacity: 1;
  397. }
  398. 100% {
  399. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  400. opacity: 0;
  401. }
  402. }
  403. @keyframes click-popup-upgrade {
  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-info {
  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. div::-webkit-scrollbar {
  424. width: 3px;
  425. height: 2px;
  426. }
  427. div::-webkit-scrollbar-button {
  428. width: 0px;
  429. height: 0px;
  430. }
  431. div::-webkit-scrollbar-thumb {
  432. background: #e1e1e1;
  433. border: 0px none #ffffff;
  434. border-radius: 50px;
  435. }
  436. div::-webkit-scrollbar-thumb:hover {
  437. background: #ffffff;
  438. }
  439. div::-webkit-scrollbar-thumb:active {
  440. background: #000000;
  441. }
  442. div::-webkit-scrollbar-track {
  443. background: #00000000;
  444. border: 0px none #ffffff;
  445. border-radius: 50px;
  446. }
  447. div::-webkit-scrollbar-track:hover {
  448. background: #666666;
  449. }
  450. div::-webkit-scrollbar-track:active {
  451. background: #333333;
  452. }
  453. div::-webkit-scrollbar-corner {
  454. background: transparent;
  455. }
  456. .switcher-button {
  457. position: relative;
  458. display: block;
  459. background-color: #222;
  460. color: #eee;
  461. border: 5px;
  462. border-color: #666;
  463. border-style: solid;
  464. user-select: none;
  465. }
  466. .switcher-button-disabled {
  467. background-color: #111;
  468. color: #999;
  469. }
  470. .switcher-button:hover {
  471. border-color: #777;
  472. background-color: #222;
  473. }
  474. .switcher-button:active {
  475. border-color: #333;
  476. background-color: #111;
  477. }
  478. .news-text {
  479. text-align: center;
  480. position: fixed;
  481. top: 15vh;
  482. left: 50vw;
  483. transform-origin: 0% 0%;
  484. animation: news-text-frames 7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  485. animation-fill-mode: both;
  486. font-size: 24px;
  487. }
  488. @keyframes news-text-frames {
  489. 0% {
  490. transform: translate(-50%, -50px);
  491. opacity: 0;
  492. }
  493. 20% {
  494. transform: translate(-50%, 0px);
  495. opacity: 1;
  496. }
  497. 80% {
  498. transform: translate(-50%, -0px);
  499. opacity: 1;
  500. }
  501. 100% {
  502. transform: translate(-50%, 50px);
  503. opacity: 0;
  504. }
  505. }
  506. .powerup {
  507. position: fixed;
  508. --leftpos: 50%;
  509. --toppos: 50%;
  510. --lifetime: 10s;
  511. left: var(--leftpos);
  512. top: var(--toppos);
  513. width: 125px;
  514. height: 125px;
  515. font-size: 80px;
  516. animation: powerup-frames var(--lifetime) linear;
  517. transition: 0.25s;
  518. border-radius: 50%;
  519. background: #611;
  520. border: 150px;
  521. z-index: 10;
  522. }
  523. .powerup:hover {
  524. transform: scale(1.25, 1.25);
  525. }
  526. .powerup:active {
  527. transform: scale(0, 0);
  528. }
  529. .powerup.powerup-clicked {
  530. transform: scale(0, 0);
  531. pointer-events: none;
  532. }
  533. @keyframes powerup-frames {
  534. 0% {
  535. opacity: 0;
  536. }
  537. 20% {
  538. opacity: 1;
  539. }
  540. 80% {
  541. opacity: 1;
  542. }
  543. 100% {
  544. opacity: 0;
  545. }
  546. }
  547. .powerup > .fas {
  548. width: 100%;
  549. height: 100%;
  550. text-align: center;
  551. color: green;
  552. transform: translate(0, 17.5px);
  553. }
  554. #powerups {
  555. margin-top: 100px;
  556. }
  557. #powerup-list {
  558. }
  559. .powerup-entry {
  560. --progress: 0%;
  561. background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%);
  562. transition: 1s;
  563. height: 50px;
  564. max-height: 50px;
  565. }
  566. .powerup-entry-done {
  567. transform: scale(1, 0);
  568. max-height: 0px;
  569. }
  570. #changelog-link a {
  571. position: fixed;
  572. left: 0%;
  573. top: 0%;
  574. height: 10vh;
  575. z-index: 2;
  576. font-size: 36px;
  577. }
  578. #discord-link img {
  579. position: fixed;
  580. right: 0%;
  581. top: 0%;
  582. height: 10vh;
  583. z-index: 2;
  584. }
  585. @media (max-aspect-ratio: 1/1) {
  586. body #changelog-link a {
  587. top: auto;
  588. bottom: 0%;
  589. z-index: 2;
  590. }
  591. body #discord-link img {
  592. top: auto;
  593. bottom: 0%;
  594. z-index: 2;
  595. }
  596. }
  597. .modal {
  598. position: absolute;
  599. z-index: 3;
  600. background: rgba(0, 0, 0, 0.7);
  601. top: 0%;
  602. left: 0%;
  603. height: 100%;
  604. width: 100%;
  605. display: none;
  606. }
  607. .modal .modal-contents {
  608. position: absolute;
  609. width: 60%;
  610. height: 60%;
  611. text-align: center;
  612. vertical-align: middle;
  613. top: 50%;
  614. left: 50%;
  615. transform: translate(-50%, -50%);
  616. }
  617. .modal.modal-active {
  618. display: block;
  619. }
  620. .modal-exit {
  621. width: 15vw;
  622. height: 7.5vh;
  623. font-size: 3vh;
  624. }
  625. .stat-line,
  626. .option-line {
  627. font-size: 18px;
  628. width: 100%;
  629. height: 24px;
  630. }
  631. .stat-line:nth-child(even),
  632. .option-line:nth-child(even) {
  633. background: #333;
  634. }
  635. .stat-line:nth-child(odd),
  636. .option-line:nth-child(odd) {
  637. background: #222;
  638. }
  639. .stat-name,
  640. .option-name {
  641. width: 50%;
  642. float: left;
  643. }
  644. .stat-value,
  645. .option-value {
  646. width: 50%;
  647. max-width: 50%;
  648. box-sizing: border-box;
  649. float: right;
  650. }