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

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