cookie clicker but bigger
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

473 Zeilen
7.1 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 > .building-icon {
  122. position: absolute;
  123. right: 0%;
  124. height: 75px;
  125. }
  126. .building-button-disabled {
  127. background-color: #111;
  128. color: #999;
  129. }
  130. .building-button-name {
  131. font-size: 24px;
  132. position: absolute;
  133. left: 10%;
  134. top: 15%;
  135. user-select: none;
  136. -moz-user-select: none;
  137. }
  138. .building-button-cost {
  139. font-size: 18px;
  140. position: absolute;
  141. left: 10%;
  142. bottom: 15%;
  143. }
  144. .building-button-cost-invalid {
  145. color: #f22;
  146. }
  147. .building-button-cost-valid {
  148. color: #1a1;
  149. }
  150. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  151. opacity: 1;
  152. }
  153. #buildings-area:hover > .building-button:hover {
  154. opacity: 1;
  155. }
  156. #buildings-area:hover > .building-button:not(:hover) {
  157. opacity: 0.6;
  158. }
  159. .building-button-disabled:hover {
  160. background-color: #111 !important;
  161. }
  162. .building-button:active {
  163. border-color: #333;
  164. background-color: #111;
  165. }
  166. .building-button-disabled:active {
  167. background-color: #111 !important;
  168. border-color: #666 !important;
  169. }
  170. #upgrades-area {
  171. position: absolute;
  172. width: 20%;
  173. right: 35%;
  174. top: 10%;
  175. }
  176. @media (max-aspect-ratio: 1/1) {
  177. #upgrades-area {
  178. position: absolute;
  179. left: 50%;
  180. height: 35%;
  181. width: 50%;
  182. }
  183. }
  184. .title {
  185. font-size: 48px;
  186. height: 10%;
  187. text-align: center;
  188. }
  189. #upgrades-list {
  190. display: flex;
  191. flex-wrap: wrap;
  192. height: 100%;
  193. overflow-x: hidden;
  194. overflow-y: scroll;
  195. }
  196. #upgrade-tooltip {
  197. position: absolute;
  198. width: 200px;
  199. background: #333;
  200. display: none;
  201. z-index: 1;
  202. left: 0px;
  203. top: 0px;
  204. }
  205. #upgrade-tooltip-name {
  206. font-size: 24px;
  207. color: #eee;
  208. margin: 10px;
  209. top: 50%;
  210. left: 10px;
  211. }
  212. #upgrade-tooltip-desc {
  213. font-size: 14px;
  214. color: #bbb;
  215. margin: 10px;
  216. }
  217. #upgrade-tooltip-effect {
  218. font-size: 20px;
  219. margin: 10px;
  220. }
  221. #upgrade-tooltip-cost {
  222. margin: 10px;
  223. }
  224. #upgrade-tooltip-prereqs {
  225. margin: 10px;
  226. }
  227. .cost-met {
  228. color: #0f0;
  229. }
  230. .cost-unmet {
  231. color: #f00;
  232. }
  233. .upgrade-button {
  234. width: 100px;
  235. height: 100px;
  236. margin: 10px;
  237. display: block;
  238. background-color: #444;
  239. transition: 0.2s;
  240. }
  241. .upgrade-button > .upgrade-icon {
  242. width: 100px;
  243. height: 100px;
  244. position: relative;
  245. top: -50px;
  246. opacity: 0.5;
  247. }
  248. .upgrade-button:hover {
  249. transform: scale(1.25, 1.25);
  250. }
  251. @media (max-aspect-ratio: 1/1) {
  252. .upgrade-button {
  253. width: 13vw;
  254. height: 13vw;
  255. }
  256. }
  257. .upgrade-button-inactive {
  258. background-color: #222 !important;
  259. color: #999 !important;
  260. }
  261. .upgrade-button-name {
  262. pointer-events: none;
  263. position: relative;
  264. text-align: center;
  265. width: 100px;
  266. height: 100px;
  267. top: 50%;
  268. bottom: 50%;
  269. right: 50%;
  270. left: 50%;
  271. margin: -25px -50px;
  272. z-index: 1;
  273. font-weight: bold;
  274. }
  275. .click-popup-food {
  276. pointer-events: none;
  277. transform-origin: -100% 50%;
  278. text-align: center;
  279. position: fixed;
  280. animation: click-popup-food 2s linear;
  281. animation-fill-mode: both;
  282. font-size: 36px;
  283. --target: -200px;
  284. }
  285. .click-popup-gulp {
  286. pointer-events: none;
  287. transform-origin: -100% 50%;
  288. text-align: center;
  289. position: fixed;
  290. animation: click-popup-gulp 2s linear;
  291. animation-fill-mode: both;
  292. font-size: 36px;
  293. --target: 200px;
  294. }
  295. .click-popup-upgrade {
  296. pointer-events: none;
  297. transform-origin: -50% 50%;
  298. text-align: center;
  299. position: fixed;
  300. animation: click-popup-upgrade 2s linear;
  301. animation-fill-mode: both;
  302. font-size: 36px;
  303. --target: -200px;
  304. }
  305. .click-popup-info {
  306. pointer-events: none;
  307. text-align: center;
  308. position: fixed;
  309. transform-origin: 0% 0%;
  310. animation: click-popup-info 2s linear;
  311. animation-fill-mode: both;
  312. font-size: 36px;
  313. --target: -200px;
  314. }
  315. @keyframes click-popup-food {
  316. 0% {
  317. transform: translate(0px, 0px) scale(1, 1);
  318. opacity: 1;
  319. }
  320. 100% {
  321. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  322. opacity: 0;
  323. }
  324. }
  325. @keyframes click-popup-gulp {
  326. 0% {
  327. transform: translate(0px, 0px) scale(1, 1);
  328. opacity: 1;
  329. }
  330. 100% {
  331. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  332. opacity: 0;
  333. }
  334. }
  335. @keyframes click-popup-upgrade {
  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-info {
  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. div::-webkit-scrollbar {
  356. width: 3px;
  357. height: 2px;
  358. }
  359. div::-webkit-scrollbar-button {
  360. width: 0px;
  361. height: 0px;
  362. }
  363. div::-webkit-scrollbar-thumb {
  364. background: #e1e1e1;
  365. border: 0px none #ffffff;
  366. border-radius: 50px;
  367. }
  368. div::-webkit-scrollbar-thumb:hover {
  369. background: #ffffff;
  370. }
  371. div::-webkit-scrollbar-thumb:active {
  372. background: #000000;
  373. }
  374. div::-webkit-scrollbar-track {
  375. background: #666666;
  376. border: 0px none #ffffff;
  377. border-radius: 50px;
  378. }
  379. div::-webkit-scrollbar-track:hover {
  380. background: #666666;
  381. }
  382. div::-webkit-scrollbar-track:active {
  383. background: #333333;
  384. }
  385. div::-webkit-scrollbar-corner {
  386. background: transparent;
  387. }
  388. .switcher-button {
  389. position: relative;
  390. display: block;
  391. background-color: #222;
  392. color: #eee;
  393. border: 5px;
  394. border-color: #666;
  395. border-style: solid;
  396. user-select: none;
  397. }
  398. .switcher-button-disabled {
  399. background-color: #111;
  400. color: #999;
  401. }
  402. .switcher-button:hover {
  403. border-color: #777;
  404. background-color: #222;
  405. }
  406. .switcher-button:active {
  407. border-color: #333;
  408. background-color: #111;
  409. }