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

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