cookie clicker but bigger
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

496 rindas
7.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. }
  73. @media (max-aspect-ratio: 1/1) {
  74. #buildings-area {
  75. top: 50%;
  76. left: 50%;
  77. width: 50%;
  78. height: 45%;
  79. max-height: 40vh;
  80. }
  81. #buildings-list {
  82. max-height: 40vh;
  83. }
  84. }
  85. #building-tooltip {
  86. position: fixed;
  87. width: 400px;
  88. background: #333;
  89. display: none;
  90. z-index: 1;
  91. left: 0px;
  92. top: 0px;
  93. }
  94. #building-tooltip-name {
  95. font-size: 24px;
  96. color: #eee;
  97. margin: 10px;
  98. top: 10px;
  99. left: 10px;
  100. }
  101. #building-tooltip-desc {
  102. font-size: 18px;
  103. color: #bbb;
  104. margin: 10px;
  105. left: 10px;
  106. }
  107. #building-tooltip-cost {
  108. position: absolute;
  109. top: 10px;
  110. right: 10px;
  111. font-size: 20px;
  112. }
  113. #building-tooltip-prod {
  114. font-size: 14px;
  115. color: #ccc;
  116. margin: 10px;
  117. }
  118. .building-button {
  119. position: relative;
  120. display: block;
  121. width: 90%;
  122. height: 75px;
  123. background-color: #222;
  124. color: #eee;
  125. border: 5px;
  126. border-color: #666;
  127. border-style: solid;
  128. user-select: none;;
  129. }
  130. .building-button > .fas {
  131. text-align: center;
  132. width: 100%;
  133. height: 100%;
  134. left: 25%;
  135. transform: translate(0, 5px);
  136. position: absolute;
  137. font-size: 60px;
  138. }
  139. .building-button-disabled {
  140. background-color: #111;
  141. color: #999;
  142. }
  143. .building-button-name {
  144. font-size: 24px;
  145. position: absolute;
  146. left: 10%;
  147. top: 15%;
  148. user-select: none;
  149. -moz-user-select: none;
  150. }
  151. .building-button-cost {
  152. font-size: 18px;
  153. position: absolute;
  154. left: 10%;
  155. bottom: 15%;
  156. }
  157. .building-button-cost-invalid {
  158. color: #f22;
  159. }
  160. .building-button-cost-valid {
  161. color: #1a1;
  162. }
  163. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  164. opacity: 1;
  165. }
  166. #buildings-area:hover > .building-button:hover {
  167. opacity: 1;
  168. }
  169. #buildings-area:hover > .building-button:not(:hover) {
  170. opacity: 0.6;
  171. }
  172. .building-button-disabled:hover {
  173. background-color: #111 !important;
  174. }
  175. .building-button:active {
  176. border-color: #333;
  177. background-color: #111;
  178. }
  179. .building-button-disabled:active {
  180. background-color: #111 !important;
  181. border-color: #666 !important;
  182. }
  183. #upgrades-area {
  184. position: absolute;
  185. width: 20%;
  186. right: 35%;
  187. top: 10%;
  188. }
  189. @media (max-aspect-ratio: 1/1) {
  190. #upgrades-area {
  191. position: absolute;
  192. left: 50%;
  193. height: 35%;
  194. width: 50%;
  195. }
  196. #upgrades-list {
  197. max-height: 25vh !important;
  198. }
  199. }
  200. .title {
  201. font-size: 48px;
  202. height: 10%;
  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. }
  258. .upgrade-button > .fas {
  259. width: 100px;
  260. height: 100px;
  261. font-size: 75px;
  262. transform: translate(12.5%, -37.5%);
  263. opacity: 0.5;
  264. }
  265. .upgrade-button:hover {
  266. transform: scale(1.25, 1.25);
  267. }
  268. @media (max-aspect-ratio: 1/1) {
  269. .upgrade-button {
  270. width: 13vw;
  271. height: 13vw;
  272. }
  273. .upgrade-button > .fas {
  274. font-size: 10vw;
  275. }
  276. }
  277. .upgrade-button-inactive {
  278. background-color: #222 !important;
  279. color: #999 !important;
  280. }
  281. .upgrade-button-name {
  282. pointer-events: none;
  283. position: relative;
  284. text-align: center;
  285. width: 100px;
  286. height: 100px;
  287. top: 50%;
  288. bottom: 50%;
  289. right: 50%;
  290. left: 50%;
  291. margin: -25px -50px;
  292. z-index: 1;
  293. font-weight: bold;
  294. }
  295. .click-popup-food {
  296. pointer-events: none;
  297. transform-origin: -100% 50%;
  298. text-align: center;
  299. position: fixed;
  300. animation: click-popup-food 2s linear;
  301. animation-fill-mode: both;
  302. font-size: 36px;
  303. --target: -200px;
  304. }
  305. .click-popup-gulp {
  306. pointer-events: none;
  307. transform-origin: -100% 50%;
  308. text-align: center;
  309. position: fixed;
  310. animation: click-popup-gulp 2s linear;
  311. animation-fill-mode: both;
  312. font-size: 36px;
  313. --target: 200px;
  314. }
  315. .click-popup-upgrade {
  316. pointer-events: none;
  317. transform-origin: -50% 50%;
  318. text-align: center;
  319. position: fixed;
  320. animation: click-popup-upgrade 2s linear;
  321. animation-fill-mode: both;
  322. font-size: 36px;
  323. --target: -200px;
  324. }
  325. .click-popup-info {
  326. pointer-events: none;
  327. text-align: center;
  328. position: fixed;
  329. transform-origin: 0% 0%;
  330. animation: click-popup-info 2s linear;
  331. animation-fill-mode: both;
  332. font-size: 36px;
  333. --target: -200px;
  334. }
  335. @keyframes click-popup-food {
  336. 0% {
  337. transform: translate(0px, 0px) scale(1, 1);
  338. opacity: 1;
  339. }
  340. 100% {
  341. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  342. opacity: 0;
  343. }
  344. }
  345. @keyframes click-popup-gulp {
  346. 0% {
  347. transform: translate(0px, 0px) scale(1, 1);
  348. opacity: 1;
  349. }
  350. 100% {
  351. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  352. opacity: 0;
  353. }
  354. }
  355. @keyframes click-popup-upgrade {
  356. 0% {
  357. transform: translate(0px, 0px) scale(1, 1);
  358. opacity: 1;
  359. }
  360. 100% {
  361. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  362. opacity: 0;
  363. }
  364. }
  365. @keyframes click-popup-info {
  366. 0% {
  367. transform: translate(0px, 0px) scale(1, 1);
  368. opacity: 1;
  369. }
  370. 100% {
  371. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  372. opacity: 0;
  373. }
  374. }
  375. div::-webkit-scrollbar {
  376. width: 3px;
  377. height: 2px;
  378. }
  379. div::-webkit-scrollbar-button {
  380. width: 0px;
  381. height: 0px;
  382. }
  383. div::-webkit-scrollbar-thumb {
  384. background: #e1e1e1;
  385. border: 0px none #ffffff;
  386. border-radius: 50px;
  387. }
  388. div::-webkit-scrollbar-thumb:hover {
  389. background: #ffffff;
  390. }
  391. div::-webkit-scrollbar-thumb:active {
  392. background: #000000;
  393. }
  394. div::-webkit-scrollbar-track {
  395. background: #00000000;
  396. border: 0px none #ffffff;
  397. border-radius: 50px;
  398. }
  399. div::-webkit-scrollbar-track:hover {
  400. background: #666666;
  401. }
  402. div::-webkit-scrollbar-track:active {
  403. background: #333333;
  404. }
  405. div::-webkit-scrollbar-corner {
  406. background: transparent;
  407. }
  408. .switcher-button {
  409. position: relative;
  410. display: block;
  411. background-color: #222;
  412. color: #eee;
  413. border: 5px;
  414. border-color: #666;
  415. border-style: solid;
  416. user-select: none;
  417. }
  418. .switcher-button-disabled {
  419. background-color: #111;
  420. color: #999;
  421. }
  422. .switcher-button:hover {
  423. border-color: #777;
  424. background-color: #222;
  425. }
  426. .switcher-button:active {
  427. border-color: #333;
  428. background-color: #111;
  429. }