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.
 
 
 
 

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