* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background-color: #f0f0f0; color: #333; } .container { display: flex; flex-direction: column; height: 100vh; max-width: 1400px; margin: 0 auto; padding: 1rem; } header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; margin-bottom: 1rem; } header h1 { font-size: 1.8rem; color: #2c3e50; } .timer { display: flex; align-items: center; gap: 10px; } #pause-button { padding: 0.4rem 0.8rem; background-color: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; } #pause-button:hover { background-color: #2980b9; } main { display: flex; flex: 1; gap: 1rem; margin-bottom: 1rem; } #map { flex: 3; height: 100%; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); } .info-panel { flex: 1; background-color: white; padding: 1rem; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; } .panel-section { flex: 1; } .panel-section h2 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #ddd; color: #2c3e50; } /* Battle statistics styles */ #battle-stats { display: flex; flex-direction: column; gap: 0.8rem; } .stat-row { display: flex; justify-content: space-between; padding: 0.3rem 0; } .stat-label { font-weight: bold; color: #555; } .stat-value { font-family: monospace; font-size: 1.1em; } .control-bar { height: 15px; width: 100%; background-color: #eee; border-radius: 7px; overflow: hidden; display: flex; } .blue-control { height: 100%; background-color: #3498db; transition: width 0.5s ease; } .red-control { height: 100%; background-color: #e74c3c; transition: width 0.5s ease; } #unit-info { line-height: 1.6; } .no-unit-selected { color: #7f8c8d; font-style: italic; } .unit-name { font-weight: bold; font-size: 1.2rem; margin-bottom: 0.5rem; color: #2c3e50; } .unit-type, .unit-strength, .unit-status { margin-bottom: 0.5rem; } .unit-health { margin: 1rem 0; } .health-bar { height: 10px; background-color: #ecf0f1; border-radius: 5px; overflow: hidden; margin-top: 0.3rem; } .health-fill { height: 100%; background-color: #2ecc71; border-radius: 5px; transition: width 0.3s; } .health-critical .health-fill { background-color: #e74c3c; } .health-warning .health-fill { background-color: #f39c12; } .unit-actions { margin-top: 1rem; } footer { padding: 0.5rem 0; } .legend { display: flex; gap: 1.5rem; justify-content: center; } .legend-item { display: flex; align-items: center; gap: 0.5rem; } .circle { width: 15px; height: 15px; border-radius: 50%; } .blue { background-color: #3498db; } .red { background-color: #e74c3c; } /* Map marker styles */ .unit-marker { border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; border: 2px solid white; box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); transition: transform 0.3s, box-shadow 0.3s; } .unit-marker:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); z-index: 1000 !important; } .unit-marker.blue-unit { background-color: #3498db; } .unit-marker.red-unit { background-color: #e74c3c; } .unit-marker.selected { transform: scale(1.2); box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); z-index: 1000 !important; } /* Battle animations */ @keyframes battle-pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.7; } 100% { transform: scale(2); opacity: 0; } } @keyframes battle-flash { 0% { opacity: 1; transform: scale(1); } 25% { opacity: 0.8; transform: scale(1.1); } 50% { opacity: 1; transform: scale(1); } 75% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.5); } } @keyframes battle-expand { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(3); opacity: 0; } } @keyframes battle-burst { 0% { transform: scale(0.2); opacity: 0; } 20% { transform: scale(1.2); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.8; } 80% { transform: scale(1.8); opacity: 0.4; } 100% { transform: scale(2.5); opacity: 0; } } .battle-indicator { position: absolute; border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px rgba(255, 200, 0, 0.8); z-index: 800; } .battle-pulse { animation: battle-pulse 1s infinite; } .battle-flash { animation: battle-flash 0.8s infinite; } .battle-expand { animation: battle-expand 1.2s forwards; } .battle-burst { animation: battle-burst 1s forwards; }