diff options
Diffstat (limited to 'html/XCOM/style.css')
-rw-r--r-- | html/XCOM/style.css | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/html/XCOM/style.css b/html/XCOM/style.css new file mode 100644 index 0000000..771009b --- /dev/null +++ b/html/XCOM/style.css @@ -0,0 +1,104 @@ +/* XCOM-like Game Styles */ +/* Optimized for both desktop and mobile */ + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + background: #333; + color: #fff; + margin: 0; + padding: 0; + box-sizing: border-box; + overflow: hidden; +} + +#gameContainer { + position: relative; + width: 100vw; + height: 100vh; + display: flex; + justify-content: center; + align-items: center; +} + +canvas { + background: #222; + border: 1px solid #555; + max-width: 100vw; + max-height: 100vh; + display: block; +} + +#actionButtons { + position: absolute; + top: 10px; + right: 10px; + z-index: 1000; + display: flex; + flex-direction: column; + gap: 5px; +} + +#endTurnBtn, #skipMovementBtn, #skipAttackBtn { + margin: 0; + padding: 8px 16px; + font-size: 14px; + cursor: pointer; + background: #4CAF50; + color: white; + border: none; + border-radius: 4px; + transition: background-color 0.3s; + white-space: nowrap; +} + +#endTurnBtn:hover:not(:disabled) { + background: #45a049; +} + +#endTurnBtn:disabled { + background: #666; + cursor: not-allowed; +} + +#skipMovementBtn { + background: #2196F3; +} + +#skipMovementBtn:hover:not(:disabled) { + background: #1976D2; +} + +#skipMovementBtn:disabled { + background: #666; + cursor: not-allowed; +} + +#skipAttackBtn { + background: #FF9800; +} + +#skipAttackBtn:hover:not(:disabled) { + background: #F57C00; +} + +#skipAttackBtn:disabled { + background: #666; + cursor: not-allowed; +} + +/* Mobile optimizations */ +@media (max-width: 768px) { + #endTurnBtn { + padding: 12px 20px; + font-size: 16px; + top: 5px; + right: 5px; + } +} + +/* Touch-friendly interactions */ +@media (hover: none) and (pointer: coarse) { + #endTurnBtn { + min-height: 44px; /* iOS recommended minimum */ + } +} |