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

497 lines
7.5 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. }
  73. @media (max-aspect-ratio: 1/1) {
  74. #buildings-area {
  75. top: 50%;
  76. left: 50%;
  77. width: 50%;
  78. height: 45%;
  79. max-height: 40vh;
  80. }
  81. #buildings-list {
  82. max-height: 40vh;
  83. }
  84. }
  85. #building-tooltip {
  86. position: fixed;
  87. width: 400px;
  88. background: #333;
  89. display: none;
  90. z-index: 1;
  91. left: 0px;
  92. top: 0px;
  93. }
  94. #building-tooltip-name {
  95. font-size: 24px;
  96. color: #eee;
  97. margin: 10px;
  98. top: 10px;
  99. left: 10px;
  100. }
  101. #building-tooltip-desc {
  102. font-size: 18px;
  103. color: #bbb;
  104. margin: 10px;
  105. left: 10px;
  106. }
  107. #building-tooltip-cost {
  108. position: absolute;
  109. top: 10px;
  110. right: 10px;
  111. font-size: 20px;
  112. }
  113. #building-tooltip-prod {
  114. font-size: 14px;
  115. color: #ccc;
  116. margin: 10px;
  117. }
  118. .building-button {
  119. position: relative;
  120. display: block;
  121. width: 90%;
  122. height: 75px;
  123. background-color: #222;
  124. color: #eee;
  125. border: 5px;
  126. border-color: #666;
  127. border-style: solid;
  128. user-select: none;;
  129. }
  130. .building-button > .fas {
  131. text-align: center;
  132. width: 100%;
  133. height: 100%;
  134. left: 25%;
  135. transform: translate(0, 5px);
  136. position: absolute;
  137. font-size: 60px;
  138. }
  139. .building-button-disabled {
  140. background-color: #111;
  141. color: #999;
  142. }
  143. .building-button-name {
  144. font-size: 24px;
  145. position: absolute;
  146. left: 10%;
  147. top: 15%;
  148. user-select: none;
  149. -moz-user-select: none;
  150. }
  151. .building-button-cost {
  152. font-size: 18px;
  153. position: absolute;
  154. left: 10%;
  155. bottom: 15%;
  156. }
  157. .building-button-cost-invalid {
  158. color: #f22;
  159. }
  160. .building-button-cost-valid {
  161. color: #1a1;
  162. }
  163. #buildings-area:hover > #buildings:hover ~ .building-button:not(:hover) {
  164. opacity: 1;
  165. }
  166. #buildings-area:hover > .building-button:hover {
  167. opacity: 1;
  168. }
  169. #buildings-area:hover > .building-button:not(:hover) {
  170. opacity: 0.6;
  171. }
  172. .building-button-disabled:hover {
  173. background-color: #111 !important;
  174. }
  175. .building-button:active {
  176. border-color: #333;
  177. background-color: #111;
  178. }
  179. .building-button-disabled:active {
  180. background-color: #111 !important;
  181. border-color: #666 !important;
  182. }
  183. #upgrades-area {
  184. position: absolute;
  185. width: 20%;
  186. right: 35%;
  187. top: 10%;
  188. }
  189. @media (max-aspect-ratio: 1/1) {
  190. #upgrades-area {
  191. position: absolute;
  192. left: 50%;
  193. height: 35%;
  194. width: 50%;
  195. }
  196. #upgrades-list {
  197. max-height: 25vh !important;
  198. }
  199. }
  200. .title {
  201. font-size: 48px;
  202. height: 10%;
  203. text-align: center;
  204. }
  205. #upgrades-list {
  206. display: flex;
  207. flex-wrap: wrap;
  208. max-height: 70vh;
  209. padding-bottom: 75px;
  210. overflow-x: hidden;
  211. overflow-y: scroll;
  212. }
  213. #upgrade-tooltip {
  214. position: absolute;
  215. width: 200px;
  216. background: #333;
  217. display: none;
  218. z-index: 1;
  219. left: 0px;
  220. top: 0px;
  221. }
  222. #upgrade-tooltip-name {
  223. font-size: 24px;
  224. color: #eee;
  225. margin: 10px;
  226. top: 50%;
  227. left: 10px;
  228. }
  229. #upgrade-tooltip-desc {
  230. font-size: 14px;
  231. color: #bbb;
  232. margin: 10px;
  233. }
  234. #upgrade-tooltip-effect {
  235. font-size: 20px;
  236. margin: 10px;
  237. }
  238. #upgrade-tooltip-cost {
  239. margin: 10px;
  240. }
  241. #upgrade-tooltip-prereqs {
  242. margin: 10px;
  243. }
  244. .cost-met {
  245. color: #0f0;
  246. }
  247. .cost-unmet {
  248. color: #f00;
  249. }
  250. .upgrade-button {
  251. width: 100px;
  252. height: 100px;
  253. margin: 10px;
  254. display: block;
  255. background-color: #444;
  256. transition: 0.2s;
  257. text-align: center;
  258. }
  259. .upgrade-button > .fas {
  260. width: 100px;
  261. height: 100px;
  262. font-size: 75px;
  263. transform: translate(0%, -37.5%);
  264. opacity: 0.5;
  265. }
  266. .upgrade-button:hover {
  267. transform: scale(1.25, 1.25);
  268. }
  269. @media (max-aspect-ratio: 1/1) {
  270. .upgrade-button {
  271. width: 13vw;
  272. height: 13vw;
  273. }
  274. .upgrade-button > .fas {
  275. font-size: 10vw;
  276. }
  277. }
  278. .upgrade-button-inactive {
  279. background-color: #222 !important;
  280. color: #999 !important;
  281. }
  282. .upgrade-button-name {
  283. pointer-events: none;
  284. position: relative;
  285. text-align: center;
  286. width: 100px;
  287. height: 100px;
  288. top: 50%;
  289. bottom: 50%;
  290. right: 50%;
  291. left: 50%;
  292. margin: -25px -50px;
  293. z-index: 1;
  294. font-weight: bold;
  295. }
  296. .click-popup-food {
  297. pointer-events: none;
  298. transform-origin: -100% 50%;
  299. text-align: center;
  300. position: fixed;
  301. animation: click-popup-food 2s linear;
  302. animation-fill-mode: both;
  303. font-size: 36px;
  304. --target: -200px;
  305. }
  306. .click-popup-gulp {
  307. pointer-events: none;
  308. transform-origin: -100% 50%;
  309. text-align: center;
  310. position: fixed;
  311. animation: click-popup-gulp 2s linear;
  312. animation-fill-mode: both;
  313. font-size: 36px;
  314. --target: 200px;
  315. }
  316. .click-popup-upgrade {
  317. pointer-events: none;
  318. transform-origin: -50% 50%;
  319. text-align: center;
  320. position: fixed;
  321. animation: click-popup-upgrade 2s linear;
  322. animation-fill-mode: both;
  323. font-size: 36px;
  324. --target: -200px;
  325. }
  326. .click-popup-info {
  327. pointer-events: none;
  328. text-align: center;
  329. position: fixed;
  330. transform-origin: 0% 0%;
  331. animation: click-popup-info 2s linear;
  332. animation-fill-mode: both;
  333. font-size: 36px;
  334. --target: -200px;
  335. }
  336. @keyframes click-popup-food {
  337. 0% {
  338. transform: translate(0px, 0px) scale(1, 1);
  339. opacity: 1;
  340. }
  341. 100% {
  342. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  343. opacity: 0;
  344. }
  345. }
  346. @keyframes click-popup-gulp {
  347. 0% {
  348. transform: translate(0px, 0px) scale(1, 1);
  349. opacity: 1;
  350. }
  351. 100% {
  352. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  353. opacity: 0;
  354. }
  355. }
  356. @keyframes click-popup-upgrade {
  357. 0% {
  358. transform: translate(0px, 0px) scale(1, 1);
  359. opacity: 1;
  360. }
  361. 100% {
  362. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  363. opacity: 0;
  364. }
  365. }
  366. @keyframes click-popup-info {
  367. 0% {
  368. transform: translate(0px, 0px) scale(1, 1);
  369. opacity: 1;
  370. }
  371. 100% {
  372. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  373. opacity: 0;
  374. }
  375. }
  376. div::-webkit-scrollbar {
  377. width: 3px;
  378. height: 2px;
  379. }
  380. div::-webkit-scrollbar-button {
  381. width: 0px;
  382. height: 0px;
  383. }
  384. div::-webkit-scrollbar-thumb {
  385. background: #e1e1e1;
  386. border: 0px none #ffffff;
  387. border-radius: 50px;
  388. }
  389. div::-webkit-scrollbar-thumb:hover {
  390. background: #ffffff;
  391. }
  392. div::-webkit-scrollbar-thumb:active {
  393. background: #000000;
  394. }
  395. div::-webkit-scrollbar-track {
  396. background: #00000000;
  397. border: 0px none #ffffff;
  398. border-radius: 50px;
  399. }
  400. div::-webkit-scrollbar-track:hover {
  401. background: #666666;
  402. }
  403. div::-webkit-scrollbar-track:active {
  404. background: #333333;
  405. }
  406. div::-webkit-scrollbar-corner {
  407. background: transparent;
  408. }
  409. .switcher-button {
  410. position: relative;
  411. display: block;
  412. background-color: #222;
  413. color: #eee;
  414. border: 5px;
  415. border-color: #666;
  416. border-style: solid;
  417. user-select: none;
  418. }
  419. .switcher-button-disabled {
  420. background-color: #111;
  421. color: #999;
  422. }
  423. .switcher-button:hover {
  424. border-color: #777;
  425. background-color: #222;
  426. }
  427. .switcher-button:active {
  428. border-color: #333;
  429. background-color: #111;
  430. }