cookie clicker but bigger
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

481 líneas
7.3 KiB

  1. body {
  2. font-family: Sans-Serif;
  3. user-select: none;
  4. -moz-user-select: none;
  5. touch-action: manipulation;
  6. }
  7. body.dark {
  8. background: #111;
  9. color: #eee;
  10. }
  11. .hidden {
  12. display: none !important;
  13. }
  14. button {
  15. background-color: #444;
  16. color: #eee;
  17. }
  18. #tasty-micro {
  19. color: #ddd;
  20. background-color: #211;
  21. width: 300px;
  22. height: 200px;
  23. position: relative;
  24. top: 30px;
  25. margin: auto;
  26. font-size: 60px;
  27. }
  28. #top-bar {
  29. font-size: 36px;
  30. background-color: #322;
  31. position: absolute;
  32. width: 100%;
  33. height: 10%;
  34. top: 0%;
  35. left: 0%;
  36. text-align: center;
  37. margin: auto;
  38. }
  39. #top-bar > button {
  40. font-size: 36px;
  41. }
  42. #resources-area {
  43. position: absolute;
  44. text-align: center;
  45. width: 35%;
  46. left: 0%;
  47. top: 10%;
  48. height: 90%;
  49. margin: auto;
  50. font-size: 36px;
  51. }
  52. .resource-quantity {
  53. font-size: 30px;
  54. }
  55. .resource-rate {
  56. font-size: 18px;
  57. color: #bbb;
  58. }
  59. #buildings-area {
  60. position: absolute;
  61. width: 20%;
  62. right: 5%;
  63. top: 10%;
  64. height: 90%;
  65. overflow-x: hidden;
  66. overflow-y: scroll;
  67. }
  68. @media (max-aspect-ratio: 1/1) {
  69. #buildings-area {
  70. top: 50%;
  71. left: 50%;
  72. width: 50%;
  73. height: 45%;
  74. }
  75. }
  76. #building-tooltip {
  77. position: fixed;
  78. width: 400px;
  79. background: #333;
  80. display: none;
  81. z-index: 1;
  82. left: 0px;
  83. top: 0px;
  84. }
  85. #building-tooltip-name {
  86. font-size: 24px;
  87. color: #eee;
  88. margin: 10px;
  89. top: 10px;
  90. left: 10px;
  91. }
  92. #building-tooltip-desc {
  93. font-size: 18px;
  94. color: #bbb;
  95. margin: 10px;
  96. left: 10px;
  97. }
  98. #building-tooltip-cost {
  99. position: absolute;
  100. top: 10px;
  101. right: 10px;
  102. font-size: 20px;
  103. }
  104. #building-tooltip-prod {
  105. font-size: 14px;
  106. color: #ccc;
  107. margin: 10px;
  108. }
  109. .building-button {
  110. position: relative;
  111. display: block;
  112. width: 90%;
  113. height: 75px;
  114. background-color: #222;
  115. color: #eee;
  116. border: 5px;
  117. border-color: #666;
  118. border-style: solid;
  119. user-select: none;;
  120. }
  121. .building-button > .fas {
  122. text-align: center;
  123. width: 100%;
  124. height: 100%;
  125. left: 25%;
  126. transform: translate(0, 5px);
  127. position: absolute;
  128. font-size: 60px;
  129. }
  130. .building-button-disabled {
  131. background-color: #111;
  132. color: #999;
  133. }
  134. .building-button-name {
  135. font-size: 24px;
  136. position: absolute;
  137. left: 10%;
  138. top: 15%;
  139. user-select: none;
  140. -moz-user-select: none;
  141. }
  142. .building-button-cost {
  143. font-size: 18px;
  144. position: absolute;
  145. left: 10%;
  146. bottom: 15%;
  147. }
  148. .building-button-cost-invalid {
  149. color: #f22;
  150. }
  151. .building-button-cost-valid {
  152. color: #1a1;
  153. }
  154. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  155. opacity: 1;
  156. }
  157. #buildings-area:hover > .building-button:hover {
  158. opacity: 1;
  159. }
  160. #buildings-area:hover > .building-button:not(:hover) {
  161. opacity: 0.6;
  162. }
  163. .building-button-disabled:hover {
  164. background-color: #111 !important;
  165. }
  166. .building-button:active {
  167. border-color: #333;
  168. background-color: #111;
  169. }
  170. .building-button-disabled:active {
  171. background-color: #111 !important;
  172. border-color: #666 !important;
  173. }
  174. #upgrades-area {
  175. position: absolute;
  176. width: 20%;
  177. right: 35%;
  178. top: 10%;
  179. }
  180. @media (max-aspect-ratio: 1/1) {
  181. #upgrades-area {
  182. position: absolute;
  183. left: 50%;
  184. height: 35%;
  185. width: 50%;
  186. }
  187. }
  188. .title {
  189. font-size: 48px;
  190. height: 10%;
  191. text-align: center;
  192. }
  193. #upgrades-list {
  194. display: flex;
  195. flex-wrap: wrap;
  196. height: 100%;
  197. overflow-x: hidden;
  198. overflow-y: scroll;
  199. }
  200. #upgrade-tooltip {
  201. position: absolute;
  202. width: 200px;
  203. background: #333;
  204. display: none;
  205. z-index: 1;
  206. left: 0px;
  207. top: 0px;
  208. }
  209. #upgrade-tooltip-name {
  210. font-size: 24px;
  211. color: #eee;
  212. margin: 10px;
  213. top: 50%;
  214. left: 10px;
  215. }
  216. #upgrade-tooltip-desc {
  217. font-size: 14px;
  218. color: #bbb;
  219. margin: 10px;
  220. }
  221. #upgrade-tooltip-effect {
  222. font-size: 20px;
  223. margin: 10px;
  224. }
  225. #upgrade-tooltip-cost {
  226. margin: 10px;
  227. }
  228. #upgrade-tooltip-prereqs {
  229. margin: 10px;
  230. }
  231. .cost-met {
  232. color: #0f0;
  233. }
  234. .cost-unmet {
  235. color: #f00;
  236. }
  237. .upgrade-button {
  238. width: 100px;
  239. height: 100px;
  240. margin: 10px;
  241. display: block;
  242. background-color: #444;
  243. transition: 0.2s;
  244. }
  245. .upgrade-button > .fas {
  246. width: 100px;
  247. height: 100px;
  248. font-size: 75px;
  249. transform: translate(12.5%, -37.5%);
  250. opacity: 0.5;
  251. }
  252. .upgrade-button:hover {
  253. transform: scale(1.25, 1.25);
  254. }
  255. @media (max-aspect-ratio: 1/1) {
  256. .upgrade-button {
  257. width: 13vw;
  258. height: 13vw;
  259. }
  260. .upgrade-button > .fas {
  261. font-size: 10vw;
  262. }
  263. }
  264. .upgrade-button-inactive {
  265. background-color: #222 !important;
  266. color: #999 !important;
  267. }
  268. .upgrade-button-name {
  269. pointer-events: none;
  270. position: relative;
  271. text-align: center;
  272. width: 100px;
  273. height: 100px;
  274. top: 50%;
  275. bottom: 50%;
  276. right: 50%;
  277. left: 50%;
  278. margin: -25px -50px;
  279. z-index: 1;
  280. font-weight: bold;
  281. }
  282. .click-popup-food {
  283. pointer-events: none;
  284. transform-origin: -100% 50%;
  285. text-align: center;
  286. position: fixed;
  287. animation: click-popup-food 2s linear;
  288. animation-fill-mode: both;
  289. font-size: 36px;
  290. --target: -200px;
  291. }
  292. .click-popup-gulp {
  293. pointer-events: none;
  294. transform-origin: -100% 50%;
  295. text-align: center;
  296. position: fixed;
  297. animation: click-popup-gulp 2s linear;
  298. animation-fill-mode: both;
  299. font-size: 36px;
  300. --target: 200px;
  301. }
  302. .click-popup-upgrade {
  303. pointer-events: none;
  304. transform-origin: -50% 50%;
  305. text-align: center;
  306. position: fixed;
  307. animation: click-popup-upgrade 2s linear;
  308. animation-fill-mode: both;
  309. font-size: 36px;
  310. --target: -200px;
  311. }
  312. .click-popup-info {
  313. pointer-events: none;
  314. text-align: center;
  315. position: fixed;
  316. transform-origin: 0% 0%;
  317. animation: click-popup-info 2s linear;
  318. animation-fill-mode: both;
  319. font-size: 36px;
  320. --target: -200px;
  321. }
  322. @keyframes click-popup-food {
  323. 0% {
  324. transform: translate(0px, 0px) scale(1, 1);
  325. opacity: 1;
  326. }
  327. 100% {
  328. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  329. opacity: 0;
  330. }
  331. }
  332. @keyframes click-popup-gulp {
  333. 0% {
  334. transform: translate(0px, 0px) scale(1, 1);
  335. opacity: 1;
  336. }
  337. 100% {
  338. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  339. opacity: 0;
  340. }
  341. }
  342. @keyframes click-popup-upgrade {
  343. 0% {
  344. transform: translate(0px, 0px) scale(1, 1);
  345. opacity: 1;
  346. }
  347. 100% {
  348. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  349. opacity: 0;
  350. }
  351. }
  352. @keyframes click-popup-info {
  353. 0% {
  354. transform: translate(0px, 0px) scale(1, 1);
  355. opacity: 1;
  356. }
  357. 100% {
  358. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  359. opacity: 0;
  360. }
  361. }
  362. div::-webkit-scrollbar {
  363. width: 3px;
  364. height: 2px;
  365. }
  366. div::-webkit-scrollbar-button {
  367. width: 0px;
  368. height: 0px;
  369. }
  370. div::-webkit-scrollbar-thumb {
  371. background: #e1e1e1;
  372. border: 0px none #ffffff;
  373. border-radius: 50px;
  374. }
  375. div::-webkit-scrollbar-thumb:hover {
  376. background: #ffffff;
  377. }
  378. div::-webkit-scrollbar-thumb:active {
  379. background: #000000;
  380. }
  381. div::-webkit-scrollbar-track {
  382. background: #666666;
  383. border: 0px none #ffffff;
  384. border-radius: 50px;
  385. }
  386. div::-webkit-scrollbar-track:hover {
  387. background: #666666;
  388. }
  389. div::-webkit-scrollbar-track:active {
  390. background: #333333;
  391. }
  392. div::-webkit-scrollbar-corner {
  393. background: transparent;
  394. }
  395. .switcher-button {
  396. position: relative;
  397. display: block;
  398. background-color: #222;
  399. color: #eee;
  400. border: 5px;
  401. border-color: #666;
  402. border-style: solid;
  403. user-select: none;
  404. }
  405. .switcher-button-disabled {
  406. background-color: #111;
  407. color: #999;
  408. }
  409. .switcher-button:hover {
  410. border-color: #777;
  411. background-color: #222;
  412. }
  413. .switcher-button:active {
  414. border-color: #333;
  415. background-color: #111;
  416. }