cookie clicker but bigger
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

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