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

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