cookie clicker but bigger
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

375 lines
5.4 KiB

  1. body {
  2. font-family: Sans-Serif;
  3. user-select: none;
  4. -moz-user-select: none;
  5. touch-action: manipulation;
  6. }
  7. body.dark {
  8. background: #111;
  9. color: #eee;
  10. }
  11. .hidden {
  12. display: none !important;
  13. }
  14. button {
  15. background-color: #444;
  16. color: #eee;
  17. }
  18. #tasty-micro {
  19. color: #ddd;
  20. background-color: #211;
  21. width: 300px;
  22. height: 200px;
  23. position: relative;
  24. top: 30px;
  25. margin: auto;
  26. font-size: 60px;
  27. }
  28. #top-bar {
  29. font-size: 36px;
  30. background-color: #322;
  31. position: absolute;
  32. width: 100%;
  33. height: 10%;
  34. top: 0%;
  35. left: 0%;
  36. text-align: center;
  37. margin: auto;
  38. }
  39. #top-bar > button {
  40. font-size: 36px;
  41. }
  42. #resources-area {
  43. position: absolute;
  44. text-align: center;
  45. width: 35%;
  46. left: 0%;
  47. top: 10%;
  48. height: 90%;
  49. margin: auto;
  50. font-size: 36px;
  51. }
  52. .resource-quantity {
  53. font-size: 30px;
  54. }
  55. .resource-rate {
  56. font-size: 18px;
  57. color: #bbb;
  58. }
  59. #buildings-area {
  60. position: absolute;
  61. width: 20%;
  62. right: 5%;
  63. top: 10%;
  64. height: 90%;
  65. overflow-x: hidden;
  66. overflow-y: scroll;
  67. }
  68. @media (max-aspect-ratio: 1/1) {
  69. #buildings-area {
  70. top: 50%;
  71. left: 50%;
  72. width: 50%;
  73. height: 45%;
  74. }
  75. }
  76. #building-tooltip {
  77. position: fixed;
  78. width: 400px;
  79. background: #333;
  80. display: none;
  81. z-index: 1;
  82. left: 0px;
  83. top: 0px;
  84. }
  85. #building-tooltip-name {
  86. font-size: 24px;
  87. color: #eee;
  88. margin: 10px;
  89. top: 10px;
  90. left: 10px;
  91. }
  92. #building-tooltip-desc {
  93. font-size: 18px;
  94. color: #bbb;
  95. margin: 10px;
  96. left: 10px;
  97. }
  98. #building-tooltip-cost {
  99. position: absolute;
  100. top: 10px;
  101. right: 10px;
  102. font-size: 20px;
  103. }
  104. #building-tooltip-prod {
  105. font-size: 14px;
  106. color: #ccc;
  107. margin: 10px;
  108. }
  109. .building-button {
  110. position: relative;
  111. display: block;
  112. width: 90%;
  113. height: 75px;
  114. background-color: #222;
  115. color: #eee;
  116. border: 5px;
  117. border-color: #666;
  118. border-style: solid;
  119. user-select: none;
  120. }
  121. .building-button-disabled {
  122. background-color: #111;
  123. color: #999;
  124. }
  125. .building-button-name {
  126. font-size: 24px;
  127. position: absolute;
  128. left: 10%;
  129. top: 15%;
  130. user-select: none;
  131. -moz-user-select: none;
  132. }
  133. .building-button-cost {
  134. font-size: 18px;
  135. position: absolute;
  136. left: 10%;
  137. bottom: 15%;
  138. }
  139. .building-button-cost-invalid {
  140. color: #f22;
  141. }
  142. .building-button-cost-valid {
  143. color: #1a1;
  144. }
  145. .building-button:hover {
  146. background-color: #333;
  147. }
  148. .building-button-disabled:hover {
  149. background-color: #111 !important;
  150. }
  151. .building-button:active {
  152. border-color: #333;
  153. background-color: #111;
  154. }
  155. .building-button-disabled:active {
  156. background-color: #111 !important;
  157. border-color: #666 !important;
  158. }
  159. #upgrades-area {
  160. position: absolute;
  161. width: 20%;
  162. right: 35%;
  163. top: 10%;
  164. }
  165. @media (max-aspect-ratio: 1/1) {
  166. #upgrades-area {
  167. position: absolute;
  168. left: 50%;
  169. height: 35%;
  170. width: 50%;
  171. }
  172. }
  173. .title {
  174. font-size: 48px;
  175. height: 10%;
  176. text-align: center;
  177. }
  178. #upgrades-list {
  179. display: flex;
  180. flex-wrap: wrap;
  181. height: 100%;
  182. overflow-x: hidden;
  183. overflow-y: scroll;
  184. }
  185. #upgrade-tooltip {
  186. position: absolute;
  187. width: 200px;
  188. background: #333;
  189. display: none;
  190. z-index: 1;
  191. left: 0px;
  192. top: 0px;
  193. }
  194. #upgrade-tooltip-name {
  195. font-size: 24px;
  196. color: #eee;
  197. margin: 10px;
  198. top: 50%;
  199. left: 10px;
  200. }
  201. #upgrade-tooltip-desc {
  202. font-size: 14px;
  203. color: #bbb;
  204. margin: 10px;
  205. }
  206. #upgrade-tooltip-effect {
  207. font-size: 20px;
  208. margin: 10px;
  209. }
  210. #upgrade-tooltip-cost {
  211. margin: 10px;
  212. }
  213. #upgrade-tooltip-prereqs {
  214. margin: 10px;
  215. }
  216. .cost-met {
  217. color: #0f0;
  218. }
  219. .cost-unmet {
  220. color: #f00;
  221. }
  222. .upgrade-button {
  223. width: 100px;
  224. height: 100px;
  225. margin: 10px;
  226. display: block;
  227. background-color: #444;
  228. }
  229. @media (max-aspect-ratio: 1/1) {
  230. .upgrade-button {
  231. width: 13vw;
  232. height: 13vw;
  233. }
  234. }
  235. .upgrade-button-inactive {
  236. background-color: #222 !important;
  237. color: #999 !important;
  238. }
  239. .upgrade-button-name {
  240. pointer-events: none;
  241. position: relative;
  242. text-align: center;
  243. width: 100px;
  244. height: 100px;
  245. top: 50%;
  246. bottom: 50%;
  247. right: 50%;
  248. left: 50%;
  249. margin: -25px -50px;
  250. }
  251. .click-popup-food {
  252. pointer-events: none;
  253. transform-origin: -100% 50%;
  254. text-align: center;
  255. position: fixed;
  256. animation: click-popup-food 2s linear;
  257. animation-fill-mode: both;
  258. font-size: 36px;
  259. --target: -200px;
  260. }
  261. .click-popup-gulp {
  262. pointer-events: none;
  263. transform-origin: -100% 50%;
  264. text-align: center;
  265. position: fixed;
  266. animation: click-popup-gulp 2s linear;
  267. animation-fill-mode: both;
  268. font-size: 36px;
  269. --target: 200px;
  270. }
  271. @keyframes click-popup-food {
  272. 0% {
  273. transform: translate(0px, 0px) scale(1, 1);
  274. opacity: 1;
  275. }
  276. 100% {
  277. transform: translate(var(--target), -200px) scale(0.5, 0.5);
  278. opacity: 0;
  279. }
  280. }
  281. @keyframes click-popup-gulp {
  282. 0% {
  283. transform: translate(0px, 0px) scale(1, 1);
  284. opacity: 1;
  285. }
  286. 100% {
  287. transform: translate(var(--target), 200px) scale(0.5, 0.5);
  288. opacity: 0;
  289. }
  290. }
  291. div::-webkit-scrollbar {
  292. width: 3px;
  293. height: 2px;
  294. }
  295. div::-webkit-scrollbar-button {
  296. width: 0px;
  297. height: 0px;
  298. }
  299. div::-webkit-scrollbar-thumb {
  300. background: #e1e1e1;
  301. border: 0px none #ffffff;
  302. border-radius: 50px;
  303. }
  304. div::-webkit-scrollbar-thumb:hover {
  305. background: #ffffff;
  306. }
  307. div::-webkit-scrollbar-thumb:active {
  308. background: #000000;
  309. }
  310. div::-webkit-scrollbar-track {
  311. background: #666666;
  312. border: 0px none #ffffff;
  313. border-radius: 50px;
  314. }
  315. div::-webkit-scrollbar-track:hover {
  316. background: #666666;
  317. }
  318. div::-webkit-scrollbar-track:active {
  319. background: #333333;
  320. }
  321. div::-webkit-scrollbar-corner {
  322. background: transparent;
  323. }