cookie clicker but bigger
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

530 lines
8.1 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. height: 10%;
  204. text-align: center;
  205. }
  206. #upgrades-list {
  207. display: flex;
  208. flex-wrap: wrap;
  209. max-height: 70vh;
  210. padding-bottom: 75px;
  211. overflow-x: hidden;
  212. overflow-y: scroll;
  213. }
  214. #upgrade-tooltip {
  215. position: absolute;
  216. width: 200px;
  217. background: #333;
  218. display: none;
  219. z-index: 1;
  220. left: 0px;
  221. top: 0px;
  222. }
  223. #upgrade-tooltip-name {
  224. font-size: 24px;
  225. color: #eee;
  226. margin: 10px;
  227. top: 50%;
  228. left: 10px;
  229. }
  230. #upgrade-tooltip-desc {
  231. font-size: 14px;
  232. color: #bbb;
  233. margin: 10px;
  234. }
  235. #upgrade-tooltip-effect {
  236. font-size: 20px;
  237. margin: 10px;
  238. }
  239. #upgrade-tooltip-cost {
  240. margin: 10px;
  241. }
  242. #upgrade-tooltip-prereqs {
  243. margin: 10px;
  244. }
  245. .cost-met {
  246. color: #0f0;
  247. }
  248. .cost-unmet {
  249. color: #f00;
  250. }
  251. .upgrade-button {
  252. width: 100px;
  253. height: 100px;
  254. margin: 10px;
  255. display: block;
  256. background-color: #444;
  257. transition: 0.2s;
  258. text-align: center;
  259. }
  260. .upgrade-button > .fas {
  261. width: 100px;
  262. height: 100px;
  263. font-size: 75px;
  264. transform: translate(0%, -37.5%);
  265. opacity: 0.5;
  266. }
  267. .upgrade-button:hover {
  268. transform: scale(1.25, 1.25);
  269. }
  270. @media (max-aspect-ratio: 1/1) {
  271. .upgrade-button {
  272. width: 13vw;
  273. height: 13vw;
  274. }
  275. .upgrade-button > .fas {
  276. font-size: 10vw;
  277. }
  278. }
  279. .upgrade-button-inactive {
  280. background-color: #222 !important;
  281. color: #999 !important;
  282. }
  283. .upgrade-button-name {
  284. pointer-events: none;
  285. position: relative;
  286. text-align: center;
  287. width: 100px;
  288. height: 100px;
  289. top: 50%;
  290. bottom: 50%;
  291. right: 50%;
  292. left: 50%;
  293. margin: -25px -50px;
  294. z-index: 1;
  295. font-weight: bold;
  296. overflow-wrap: break-word;
  297. }
  298. .click-popup-food {
  299. pointer-events: none;
  300. transform-origin: -100% 50%;
  301. text-align: center;
  302. position: fixed;
  303. animation: click-popup-food 2s linear;
  304. animation-fill-mode: both;
  305. font-size: 36px;
  306. --target: -200px;
  307. }
  308. .click-popup-gulp {
  309. pointer-events: none;
  310. transform-origin: -100% 50%;
  311. text-align: center;
  312. position: fixed;
  313. animation: click-popup-gulp 2s linear;
  314. animation-fill-mode: both;
  315. font-size: 36px;
  316. --target: 200px;
  317. }
  318. .click-popup-upgrade {
  319. pointer-events: none;
  320. transform-origin: -50% 50%;
  321. text-align: center;
  322. position: fixed;
  323. animation: click-popup-upgrade 2s linear;
  324. animation-fill-mode: both;
  325. font-size: 36px;
  326. --target: -200px;
  327. }
  328. .click-popup-info {
  329. pointer-events: none;
  330. text-align: center;
  331. position: fixed;
  332. transform-origin: 0% 0%;
  333. animation: click-popup-info 2s linear;
  334. animation-fill-mode: both;
  335. font-size: 36px;
  336. --target: -200px;
  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: 50vw;
  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. }