TownUI.uss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /* Medieval Town UI Styles */
  2. /* Main Town Container */
  3. .town-container {
  4. width: 100%;
  5. height: 100%;
  6. background-color: rgb(101, 67, 33); /* Medieval brown background */
  7. }
  8. /* Header Styles */
  9. .town-header {
  10. background-color: rgb(139, 69, 19);
  11. padding: 10px;
  12. justify-content: space-between;
  13. flex-direction: row;
  14. border-bottom-width: 3px;
  15. border-bottom-color: rgb(101, 67, 33);
  16. min-height: 60px;
  17. }
  18. .town-title {
  19. font-size: 24px;
  20. color: rgb(255, 215, 0);
  21. -unity-font-style: bold;
  22. -unity-text-align: middle-left;
  23. }
  24. .header-controls {
  25. flex-direction: row;
  26. align-items: center;
  27. }
  28. .header-button {
  29. background-color: rgb(160, 82, 45);
  30. color: rgb(255, 255, 255);
  31. border-width: 2px;
  32. border-color: rgb(101, 67, 33);
  33. padding: 8px 16px;
  34. margin-left: 10px;
  35. border-radius: 5px;
  36. font-size: 14px;
  37. -unity-font-style: bold;
  38. }
  39. .header-button:hover {
  40. background-color: rgb(205, 133, 63);
  41. scale: 1.05;
  42. }
  43. /* Medieval Town Grid Layout */
  44. .town-grid {
  45. flex-grow: 1;
  46. padding: 20px;
  47. align-items: center;
  48. justify-content: center;
  49. }
  50. /* Town Walls */
  51. .town-wall-horizontal {
  52. height: 20px;
  53. background-color: rgb(75, 75, 75);
  54. width: 100%;
  55. border-top-width: 2px;
  56. border-bottom-width: 2px;
  57. border-color: rgb(55, 55, 55);
  58. margin: 5px 0;
  59. }
  60. /* Districts */
  61. .town-district {
  62. flex-direction: row;
  63. justify-content: space-around;
  64. align-items: flex-end;
  65. width: 100%;
  66. margin: 10px 0;
  67. min-height: 120px;
  68. }
  69. /* Streets */
  70. .main-street {
  71. height: 30px;
  72. background-color: rgb(160, 160, 160);
  73. width: 80%;
  74. align-self: center;
  75. margin: 5px 0;
  76. border-radius: 3px;
  77. }
  78. .side-street {
  79. height: 20px;
  80. background-color: rgb(140, 140, 140);
  81. width: 60%;
  82. align-self: center;
  83. margin: 5px 0;
  84. border-radius: 2px;
  85. }
  86. /* Base Building Styles */
  87. .town-building {
  88. width: 120px;
  89. height: 100px;
  90. border-width: 3px;
  91. border-color: rgb(101, 67, 33);
  92. margin: 5px;
  93. padding: 5px;
  94. justify-content: space-between;
  95. align-items: center;
  96. border-radius: 8px;
  97. position: relative;
  98. }
  99. .building-label {
  100. font-size: 12px;
  101. color: rgb(255, 255, 255);
  102. -unity-font-style: bold;
  103. -unity-text-align: middle-center;
  104. }
  105. /* Interactive Building Effects */
  106. .interactable-building {
  107. border-color: rgb(255, 215, 0);
  108. border-width: 4px;
  109. }
  110. .interactable-building:hover {
  111. scale: 1.1;
  112. border-color: rgb(255, 255, 255);
  113. }
  114. /* Shop Building Colors */
  115. .weapon-shop {
  116. background-color: rgb(178, 34, 34);
  117. }
  118. .armor-shop {
  119. background-color: rgb(70, 130, 180);
  120. }
  121. .potion-shop {
  122. background-color: rgb(138, 43, 226);
  123. }
  124. .general-shop {
  125. background-color: rgb(255, 140, 0);
  126. }
  127. /* Special Buildings */
  128. .castle {
  129. background-color: rgb(112, 128, 144);
  130. width: 180px;
  131. height: 140px;
  132. }
  133. .noble-house {
  134. background-color: rgb(188, 143, 143);
  135. width: 140px;
  136. height: 110px;
  137. }
  138. .guild {
  139. background-color: rgb(184, 134, 11);
  140. }
  141. .inn {
  142. background-color: rgb(160, 82, 45);
  143. }
  144. .harbor {
  145. background-color: rgb(72, 61, 139);
  146. }
  147. .town-house {
  148. background-color: rgb(205, 133, 63);
  149. width: 80px;
  150. height: 80px;
  151. }
  152. /* Town Square */
  153. .town-square {
  154. background-color: rgb(143, 188, 143);
  155. width: 150px;
  156. height: 120px;
  157. border-radius: 50%;
  158. justify-content: center;
  159. align-items: center;
  160. }
  161. .fountain {
  162. width: 40px;
  163. height: 40px;
  164. background-color: rgb(135, 206, 235);
  165. border-radius: 50%;
  166. border-width: 2px;
  167. border-color: rgb(169, 169, 169);
  168. }
  169. /* Shop Banners */
  170. .shop-banner {
  171. background-color: rgb(220, 20, 60);
  172. width: 110px;
  173. height: 20px;
  174. justify-content: center;
  175. align-items: center;
  176. border-radius: 3px;
  177. position: absolute;
  178. top: -15px;
  179. left: 5px;
  180. }
  181. .interaction-banner {
  182. background-color: rgb(255, 215, 0);
  183. width: 110px;
  184. height: 20px;
  185. justify-content: center;
  186. align-items: center;
  187. border-radius: 3px;
  188. position: absolute;
  189. top: -15px;
  190. left: 5px;
  191. }
  192. .banner-text {
  193. font-size: 10px;
  194. color: rgb(255, 255, 255);
  195. -unity-font-style: bold;
  196. -unity-text-align: middle-center;
  197. }
  198. /* Bottom Panel */
  199. .bottom-panel {
  200. background-color: rgb(139, 69, 19);
  201. padding: 15px;
  202. flex-direction: row;
  203. justify-content: space-between;
  204. align-items: center;
  205. border-top-width: 3px;
  206. border-top-color: rgb(101, 67, 33);
  207. min-height: 50px;
  208. }
  209. .interaction-hint {
  210. font-size: 14px;
  211. color: rgb(255, 215, 0);
  212. -unity-font-style: italic;
  213. }
  214. .money-display {
  215. flex-direction: row;
  216. align-items: center;
  217. }
  218. .money-label {
  219. font-size: 14px;
  220. color: rgb(255, 255, 255);
  221. margin-right: 10px;
  222. -unity-font-style: bold;
  223. }
  224. .money-amount {
  225. font-size: 16px;
  226. color: rgb(255, 215, 0);
  227. -unity-font-style: bold;
  228. background-color: rgba(0, 0, 0, 0.3);
  229. padding: 5px 10px;
  230. border-radius: 5px;
  231. }
  232. /* Hover Effects for All Buildings */
  233. .town-building:hover .building-label {
  234. color: rgb(255, 215, 0);
  235. font-size: 13px;
  236. }