cookie clicker but bigger
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

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