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.
 
 
 
 

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