cookie clicker but bigger
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

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