| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- /* Main Container Styles */
- .main-container {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- /* Top HUD Styles */
- .top-hud {
- flex-direction: row;
- justify-content: space-between;
- align-items: flex-start;
- width: 100%;
- height: auto;
- padding: 10px;
- background-color: rgba(0, 0, 0, 0.3);
- border-bottom-width: 2px;
- border-bottom-color: rgba(255, 255, 255, 0.2);
- }
- .resources-panel {
- flex-direction: row;
- align-items: center;
- }
- .resource-item {
- flex-direction: row;
- align-items: center;
- margin-right: 20px;
- padding: 5px 10px;
- background-color: rgba(0, 0, 0, 0.5);
- border-radius: 5px;
- }
- .resource-icon {
- width: 24px;
- height: 24px;
- margin-right: 5px;
- border-radius: 3px;
- }
- .wood-icon {
- background-color: rgb(139, 69, 19);
- }
- .stone-icon {
- background-color: rgb(128, 128, 128);
- }
- .food-icon {
- background-color: rgb(255, 215, 0);
- }
- .resource-label {
- color: white;
- font-size: 14px;
- margin-right: 5px;
- -unity-font-style: bold;
- }
- .resource-amount {
- color: rgb(255, 255, 0);
- font-size: 16px;
- -unity-font-style: bold;
- min-width: 40px;
- }
- /* Time Controls */
- .time-controls {
- flex-direction: row;
- align-items: center;
- }
- .time-speed-label {
- color: white;
- font-size: 16px;
- -unity-font-style: bold;
- margin-right: 10px;
- background-color: rgba(0, 0, 0, 0.7);
- padding: 5px 10px;
- border-radius: 3px;
- }
- .time-button {
- margin-left: 5px;
- padding: 5px 10px;
- background-color: rgba(70, 130, 180, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 3px;
- color: white;
- font-size: 12px;
- }
- .time-button:hover {
- background-color: rgba(100, 149, 237, 0.9);
- }
- .time-button:active {
- background-color: rgba(30, 144, 255, 1);
- }
- /* Side Panel */
- .side-panel {
- position: absolute;
- right: 10px;
- top: 80px;
- width: 320px;
- height: auto;
- max-height: calc(100% - 180px);
- overflow-y: auto;
- }
- .info-panel {
- background-color: rgba(0, 0, 0, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 5px;
- padding: 10px;
- margin-bottom: 10px;
- width: 100%;
- overflow: hidden;
- box-sizing: border-box;
- }
- .panel-title {
- color: rgb(255, 215, 0);
- font-size: 14px;
- -unity-font-style: bold;
- margin-bottom: 8px;
- border-bottom-width: 1px;
- border-bottom-color: rgba(255, 215, 0, 0.5);
- padding-bottom: 3px;
- }
- .info-text {
- color: white;
- font-size: 12px;
- white-space: normal;
- margin-bottom: 5px;
- word-wrap: break-word;
- overflow-wrap: break-word;
- max-width: 100%;
- }
- .small-text {
- font-size: 10px;
- color: rgba(255, 255, 255, 0.8);
- }
- /* Job Buttons */
- .job-buttons-container {
- flex-direction: column;
- margin-top: 10px;
- }
- .job-buttons-container > Button {
- margin-bottom: 3px;
- padding: 3px 8px;
- background-color: rgba(34, 139, 34, 0.7);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 3px;
- color: white;
- font-size: 11px;
- }
- .job-buttons-container > Button:hover {
- background-color: rgba(50, 205, 50, 0.8);
- }
- .job-buttons-container > Button:active {
- background-color: rgba(0, 128, 0, 1);
- }
- /* Bottom HUD */
- .bottom-hud {
- position: absolute;
- bottom: 10px;
- left: 10px;
- right: 10px;
- height: auto;
- background-color: rgba(0, 0, 0, 0.6);
- border-radius: 5px;
- padding: 8px;
- }
- .status-text {
- color: white;
- font-size: 12px;
- text-align: middle-center;
- }
- /* Build Menu Styles */
- .build-menu-panel {
- background-color: rgba(0, 0, 0, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 5px;
- padding: 10px;
- margin-bottom: 10px;
- width: 100%;
- overflow: hidden;
- box-sizing: border-box;
- }
- .build-toggle-button {
- padding: 8px 12px;
- background-color: rgba(139, 69, 19, 0.8);
- border-color: rgba(255, 255, 255, 0.5);
- border-width: 1px;
- border-radius: 5px;
- color: white;
- font-size: 14px;
- -unity-font-style: bold;
- margin-bottom: 5px;
- }
- .build-toggle-button:hover {
- background-color: rgba(160, 82, 45, 0.9);
- }
- .build-categories-container {
- flex-direction: row;
- justify-content: space-around;
- margin-bottom: 15px;
- flex-wrap: wrap;
- }
- .category-button {
- padding: 6px 10px;
- background-color: rgba(70, 130, 180, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 4px;
- color: white;
- font-size: 12px;
- margin: 2px;
- min-width: 60px;
- }
- .category-button:hover {
- background-color: rgba(100, 149, 237, 0.9);
- }
- .category-button.selected {
- background-color: rgba(30, 144, 255, 1);
- border-color: rgba(255, 255, 255, 0.8);
- }
- .build-items-container {
- flex-direction: column;
- }
- .build-item-button {
- padding: 8px;
- background-color: rgba(34, 139, 34, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 4px;
- color: white;
- font-size: 12px;
- margin-bottom: 5px;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
- .build-item-button:hover {
- background-color: rgba(60, 179, 113, 0.9);
- }
- .build-item-button:active {
- background-color: rgba(34, 139, 34, 1);
- }
- .build-item-name {
- color: white;
- font-size: 12px;
- -unity-font-style: bold;
- }
- .build-item-cost {
- color: rgba(255, 215, 0, 0.9);
- font-size: 10px;
- }
- /* Housing Panel Styles */
- .housing-panel {
- background-color: rgba(0, 0, 0, 0.8);
- border-color: rgba(255, 255, 255, 0.3);
- border-width: 1px;
- border-radius: 5px;
- padding: 10px;
- margin-bottom: 10px;
- }
- .housing-status {
- color: white;
- font-size: 12px;
- margin-bottom: 5px;
- }
- .housing-warning {
- color: rgba(255, 100, 100, 1);
- font-size: 12px;
- -unity-font-style: bold;
- margin-bottom: 5px;
- }
- /* Responsive adjustments */
- @media screen and (max-width: 1024px) {
- .side-panel {
- width: 200px;
- }
-
- .resource-amount {
- font-size: 14px;
- }
- }
|