/* Shop UI Styles - Unity Compatible Version */ #ShopContainer { position: absolute; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); justify-content: center; align-items: center; display: none; /* Hidden by default, script will show it */ } #ShopWindow { width: 650px; height: 550px; min-width: 450px; min-height: 350px; max-width: 800px; max-height: 650px; background-color: rgb(240, 240, 240); border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; border-left-width: 2px; border-right-width: 2px; border-top-width: 2px; border-bottom-width: 2px; border-left-color: rgb(100, 100, 100); border-right-color: rgb(100, 100, 100); border-top-color: rgb(100, 100, 100); border-bottom-color: rgb(100, 100, 100); padding-left: 20px; padding-right: 20px; padding-top: 20px; padding-bottom: 20px; } #ShopTitle { font-size: 24px; color: rgb(50, 50, 50); -unity-font-style: bold; } #PlayerMoney { color: rgb(0, 120, 0); font-size: 16px; -unity-font-style: bold; } #CloseButton { width: 30px; height: 30px; background-color: rgb(200, 50, 50); color: white; border-top-left-radius: 15px; border-top-right-radius: 15px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; font-size: 16px; -unity-font-style: bold; } #CloseButton:hover { background-color: rgb(220, 70, 70); } /* Shop Controls container */ #ShopControls { flex-direction: column; flex-shrink: 0; /* Prevent shrinking */ width: 100%; /* Take full width of parent */ max-width: 610px; /* Ensure it fits within ShopWindow (650px - 40px padding) */ } /* Search row container */ #SearchRow { flex-direction: row; align-items: center; width: 100%; margin-bottom: 10px; } /* Category row container */ #CategoryRow { flex-direction: row; align-items: center; width: 100%; } #SearchField { flex-grow: 1; margin-right: 0px; max-width: none; /* Allow it to take full width */ min-width: 200px; /* Ensure minimum usability */ color: rgb(50, 50, 50); /* Text color for visibility */ background-color: transparent; /* Transparent background to match window */ } /* Style the search field's text input specifically */ #SearchField .unity-text-field__input { color: rgb(50, 50, 50); background-color: white; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-color: rgb(180, 180, 180); border-right-color: rgb(180, 180, 180); border-top-color: rgb(180, 180, 180); border-bottom-color: rgb(180, 180, 180); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 3px; } /* Focus state for search field */ #SearchField .unity-text-field__input:focus { border-left-color: rgb(100, 150, 255); border-right-color: rgb(100, 150, 255); border-top-color: rgb(100, 150, 255); border-bottom-color: rgb(100, 150, 255); border-left-width: 2px; border-right-width: 2px; border-top-width: 2px; border-bottom-width: 2px; } /* Style the search field label */ #SearchField .unity-text-field__label { color: rgb(50, 50, 50); background-color: transparent; /* Remove white background */ font-size: 12px; margin-right: 5px; min-width: 50px; } /* Style the category filter */ #CategoryFilter .unity-dropdown-field__input { color: rgb(50, 50, 50); background-color: white; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-color: rgb(180, 180, 180); border-right-color: rgb(180, 180, 180); border-top-color: rgb(180, 180, 180); border-bottom-color: rgb(180, 180, 180); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; padding-left: 8px; /* Increased padding for better text spacing */ padding-right: 25px; /* More space for dropdown arrow */ padding-top: 4px; padding-bottom: 4px; min-height: 20px; /* Ensure minimum height for text visibility */ } /* Style the dropdown arrow/button area */ #CategoryFilter .unity-dropdown-field__arrow { color: rgb(100, 100, 100); background-color: transparent; } /* Style the text display in closed state */ #CategoryFilter .unity-dropdown-field__text { color: rgb(50, 50, 50); font-size: 12px; padding-left: 2px; padding-right: 2px; } /* Style the category filter label */ #CategoryFilter .unity-dropdown-field__label { color: rgb(50, 50, 50); background-color: transparent; /* Remove white background */ font-size: 12px; margin-right: 8px; /* Increased margin for better spacing */ min-width: 70px; /* Slightly increased width */ } /* Hide scrollbars in the dropdown */ #CategoryFilter .unity-scroll-view__horizontal-scroller { display: none !important; } #CategoryFilter .unity-scroll-view__vertical-scroller { display: none !important; } /* Additional scrollbar hiding for dropdown popup */ #CategoryFilter .unity-scroll-view { overflow: hidden; } #CategoryFilter .unity-scroll-view__content-viewport { overflow: hidden; } /* Hide any scrollbars in the dropdown list */ #CategoryFilter .unity-dropdown-field__list { overflow: hidden; } #CategoryFilter .unity-dropdown-field__list .unity-scroll-view__horizontal-scroller { display: none !important; } #CategoryFilter .unity-dropdown-field__list .unity-scroll-view__vertical-scroller { display: none !important; } /* Hide scrollbars for any popup content */ #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view__horizontal-scroller { display: none !important; } #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view__vertical-scroller { display: none !important; } /* Target the popup window specifically */ #CategoryFilter .unity-base-popup-field__popup { overflow: hidden; } #CategoryFilter .unity-base-popup-field__popup .unity-scroll-view { overflow: hidden; } /* Hide horizontal scrollers in popup content */ #CategoryFilter .unity-popup__content-container .unity-scroll-view__horizontal-scroller { display: none !important; } /* Force all dropdown list items to fit within container */ #CategoryFilter .unity-dropdown-field__list .unity-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; } /* Style the dropdown popup/menu */ #CategoryFilter .unity-base-popup-field__arrow { color: rgb(100, 100, 100); } /* Ensure dropdown content fits properly */ #CategoryFilter .unity-dropdown-field__container { overflow: hidden; } #CategoryFilter { width: 400px; /* Increased from 300px to give more space for text */ flex-shrink: 0; /* Prevent it from shrinking */ background-color: transparent; /* Match window background */ overflow: hidden; /* Hide any overflow content */ } /* Global scrollbar hiding for all elements within CategoryFilter */ #CategoryFilter * { overflow: hidden; } /* Force hide all scrollbars globally within the category filter */ #CategoryFilter .unity-scroller { display: none !important; } #CategoryFilter .unity-scroller__slider { display: none !important; } #CategoryFilter .unity-scroller__low-button { display: none !important; } #CategoryFilter .unity-scroller__high-button { display: none !important; } /* Target Unity's internal scrollbar elements */ #CategoryFilter .unity-scroller--horizontal { display: none !important; } #CategoryFilter .unity-scroller--vertical { display: none !important; } /* Hide all scrollbar track elements */ #CategoryFilter .unity-scroller__track { display: none !important; } /* Hide scrollbar dragger elements */ #CategoryFilter .unity-scroller__dragger { display: none !important; } /* Hide repeat buttons */ #CategoryFilter .unity-repeat-button { display: none !important; } /* Global nuclear option - hide ALL scrollers */ #CategoryFilter .unity-base-field__input .unity-scroller { display: none !important; } #CategoryFilter .unity-popup-field__input .unity-scroller { display: none !important; } /* Target any element with "scroller" in the class name */ #CategoryFilter [class*="scroller"] { display: none !important; } /* Target any element with "scroll" in the class name */ #CategoryFilter [class*="scroll"] { display: none !important; } #ItemList { background-color: white; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px; border-left-color: rgb(180, 180, 180); border-right-color: rgb(180, 180, 180); border-top-color: rgb(180, 180, 180); border-bottom-color: rgb(180, 180, 180); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px; flex-grow: 1; min-height: 200px; } .shop-item { background-color: rgb(248, 248, 248); border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; padding-left: 10px; padding-right: 10px; padding-top: 10px; padding-bottom: 10px; margin-bottom: 5px; flex-direction: column; min-height: 80px; } .shop-item:hover { background-color: rgb(235, 235, 235); } .item-header { flex-direction: row; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; width: 100%; } .item-name { font-size: 16px; color: rgb(50, 50, 50); -unity-font-style: bold; flex-grow: 1; flex-shrink: 1; white-space: normal; max-width: 350px; } .item-cost { font-size: 14px; color: rgb(0, 120, 0); -unity-font-style: bold; margin-left: 10px; flex-shrink: 0; white-space: nowrap; } .item-description { font-size: 12px; color: rgb(100, 100, 100); margin-top: 2px; margin-bottom: 3px; white-space: normal; -unity-text-align: upper-left; } .item-stats { font-size: 11px; color: rgb(80, 80, 150); margin-top: 2px; margin-bottom: 5px; white-space: normal; } .purchase-button { width: 80px; height: 25px; background-color: rgb(50, 150, 50); color: white; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0; font-size: 12px; align-self: flex-end; } .purchase-button:hover { background-color: rgb(70, 170, 70); } .purchase-button:disabled { background-color: rgb(150, 150, 150); color: rgb(200, 200, 200); } .purchase-button-disabled { background-color: rgb(150, 150, 150); color: rgb(200, 200, 200); }