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.
 
 
 
 

334 lines
4.6 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: 50%;
  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: 50%;
  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. }
  182. #upgrade-tooltip {
  183. position: absolute;
  184. width: 200px;
  185. background: #333;
  186. display: none;
  187. z-index: 1;
  188. left: 0px;
  189. top: 0px;
  190. }
  191. #upgrade-tooltip-name {
  192. font-size: 24px;
  193. color: #eee;
  194. margin: 10px;
  195. top: 50%;
  196. left: 10px;
  197. }
  198. #upgrade-tooltip-desc {
  199. font-size: 14px;
  200. color: #bbb;
  201. margin: 10px;
  202. }
  203. #upgrade-tooltip-effect {
  204. font-size: 20px;
  205. margin: 10px;
  206. }
  207. #upgrade-tooltip-cost {
  208. margin: 10px;
  209. }
  210. #upgrade-tooltip-prereqs {
  211. margin: 10px;
  212. }
  213. .cost-met {
  214. color: #0f0;
  215. }
  216. .cost-unmet {
  217. color: #f00;
  218. }
  219. .upgrade-button {
  220. width: 100px;
  221. height: 100px;
  222. margin: 10px;
  223. display: block;
  224. background-color: #444;
  225. }
  226. @media (max-aspect-ratio: 1/1) {
  227. .upgrade-button {
  228. width: 13vw;
  229. height: 13vw;
  230. }
  231. }
  232. .upgrade-button-inactive {
  233. background-color: #222 !important;
  234. color: #999 !important;
  235. }
  236. .upgrade-button-name {
  237. pointer-events: none;
  238. position: relative;
  239. text-align: center;
  240. width: 100px;
  241. height: 100px;
  242. top: 50%;
  243. bottom: 50%;
  244. right: 50%;
  245. left: 50%;
  246. margin: -25px -50px;
  247. }
  248. .click-popup-food {
  249. pointer-events: none;
  250. transform-origin: -100% 50%;
  251. text-align: center;
  252. position: fixed;
  253. animation: click-popup-food 2s linear;
  254. animation-fill-mode: both;
  255. font-size: 36px;
  256. }
  257. .click-popup-gulp {
  258. pointer-events: none;
  259. transform-origin: -100% 50%;
  260. text-align: center;
  261. position: fixed;
  262. animation: click-popup-gulp 2s linear;
  263. animation-fill-mode: both;
  264. font-size: 36px;
  265. }
  266. @keyframes click-popup-food {
  267. 0% {
  268. transform: translate(0px, 0px) scale(1, 1);
  269. opacity: 1;
  270. }
  271. 100% {
  272. transform: translate(0px, -200px) scale(0.5, 0.5);
  273. opacity: 0;
  274. }
  275. }
  276. @keyframes click-popup-gulp {
  277. 0% {
  278. transform: translate(0px, 0px) scale(1, 1);
  279. opacity: 1;
  280. }
  281. 100% {
  282. transform: translate(0px, 200px) scale(0.5, 0.5);
  283. opacity: 0;
  284. }
  285. }