cookie clicker but bigger
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

582 lignes
8.9 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: 36px;
  335. --target: -200px;
  336. }
  337. @keyframes click-popup-food {
  338. 0% {
  339. transform: translate(0px, 0px) scale(1, 1);
  340. opacity: 1;
  341. }
  342. 100% {
  343. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  344. opacity: 0;
  345. }
  346. }
  347. @keyframes click-popup-gulp {
  348. 0% {
  349. transform: translate(0px, 0px) scale(1, 1);
  350. opacity: 1;
  351. }
  352. 100% {
  353. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  354. opacity: 0;
  355. }
  356. }
  357. @keyframes click-popup-upgrade {
  358. 0% {
  359. transform: translate(0px, 0px) scale(1, 1);
  360. opacity: 1;
  361. }
  362. 100% {
  363. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  364. opacity: 0;
  365. }
  366. }
  367. @keyframes click-popup-info {
  368. 0% {
  369. transform: translate(0px, 0px) scale(1, 1);
  370. opacity: 1;
  371. }
  372. 100% {
  373. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  374. opacity: 0;
  375. }
  376. }
  377. div::-webkit-scrollbar {
  378. width: 3px;
  379. height: 2px;
  380. }
  381. div::-webkit-scrollbar-button {
  382. width: 0px;
  383. height: 0px;
  384. }
  385. div::-webkit-scrollbar-thumb {
  386. background: #e1e1e1;
  387. border: 0px none #ffffff;
  388. border-radius: 50px;
  389. }
  390. div::-webkit-scrollbar-thumb:hover {
  391. background: #ffffff;
  392. }
  393. div::-webkit-scrollbar-thumb:active {
  394. background: #000000;
  395. }
  396. div::-webkit-scrollbar-track {
  397. background: #00000000;
  398. border: 0px none #ffffff;
  399. border-radius: 50px;
  400. }
  401. div::-webkit-scrollbar-track:hover {
  402. background: #666666;
  403. }
  404. div::-webkit-scrollbar-track:active {
  405. background: #333333;
  406. }
  407. div::-webkit-scrollbar-corner {
  408. background: transparent;
  409. }
  410. .switcher-button {
  411. position: relative;
  412. display: block;
  413. background-color: #222;
  414. color: #eee;
  415. border: 5px;
  416. border-color: #666;
  417. border-style: solid;
  418. user-select: none;
  419. }
  420. .switcher-button-disabled {
  421. background-color: #111;
  422. color: #999;
  423. }
  424. .switcher-button:hover {
  425. border-color: #777;
  426. background-color: #222;
  427. }
  428. .switcher-button:active {
  429. border-color: #333;
  430. background-color: #111;
  431. }
  432. .news-text {
  433. pointer-events: none;
  434. text-align: center;
  435. position: fixed;
  436. top: 90vh;
  437. left: 50vw;
  438. transform-origin: 0% 0%;
  439. animation: news-text-frames 10s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  440. animation-fill-mode: both;
  441. font-size: 24px;
  442. }
  443. @keyframes news-text-frames {
  444. 0% {
  445. transform: translate(-50%, 0px);
  446. opacity: 0;
  447. }
  448. 20% {
  449. transform: translate(-50%, -100px);
  450. opacity: 1;
  451. }
  452. 80% {
  453. transform: translate(-50%, -100px);
  454. opacity: 1;
  455. }
  456. 100% {
  457. transform: translate(-50%, 0px);
  458. opacity: 0;
  459. }
  460. }
  461. .powerup {
  462. position: fixed;
  463. --leftpos: 50%;
  464. --toppos: 50%;
  465. --lifetime: 10s;
  466. left: var(--leftpos);
  467. top: var(--toppos);
  468. width: 125px;
  469. height: 125px;
  470. font-size: 80px;
  471. animation: powerup-frames var(--lifetime) linear;
  472. transition: 0.25s;
  473. border-radius: 50%;
  474. background: #611;
  475. border: 150px;
  476. z-index: 10;
  477. }
  478. .powerup:hover {
  479. transform: scale(1.25, 1.25);
  480. }
  481. .powerup:active {
  482. transform: scale(0, 0);
  483. }
  484. .powerup.powerup-clicked {
  485. transform: scale(0, 0);
  486. pointer-events: none;
  487. }
  488. @keyframes powerup-frames {
  489. 0% {
  490. opacity: 0;
  491. }
  492. 20% {
  493. opacity: 1;
  494. }
  495. 80% {
  496. opacity: 1;
  497. }
  498. 100% {
  499. opacity: 0;
  500. }
  501. }
  502. .powerup > .fas {
  503. width: 100%;
  504. height: 100%;
  505. text-align: center;
  506. transform: translate(0, 17.5px);
  507. -webkit-text-stroke: 10px green;
  508. }