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

755 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: 50vh;
  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: 25%;
  217. left: 5%;
  218. }
  219. body .news-text {
  220. top: 12%;
  221. left: 22.5%;
  222. max-width: 40vw;
  223. }
  224. #tasty-micro {
  225. width: 30vw;
  226. height: 30vw;
  227. font-size: 20vw;
  228. }
  229. body #tasty-micro:active {
  230. transform: scale(0.9, 0.9);
  231. transition: 0s;
  232. font-size: 15vw;
  233. }
  234. .title {
  235. font-size: 48px;
  236. text-align: center;
  237. }
  238. #upgrades-list {
  239. display: flex;
  240. flex-wrap: wrap;
  241. max-height: 25%;
  242. height: 25%;
  243. width: 400px;
  244. padding-bottom: 100px;
  245. overflow-x: hidden;
  246. overflow-y: overlay;
  247. }
  248. #upgrade-tooltip {
  249. position: absolute;
  250. width: 400px;
  251. background: #333;
  252. display: none;
  253. z-index: 1;
  254. left: 0px;
  255. top: 0px;
  256. }
  257. #upgrade-tooltip-name {
  258. font-size: 24px;
  259. color: #eee;
  260. margin: 10px;
  261. top: 50%;
  262. left: 10px;
  263. }
  264. #upgrade-tooltip-desc {
  265. font-size: 14px;
  266. color: #bbb;
  267. margin: 10px;
  268. quotes: '\201c' '\201d';
  269. font-style: italic;
  270. }
  271. #upgrade-tooltip-desc:before {
  272. content: open-quote;
  273. }
  274. #upgrade-tooltip-desc:after {
  275. content: close-quote;
  276. }
  277. #upgrade-tooltip-effect {
  278. font-size: 20px;
  279. margin: 10px;
  280. }
  281. #upgrade-tooltip-cost {
  282. margin: 10px;
  283. }
  284. #upgrade-tooltip-prereqs {
  285. margin: 10px;
  286. }
  287. .cost-met {
  288. color: #0f0;
  289. }
  290. .cost-unmet {
  291. color: #f00;
  292. }
  293. .upgrade-button {
  294. position: relative;
  295. width: 80px;
  296. height: 80px;
  297. display: block;
  298. background-color: #444;
  299. transition: 0.2s;
  300. text-align: center;
  301. box-shadow: inset 0px 0px 0px 2px black;
  302. }
  303. .upgrade-button > .fas {
  304. width: 100px;
  305. height: 100px;
  306. font-size: 60px;
  307. transform: translate(-50px, 10px);
  308. opacity: 0.8;
  309. pointer-events: none;
  310. position: absolute;
  311. }
  312. .upgrade-button:hover {
  313. background-color: #666;
  314. box-shadow: inset 0px 0px 0px 2px green;
  315. }
  316. .upgrade-button.upgrade-button-inactive {
  317. background-color: #222;
  318. }
  319. .upgrade-button.upgrade-button-inactive:hover {
  320. background-color: #333;
  321. box-shadow: inset 0px 0px 0px 2px red;
  322. }
  323. .upgrade-button-inactive .fas {
  324. opacity: 0.3;
  325. }
  326. .upgrade-button-name {
  327. pointer-events: none;
  328. position: relative;
  329. text-align: center;
  330. width: 100px;
  331. height: 100px;
  332. top: 50%;
  333. bottom: 50%;
  334. right: 50%;
  335. left: 50%;
  336. margin: -25px -50px;
  337. z-index: 1;
  338. font-weight: bold;
  339. overflow-wrap: break-word;
  340. }
  341. .click-popup-food {
  342. pointer-events: none;
  343. transform-origin: -100% 50%;
  344. text-align: center;
  345. position: fixed;
  346. animation: click-popup-food 2s linear;
  347. animation-fill-mode: both;
  348. font-size: 36px;
  349. --target: -200px;
  350. }
  351. .click-popup-gulp {
  352. pointer-events: none;
  353. transform-origin: -100% 50%;
  354. text-align: center;
  355. position: fixed;
  356. animation: click-popup-gulp 2s linear;
  357. animation-fill-mode: both;
  358. font-size: 36px;
  359. --target: 200px;
  360. }
  361. .click-popup-upgrade {
  362. pointer-events: none;
  363. transform-origin: -50% 50%;
  364. text-align: center;
  365. position: fixed;
  366. animation: click-popup-upgrade 2s linear;
  367. animation-fill-mode: both;
  368. font-size: 36px;
  369. --target: -200px;
  370. }
  371. .click-popup-info {
  372. pointer-events: none;
  373. text-align: center;
  374. position: fixed;
  375. transform-origin: 0% 0%;
  376. animation: click-popup-info 2s linear;
  377. animation-fill-mode: both;
  378. font-size: var(--font-size);
  379. --target: -200px;
  380. --font-size: 36px;
  381. }
  382. @keyframes click-popup-food {
  383. 0% {
  384. transform: translate(0px, 0px) scale(1, 1);
  385. opacity: 1;
  386. }
  387. 100% {
  388. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  389. opacity: 0;
  390. }
  391. }
  392. @keyframes click-popup-gulp {
  393. 0% {
  394. transform: translate(0px, 0px) scale(1, 1);
  395. opacity: 1;
  396. }
  397. 100% {
  398. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  399. opacity: 0;
  400. }
  401. }
  402. @keyframes click-popup-upgrade {
  403. 0% {
  404. transform: translate(0px, 0px) scale(1, 1);
  405. opacity: 1;
  406. }
  407. 100% {
  408. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  409. opacity: 0;
  410. }
  411. }
  412. @keyframes click-popup-info {
  413. 0% {
  414. transform: translate(0px, 0px) scale(1, 1);
  415. opacity: 1;
  416. }
  417. 100% {
  418. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  419. opacity: 0;
  420. }
  421. }
  422. div::-webkit-scrollbar {
  423. width: 3px;
  424. height: 2px;
  425. }
  426. div::-webkit-scrollbar-button {
  427. width: 0px;
  428. height: 0px;
  429. }
  430. div::-webkit-scrollbar-thumb {
  431. background: #e1e1e1;
  432. border: 0px none #ffffff;
  433. border-radius: 50px;
  434. }
  435. div::-webkit-scrollbar-thumb:hover {
  436. background: #ffffff;
  437. }
  438. div::-webkit-scrollbar-thumb:active {
  439. background: #000000;
  440. }
  441. div::-webkit-scrollbar-track {
  442. background: #00000000;
  443. border: 0px none #ffffff;
  444. border-radius: 50px;
  445. }
  446. div::-webkit-scrollbar-track:hover {
  447. background: #666666;
  448. }
  449. div::-webkit-scrollbar-track:active {
  450. background: #333333;
  451. }
  452. div::-webkit-scrollbar-corner {
  453. background: transparent;
  454. }
  455. .switcher-button {
  456. position: relative;
  457. display: block;
  458. background-color: #222;
  459. color: #eee;
  460. border: 5px;
  461. border-color: #666;
  462. border-style: solid;
  463. user-select: none;
  464. }
  465. .switcher-button-disabled {
  466. background-color: #111;
  467. color: #999;
  468. }
  469. .switcher-button:hover {
  470. border-color: #777;
  471. background-color: #222;
  472. }
  473. .switcher-button:active {
  474. border-color: #333;
  475. background-color: #111;
  476. }
  477. .news-text {
  478. text-align: center;
  479. position: fixed;
  480. top: 15vh;
  481. left: 50vw;
  482. transform-origin: 0% 0%;
  483. animation: news-text-frames 7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  484. animation-fill-mode: both;
  485. font-size: 24px;
  486. }
  487. @keyframes news-text-frames {
  488. 0% {
  489. transform: translate(-50%, -50px);
  490. opacity: 0;
  491. }
  492. 20% {
  493. transform: translate(-50%, 0px);
  494. opacity: 1;
  495. }
  496. 80% {
  497. transform: translate(-50%, -0px);
  498. opacity: 1;
  499. }
  500. 100% {
  501. transform: translate(-50%, 50px);
  502. opacity: 0;
  503. }
  504. }
  505. .powerup {
  506. position: fixed;
  507. --leftpos: 50%;
  508. --toppos: 50%;
  509. --lifetime: 10s;
  510. left: var(--leftpos);
  511. top: var(--toppos);
  512. width: 125px;
  513. height: 125px;
  514. font-size: 80px;
  515. animation: powerup-frames var(--lifetime) linear;
  516. transition: 0.25s;
  517. border-radius: 50%;
  518. background: #611;
  519. border: 150px;
  520. z-index: 10;
  521. }
  522. .powerup:hover {
  523. transform: scale(1.25, 1.25);
  524. }
  525. .powerup:active {
  526. transform: scale(0, 0);
  527. }
  528. .powerup.powerup-clicked {
  529. transform: scale(0, 0);
  530. pointer-events: none;
  531. }
  532. @keyframes powerup-frames {
  533. 0% {
  534. opacity: 0;
  535. }
  536. 20% {
  537. opacity: 1;
  538. }
  539. 80% {
  540. opacity: 1;
  541. }
  542. 100% {
  543. opacity: 0;
  544. }
  545. }
  546. .powerup > .fas {
  547. width: 100%;
  548. height: 100%;
  549. text-align: center;
  550. color: green;
  551. transform: translate(0, 17.5px);
  552. }
  553. #powerups {
  554. margin-top: 100px;
  555. }
  556. #powerup-list {
  557. }
  558. .powerup-entry {
  559. --progress: 0%;
  560. background: linear-gradient(to left, #000 0%, #000 var(--progress), #555 var(--progress), #555 100%);
  561. transition: 1s;
  562. height: 50px;
  563. max-height: 50px;
  564. }
  565. .powerup-entry-done {
  566. transform: scale(1, 0);
  567. max-height: 0px;
  568. }
  569. #changelog-link a {
  570. position: fixed;
  571. left: 0%;
  572. top: 0%;
  573. height: 10vh;
  574. z-index: 2;
  575. font-size: 36px;
  576. }
  577. #discord-link img {
  578. position: fixed;
  579. right: 0%;
  580. top: 0%;
  581. height: 10vh;
  582. z-index: 2;
  583. }
  584. @media (max-aspect-ratio: 1/1) {
  585. body #changelog-link a {
  586. top: auto;
  587. bottom: 0%;
  588. z-index: 2;
  589. }
  590. body #discord-link img {
  591. top: auto;
  592. bottom: 0%;
  593. z-index: 2;
  594. }
  595. }
  596. .modal {
  597. position: absolute;
  598. z-index: 3;
  599. background: rgba(0, 0, 0, 0.7);
  600. top: 0%;
  601. left: 0%;
  602. height: 100%;
  603. width: 100%;
  604. display: none;
  605. }
  606. .modal .modal-contents {
  607. position: absolute;
  608. width: 60%;
  609. height: 60%;
  610. text-align: center;
  611. vertical-align: middle;
  612. top: 50%;
  613. left: 50%;
  614. transform: translate(-50%, -50%);
  615. }
  616. .modal.modal-active {
  617. display: block;
  618. }
  619. .modal-exit {
  620. width: 15vw;
  621. height: 7.5vh;
  622. font-size: 3vh;
  623. }
  624. .stat-line,
  625. .option-line {
  626. font-size: 18px;
  627. width: 100%;
  628. height: 24px;
  629. }
  630. .stat-line:nth-child(even),
  631. .option-line:nth-child(even) {
  632. background: #333;
  633. }
  634. .stat-line:nth-child(odd),
  635. .option-line:nth-child(odd) {
  636. background: #222;
  637. }
  638. .stat-name,
  639. .option-name {
  640. width: 50%;
  641. float: left;
  642. }
  643. .stat-value,
  644. .option-value {
  645. width: 50%;
  646. max-width: 50%;
  647. box-sizing: border-box;
  648. float: right;
  649. }