cookie clicker but bigger
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

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