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

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