| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- /* Combat Event Popup Styles */
- /* Main Container */
- .combat-popup-container {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- justify-content: center;
- align-items: center;
- transition-property: opacity;
- transition-duration: 0.3s;
- }
- /* Background Overlay */
- .combat-popup-overlay {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.7);
- /* Ensure the overlay captures all mouse events */
- -unity-slice-left: 0;
- -unity-slice-top: 0;
- -unity-slice-right: 0;
- -unity-slice-bottom: 0;
- }
- /* Main Panel */
- .combat-popup-panel {
- background-color: rgba(38, 38, 51, 0.95);
- border-color: rgba(204, 51, 51, 1);
- border-width: 3px;
- border-radius: 10px;
- min-width: 400px;
- max-width: 600px;
- padding: 20px;
- transition-property: scale, opacity;
- transition-duration: 0.3s;
- transition-timing-function: ease-out-back;
- }
- /* Title Styles */
- .combat-title {
- font-size: 24px;
- color: rgba(255, 77, 77, 1);
- -unity-font-style: bold;
- -unity-text-align: middle-center;
- margin-bottom: 15px;
- text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
- }
- /* Description */
- .combat-description {
- font-size: 16px;
- color: rgba(255, 255, 255, 1);
- -unity-text-align: middle-center;
- white-space: normal;
- margin-bottom: 20px;
- }
- /* Enemy Section */
- .enemy-section {
- margin-bottom: 25px;
- }
- .enemy-header {
- font-size: 18px;
- color: rgba(255, 204, 51, 1);
- -unity-font-style: bold;
- -unity-text-align: middle-center;
- margin-bottom: 10px;
- }
- .enemy-list {
- background-color: rgba(26, 26, 38, 0.8);
- border-radius: 5px;
- padding: 10px 15px;
- }
- /* Enemy Item */
- .enemy-item {
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 8px;
- padding: 8px 10px;
- background-color: rgba(51, 51, 64, 0.6);
- border-radius: 4px;
- transition-property: background-color, scale;
- transition-duration: 0.2s;
- }
- .enemy-item:hover {
- background-color: rgba(77, 77, 92, 0.8);
- scale: 1.02;
- }
- .enemy-info {
- flex-direction: column;
- flex-grow: 1;
- }
- .enemy-name {
- font-size: 16px;
- color: rgba(255, 230, 179, 1);
- -unity-font-style: bold;
- }
- .enemy-stats {
- font-size: 12px;
- color: rgba(204, 204, 204, 1);
- }
- .enemy-weapon {
- font-size: 11px;
- color: rgba(179, 179, 255, 1);
- }
- /* Threat Indicator */
- .threat-indicator {
- width: 60px;
- height: 20px;
- border-radius: 10px;
- justify-content: center;
- align-items: center;
- }
- .threat-low {
- background-color: rgba(77, 204, 77, 1); /* Green */
- }
- .threat-medium {
- background-color: rgba(255, 204, 51, 1); /* Yellow */
- }
- .threat-high {
- background-color: rgba(255, 102, 51, 1); /* Orange */
- }
- .threat-extreme {
- background-color: rgba(204, 51, 51, 1); /* Red */
- }
- .threat-label {
- font-size: 11px;
- color: rgba(255, 255, 255, 1);
- -unity-font-style: bold;
- }
- /* Button Container */
- .button-container {
- flex-direction: row;
- justify-content: space-around;
- margin-top: 20px;
- }
- /* Button Base Style */
- .combat-button {
- font-size: 16px;
- color: rgba(255, 255, 255, 1);
- border-radius: 8px;
- padding: 12px 20px;
- min-width: 120px;
- transition-property: background-color, scale, border-color;
- transition-duration: 0.2s;
- border-width: 2px;
- border-color: transparent;
- }
- .combat-button:hover {
- scale: 1.05;
- border-color: rgba(255, 255, 255, 0.3);
- }
- .combat-button:active {
- scale: 0.98;
- }
- /* Run Away Button */
- .run-button {
- background-color: rgba(153, 153, 26, 1);
- }
- .run-button:hover {
- background-color: rgba(179, 179, 51, 1);
- }
- /* Attack Button */
- .attack-button {
- background-color: rgba(204, 51, 51, 1);
- }
- .attack-button:hover {
- background-color: rgba(230, 77, 77, 1);
- }
- /* Animation Classes */
- .popup-enter {
- opacity: 1;
- scale: 1;
- }
- .popup-exit {
- opacity: 0;
- scale: 0.8;
- }
- .popup-hidden {
- display: none;
- }
- /* Pulse Animation for Threat Indicators */
- @keyframes threat-pulse {
- 0% { scale: 1; }
- 50% { scale: 1.1; }
- 100% { scale: 1; }
- }
- .threat-extreme .threat-label {
- animation-name: threat-pulse;
- animation-duration: 1.5s;
- animation-iteration-count: infinite;
- animation-timing-function: ease-in-out;
- }
|