cookie clicker but bigger
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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