cookie clicker but bigger
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

708 行
10 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: 3vh;
  42. }
  43. #resources-area {
  44. position: absolute;
  45. text-align: center;
  46. width: 35%;
  47. left: 0%;
  48. top: 20%;
  49. height: 80%;
  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. #upgrades-area {
  61. position: absolute;
  62. width: 400px;
  63. right: 5%;
  64. top: 15%;
  65. height: 25%;
  66. }
  67. #buildings-area {
  68. position: absolute;
  69. width: 400px;
  70. right: 5%;
  71. top: 40%;
  72. height: 80%;
  73. max-height: 70vh;
  74. padding-bottom: 10px;
  75. }
  76. #buildings-list {
  77. overflow-x: hidden;
  78. overflow-y: scroll;
  79. max-height: 70vh;
  80. max-width: 400px;
  81. }
  82. #building-tooltip {
  83. position: fixed;
  84. width: 400px;
  85. background: #333;
  86. display: none;
  87. z-index: 1;
  88. left: 0px;
  89. top: 0px;
  90. }
  91. #building-tooltip-name {
  92. font-size: 24px;
  93. color: #eee;
  94. margin: 10px;
  95. top: 10px;
  96. left: 10px;
  97. }
  98. #building-tooltip-desc {
  99. font-size: 18px;
  100. color: #bbb;
  101. margin: 10px;
  102. left: 10px;
  103. }
  104. #building-tooltip-cost {
  105. position: absolute;
  106. top: 10px;
  107. right: 10px;
  108. font-size: 20px;
  109. }
  110. #building-tooltip-prod {
  111. font-size: 14px;
  112. color: #ccc;
  113. margin: 10px;
  114. }
  115. #powerup-tooltip {
  116. position: fixed;
  117. width: 400px;
  118. background: #333;
  119. display: none;
  120. z-index: 1;
  121. left: 0px;
  122. top: 0px;
  123. }
  124. #powerup-tooltip-name {
  125. font-size: 24px;
  126. color: #eee;
  127. margin: 10px;
  128. top: 10px;
  129. left: 10px;
  130. }
  131. #powerup-tooltip-desc {
  132. font-size: 18px;
  133. color: #bbb;
  134. margin: 10px;
  135. left: 10px;
  136. }
  137. .building-button {
  138. position: relative;
  139. display: block;
  140. width: 90%;
  141. height: 75px;
  142. background-color: #222;
  143. color: #eee;
  144. border: 5px;
  145. border-color: #666;
  146. border-style: solid;
  147. user-select: none;;
  148. }
  149. .building-button > .fas {
  150. text-align: center;
  151. width: 100%;
  152. height: 100%;
  153. left: 25%;
  154. transform: translate(25px, 5px);
  155. position: absolute;
  156. font-size: 60px;
  157. }
  158. .building-button-disabled {
  159. background-color: #111;
  160. color: #999;
  161. }
  162. .building-button-name {
  163. font-size: 24px;
  164. position: absolute;
  165. left: 10%;
  166. top: 15%;
  167. user-select: none;
  168. -moz-user-select: none;
  169. }
  170. .building-button-cost {
  171. font-size: 18px;
  172. position: absolute;
  173. left: 10%;
  174. bottom: 15%;
  175. }
  176. .building-button-cost-invalid {
  177. color: #f22;
  178. }
  179. .building-button-cost-valid {
  180. color: #1a1;
  181. }
  182. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  183. opacity: 1;
  184. }
  185. #buildings-area:hover > .building-button:hover {
  186. opacity: 1;
  187. }
  188. #buildings-area:hover > .building-button:not(:hover) {
  189. opacity: 0.6;
  190. }
  191. .building-button-disabled:hover {
  192. background-color: #111 !important;
  193. }
  194. .building-button:active {
  195. border-color: #333;
  196. background-color: #111;
  197. }
  198. .building-button-disabled:active {
  199. background-color: #111 !important;
  200. border-color: #666 !important;
  201. }
  202. @media (max-aspect-ratio: 1/1) {
  203. #resources-area {
  204. top: 15%;
  205. left: 5%;
  206. }
  207. #tasty-micro {
  208. width: 30vw;
  209. }
  210. }
  211. .title {
  212. font-size: 48px;
  213. text-align: center;
  214. }
  215. #upgrades-list {
  216. display: flex;
  217. flex-wrap: wrap;
  218. max-height: 25%;
  219. height: 25%;
  220. width: 400px;
  221. padding-bottom: 100px;
  222. overflow-x: hidden;
  223. overflow-y: overlay;
  224. }
  225. #upgrade-tooltip {
  226. position: absolute;
  227. width: 400px;
  228. background: #333;
  229. display: none;
  230. z-index: 1;
  231. left: 0px;
  232. top: 0px;
  233. }
  234. #upgrade-tooltip-name {
  235. font-size: 24px;
  236. color: #eee;
  237. margin: 10px;
  238. top: 50%;
  239. left: 10px;
  240. }
  241. #upgrade-tooltip-desc {
  242. font-size: 14px;
  243. color: #bbb;
  244. margin: 10px;
  245. }
  246. #upgrade-tooltip-effect {
  247. font-size: 20px;
  248. margin: 10px;
  249. }
  250. #upgrade-tooltip-cost {
  251. margin: 10px;
  252. }
  253. #upgrade-tooltip-prereqs {
  254. margin: 10px;
  255. }
  256. .cost-met {
  257. color: #0f0;
  258. }
  259. .cost-unmet {
  260. color: #f00;
  261. }
  262. .upgrade-button {
  263. width: 80px;
  264. height: 80px;
  265. display: block;
  266. background-color: #444;
  267. transition: 0.2s;
  268. text-align: center;
  269. box-shadow: inset 0px 0px 0px 2px black;
  270. }
  271. .upgrade-button > .fas {
  272. width: 100px;
  273. height: 100px;
  274. font-size: 60px;
  275. transform: translate(-10px, 10px);
  276. opacity: 0.5;
  277. pointer-events: none;
  278. }
  279. .upgrade-button:hover {
  280. background-color: #666;
  281. box-shadow: inset 0px 0px 0px 2px red;
  282. }
  283. .upgrade-button-inactive {
  284. background-color: #222 !important;
  285. color: #999 !important;
  286. }
  287. .upgrade-button-name {
  288. pointer-events: none;
  289. position: relative;
  290. text-align: center;
  291. width: 100px;
  292. height: 100px;
  293. top: 50%;
  294. bottom: 50%;
  295. right: 50%;
  296. left: 50%;
  297. margin: -25px -50px;
  298. z-index: 1;
  299. font-weight: bold;
  300. overflow-wrap: break-word;
  301. }
  302. .click-popup-food {
  303. pointer-events: none;
  304. transform-origin: -100% 50%;
  305. text-align: center;
  306. position: fixed;
  307. animation: click-popup-food 2s linear;
  308. animation-fill-mode: both;
  309. font-size: 36px;
  310. --target: -200px;
  311. }
  312. .click-popup-gulp {
  313. pointer-events: none;
  314. transform-origin: -100% 50%;
  315. text-align: center;
  316. position: fixed;
  317. animation: click-popup-gulp 2s linear;
  318. animation-fill-mode: both;
  319. font-size: 36px;
  320. --target: 200px;
  321. }
  322. .click-popup-upgrade {
  323. pointer-events: none;
  324. transform-origin: -50% 50%;
  325. text-align: center;
  326. position: fixed;
  327. animation: click-popup-upgrade 2s linear;
  328. animation-fill-mode: both;
  329. font-size: 36px;
  330. --target: -200px;
  331. }
  332. .click-popup-info {
  333. pointer-events: none;
  334. text-align: center;
  335. position: fixed;
  336. transform-origin: 0% 0%;
  337. animation: click-popup-info 2s linear;
  338. animation-fill-mode: both;
  339. font-size: var(--font-size);
  340. --target: -200px;
  341. --font-size: 36px;
  342. }
  343. @keyframes click-popup-food {
  344. 0% {
  345. transform: translate(0px, 0px) scale(1, 1);
  346. opacity: 1;
  347. }
  348. 100% {
  349. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  350. opacity: 0;
  351. }
  352. }
  353. @keyframes click-popup-gulp {
  354. 0% {
  355. transform: translate(0px, 0px) scale(1, 1);
  356. opacity: 1;
  357. }
  358. 100% {
  359. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  360. opacity: 0;
  361. }
  362. }
  363. @keyframes click-popup-upgrade {
  364. 0% {
  365. transform: translate(0px, 0px) scale(1, 1);
  366. opacity: 1;
  367. }
  368. 100% {
  369. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  370. opacity: 0;
  371. }
  372. }
  373. @keyframes click-popup-info {
  374. 0% {
  375. transform: translate(0px, 0px) scale(1, 1);
  376. opacity: 1;
  377. }
  378. 100% {
  379. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  380. opacity: 0;
  381. }
  382. }
  383. div::-webkit-scrollbar {
  384. width: 3px;
  385. height: 2px;
  386. }
  387. div::-webkit-scrollbar-button {
  388. width: 0px;
  389. height: 0px;
  390. }
  391. div::-webkit-scrollbar-thumb {
  392. background: #e1e1e1;
  393. border: 0px none #ffffff;
  394. border-radius: 50px;
  395. }
  396. div::-webkit-scrollbar-thumb:hover {
  397. background: #ffffff;
  398. }
  399. div::-webkit-scrollbar-thumb:active {
  400. background: #000000;
  401. }
  402. div::-webkit-scrollbar-track {
  403. background: #00000000;
  404. border: 0px none #ffffff;
  405. border-radius: 50px;
  406. }
  407. div::-webkit-scrollbar-track:hover {
  408. background: #666666;
  409. }
  410. div::-webkit-scrollbar-track:active {
  411. background: #333333;
  412. }
  413. div::-webkit-scrollbar-corner {
  414. background: transparent;
  415. }
  416. .switcher-button {
  417. position: relative;
  418. display: block;
  419. background-color: #222;
  420. color: #eee;
  421. border: 5px;
  422. border-color: #666;
  423. border-style: solid;
  424. user-select: none;
  425. }
  426. .switcher-button-disabled {
  427. background-color: #111;
  428. color: #999;
  429. }
  430. .switcher-button:hover {
  431. border-color: #777;
  432. background-color: #222;
  433. }
  434. .switcher-button:active {
  435. border-color: #333;
  436. background-color: #111;
  437. }
  438. .news-text {
  439. text-align: center;
  440. position: fixed;
  441. top: 98vh;
  442. left: 50vw;
  443. transform-origin: 0% 0%;
  444. animation: news-text-frames 7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  445. animation-fill-mode: both;
  446. font-size: 24px;
  447. }
  448. @keyframes news-text-frames {
  449. 0% {
  450. transform: translate(-50%, 0px);
  451. opacity: 0;
  452. }
  453. 20% {
  454. transform: translate(-50%, -100px);
  455. opacity: 1;
  456. }
  457. 80% {
  458. transform: translate(-50%, -100px);
  459. opacity: 1;
  460. }
  461. 100% {
  462. transform: translate(-50%, 0px);
  463. opacity: 0;
  464. }
  465. }
  466. .powerup {
  467. position: fixed;
  468. --leftpos: 50%;
  469. --toppos: 50%;
  470. --lifetime: 10s;
  471. left: var(--leftpos);
  472. top: var(--toppos);
  473. width: 125px;
  474. height: 125px;
  475. font-size: 80px;
  476. animation: powerup-frames var(--lifetime) linear;
  477. transition: 0.25s;
  478. border-radius: 50%;
  479. background: #611;
  480. border: 150px;
  481. z-index: 10;
  482. }
  483. .powerup:hover {
  484. transform: scale(1.25, 1.25);
  485. }
  486. .powerup:active {
  487. transform: scale(0, 0);
  488. }
  489. .powerup.powerup-clicked {
  490. transform: scale(0, 0);
  491. pointer-events: none;
  492. }
  493. @keyframes powerup-frames {
  494. 0% {
  495. opacity: 0;
  496. }
  497. 20% {
  498. opacity: 1;
  499. }
  500. 80% {
  501. opacity: 1;
  502. }
  503. 100% {
  504. opacity: 0;
  505. }
  506. }
  507. .powerup > .fas {
  508. width: 100%;
  509. height: 100%;
  510. text-align: center;
  511. color: green;
  512. transform: translate(0, 17.5px);
  513. }
  514. #powerups {
  515. margin-top: 100px;
  516. }
  517. #powerup-list {
  518. }
  519. .powerup-entry {
  520. --progress: 0%;
  521. background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%);
  522. transition: 1s;
  523. height: 50px;
  524. max-height: 50px;
  525. }
  526. .powerup-entry-done {
  527. transform: scale(1, 0);
  528. max-height: 0px;
  529. }
  530. #changelog-link a {
  531. position: fixed;
  532. left: 0%;
  533. top: 0%;
  534. height: 10vh;
  535. z-index: 2;
  536. font-size: 36px;
  537. }
  538. #discord-link img {
  539. position: fixed;
  540. right: 0%;
  541. top: 0%;
  542. height: 10vh;
  543. z-index: 2;
  544. }
  545. @media (max-aspect-ratio: 1/1) {
  546. body #changelog-link a {
  547. top: auto;
  548. bottom: 0%;
  549. z-index: 2;
  550. }
  551. body #discord-link img {
  552. top: auto;
  553. bottom: 0%;
  554. z-index: 2;
  555. }
  556. }
  557. .modal {
  558. position: absolute;
  559. z-index: 3;
  560. background: rgba(0, 0, 0, 0.7);
  561. top: 0%;
  562. left: 0%;
  563. height: 100%;
  564. width: 100%;
  565. display: none;
  566. }
  567. .modal .modal-contents {
  568. position: absolute;
  569. width: 60%;
  570. height: 60%;
  571. text-align: center;
  572. vertical-align: middle;
  573. top: 50%;
  574. left: 50%;
  575. transform: translate(-50%, -50%);
  576. }
  577. .modal.modal-active {
  578. display: block;
  579. }
  580. .modal-exit {
  581. width: 15vw;
  582. height: 7.5vh;
  583. font-size: 3vh;
  584. }
  585. .stat-line,
  586. .option-line {
  587. font-size: 18px;
  588. width: 100%;
  589. height: 24px;
  590. }
  591. .stat-line:nth-child(even),
  592. .option-line:nth-child(even) {
  593. background: #333;
  594. }
  595. .stat-line:nth-child(odd),
  596. .option-line:nth-child(odd) {
  597. background: #222;
  598. }
  599. .stat-name,
  600. .option-name {
  601. width: 50%;
  602. float: left;
  603. }
  604. .stat-value,
  605. .option-value {
  606. width: 50%;
  607. max-width: 50%;
  608. box-sizing: border-box;
  609. float: right;
  610. }