cookie clicker but bigger
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

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