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.
 
 
 
 

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