War_Tanks / style.css
Omar Abdelsamia
Upload 17 files
cee2ded verified
Raw
History Blame Contribute Delete
12 kB
/* css/style.css */
:root {
--primary: #ff4757;
--secondary: #2ed573;
--bg-dark: #1e272e;
--text-light: #f1f2f6;
--panel-bg: rgba(20, 25, 30, 0.85);
--glass-border: rgba(255, 255, 255, 0.15);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Cairo', sans-serif;
background-color: var(--bg-dark);
color: var(--text-light);
overflow: hidden;
touch-action: none;
user-select: none;
}
#app {
width: 100vw;
height: 100vh;
position: relative;
background: #000;
}
/* Background Effects */
.stars-bg {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="1" fill="white" opacity="0.5"/><circle cx="50" cy="80" r="1.5" fill="white" opacity="0.8"/><circle cx="150" cy="30" r="0.8" fill="white" opacity="0.4"/><circle cx="180" cy="150" r="2" fill="white" opacity="0.6"/></svg>') repeat;
animation: drift 100s linear infinite;
z-index: 0;
}
@keyframes drift {
from { background-position: 0 0; }
to { background-position: -1000px 1000px; }
}
.screen {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
background: radial-gradient(circle at center, #1e272e 0%, #000000 100%);
z-index: 1;
}
.screen.active {
display: flex;
}
#game-screen {
background: transparent;
}
.menu-content.premium, .store-content.premium {
background: rgba(10, 15, 25, 0.7);
backdrop-filter: blur(15px);
border: 1px solid var(--glass-border);
padding: 2.5rem 3.5rem;
border-radius: 25px;
text-align: center;
box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.05);
z-index: 10;
max-width: 900px;
width: 95%;
}
.glow-text {
font-size: 3.5rem;
font-weight: 900;
margin-bottom: 1.5rem;
background: linear-gradient(45deg, #ff4757, #ffa502, #2ed573);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0px 0px 20px rgba(255, 165, 2, 0.5);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { text-shadow: 0px 0px 20px rgba(255, 165, 2, 0.5); }
50% { text-shadow: 0px 0px 40px rgba(255, 165, 2, 0.8); }
100% { text-shadow: 0px 0px 20px rgba(255, 165, 2, 0.5); }
}
.settings-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-bottom: 2rem;
}
.settings-group {
text-align: right;
}
.settings-group label {
display: block;
margin-bottom: 8px;
font-weight: 900;
color: #ecf0f1;
font-size: 1.1rem;
}
.styled-select {
width: 100%;
padding: 12px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.2);
background: rgba(0,0,0,0.5);
color: white;
font-family: 'Cairo', sans-serif;
font-size: 1.1rem;
outline: none;
transition: 0.3s;
}
.styled-select:focus {
border-color: var(--primary);
box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}
.styled-select option {
background: var(--bg-dark);
}
.menu-buttons {
display: flex;
flex-direction: column;
gap: 1.2rem;
}
.btn {
font-family: 'Cairo', sans-serif;
font-size: 1.3rem;
font-weight: 900;
padding: 1rem 2rem;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
}
.btn.primary { background: linear-gradient(45deg, #ff4757, #ff6b81); color: white; }
.btn.secondary { background: linear-gradient(45deg, #1e90ff, #70a1ff); color: white; }
.btn.action { background: linear-gradient(45deg, #ffa502, #f1c40f); color: #1e272e; }
.glow-btn:hover {
transform: translateY(-4px) scale(1.02);
box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}
/* Store Settings */
.store-content.premium {
max-width: 750px;
max-height: 90vh;
overflow-y: auto;
}
.store-tabs {
display: flex;
gap: 0;
margin-bottom: 1.5rem;
border-radius: 15px;
overflow: hidden;
border: 2px solid rgba(255,255,255,0.1);
}
.store-tab {
flex: 1;
padding: 15px 20px;
font-family: 'Cairo', sans-serif;
font-size: 1.3rem;
font-weight: 900;
border: none;
cursor: pointer;
transition: 0.3s;
background: rgba(0,0,0,0.4);
color: #7f8c8d;
}
.store-tab.active {
background: linear-gradient(135deg, #ff4757, #ff6b81);
color: white;
box-shadow: 0 5px 15px rgba(255,71,87,0.4);
}
.store-tab:not(.active):hover {
background: rgba(255,255,255,0.1);
color: #ecf0f1;
}
.store-tab-content {
display: none;
}
.store-tab-content.active {
display: block;
}
.store-preview-box {
background: #111;
border: 2px solid rgba(255,255,255,0.1);
border-radius: 15px;
padding: 15px;
margin-bottom: 1.5rem;
text-align: center;
position: relative;
overflow: hidden;
}
.store-preview-box canvas {
display: block;
margin: 0 auto;
border-radius: 10px;
}
.preview-label {
font-size: 1.2rem;
font-weight: 900;
margin-top: 10px;
color: #ffa502;
}
.options-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 12px;
}
.option-card {
background: rgba(0,0,0,0.4);
border: 2px solid rgba(255,255,255,0.1);
border-radius: 12px;
padding: 12px 8px;
cursor: pointer;
transition: 0.3s;
display: flex;
flex-direction: column;
align-items: center;
}
.option-card:hover {
background: rgba(255,255,255,0.1);
transform: translateY(-5px);
}
.option-card.selected {
border-color: #2ed573;
background: rgba(46, 213, 115, 0.15);
box-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
}
.option-card span { font-weight: 700; margin-top: 8px; font-size: 0.85rem;}
.preview {
width: 65px;
height: 42px;
border-radius: 8px;
position: relative;
overflow: hidden;
}
.exp-preview.normal { background: radial-gradient(circle, #f1c40f, #e74c3c); }
.exp-preview.plasma { background: radial-gradient(circle, #00d2d3, #0984e3); }
.exp-preview.toxic { background: radial-gradient(circle, #badc58, #6ab04c); }
.exp-preview.nuke { background: radial-gradient(circle, #fff, #f39c12, #c0392b); box-shadow: 0 0 15px #fff;}
.exp-preview.ice { background: radial-gradient(circle, #00d2d3, #74b9ff, #fff); }
.exp-preview.dark { background: radial-gradient(circle, #000, #4a00e0); box-shadow: 0 0 10px #4a00e0;}
/* Game UI */
#gameCanvas {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
z-index: 1;
}
#ui-layer {
position: absolute;
top: 0; left: 0; width: 100%; height: 100%;
z-index: 2;
pointer-events: none;
}
.top-bar {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 1rem 2rem;
pointer-events: auto;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.player-info {
width: 250px;
background: var(--panel-bg);
padding: 10px 15px;
border-radius: 10px;
border: 1px solid var(--glass-border);
box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.player-info .name { font-weight: 900; margin-bottom: 5px; text-align: center; font-size: 1.1rem;}
.health-bar-container {
width: 100%; height: 15px; background: rgba(0,0,0,0.7); border-radius: 8px; overflow: hidden;
border: 1px solid rgba(255,255,255,0.1);
}
.health-fill { height: 100%; width: 100%; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#hp-fill-1 { background: linear-gradient(90deg, #ff4757, #ff6b81); }
#hp-fill-2 { background: linear-gradient(90deg, #1e90ff, #70a1ff); }
.center-ui {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
margin-top: 10px;
}
.large-pause {
background: #3e2723;
border: none;
color: white;
padding: 12px 40px;
border-radius: 40px;
cursor: pointer;
font-weight: 900;
font-size: 1.5rem;
transition: 0.2s;
box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.large-pause:hover { transform: scale(1.05); }
.turn-indicator {
font-size: 1.8rem;
font-weight: 900;
background: #3e2723;
color: #ff4757;
padding: 10px 40px;
border-radius: 40px;
border: none;
box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.camera-hint {
background: rgba(0,0,0,0.5);
padding: 3px 10px;
border-radius: 10px;
color: #bdc3c7;
font-size: 0.8rem;
pointer-events: none;
}
.controls-overlay {
position: absolute;
bottom: 2rem;
right: 2rem;
background: #3e2723; /* لون بني داكن كما في الصورة */
padding: 1.5rem;
border-radius: 15px;
border: 2px solid rgba(255,255,255,0.05);
width: 280px;
pointer-events: auto;
transition: opacity 0.3s;
box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}
.controls-overlay.right-controls {
right: auto;
left: 2rem;
}
.movement-controls {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-bottom: 25px;
background: #1a1a1a;
padding: 10px 15px;
border-radius: 50px;
border: 2px solid #2a2a2a;
}
.move-btn {
background: linear-gradient(to bottom, #4b6584, #2d3436);
border: 2px solid #555;
color: white;
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
font-size: 1.5rem;
transition: 0.2s;
box-shadow: 0 4px 6px rgba(0,0,0,0.5);
display: flex;
align-items: center;
justify-content: center;
}
.move-btn:active { transform: scale(0.9); }
.move-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fuel-bar-container {
flex: 1; height: 16px; background: rgba(0,0,0,0.8); border-radius: 8px; overflow: hidden;
border: 2px solid #333;
}
.fuel-fill {
height: 100%; width: 100%; background: #f1c40f; transition: width 0.1s;
}
.simple-controls {
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 20px;
}
.control-group { margin-bottom: 15px; text-align: right; }
.control-group label { display: block; font-weight: 900; margin-bottom: 8px; font-size: 1.2rem; color: #fff;}
.clean-slider {
width: 100%;
height: 6px;
appearance: none;
background: #e0e0e0;
border-radius: 5px;
outline: none;
}
.clean-slider::-webkit-slider-thumb {
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #7f8fa6;
border: 3px solid #fff;
cursor: pointer;
}
#angle-1, #power-1 { accent-color: #ff4757; }
#angle-2, #power-2 { accent-color: #1e90ff; }
.big-fire {
width: 100%;
background: #f1c40f;
color: #2c3e50;
font-size: 1.5rem;
padding: 12px;
border-radius: 30px;
margin-top: 10px;
border: none;
cursor: pointer;
font-weight: 900;
box-shadow: 0 5px 0 #d35400;
}
.big-fire:active {
transform: translateY(5px);
box-shadow: 0 0 0 #d35400;
}
.modal {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%) scale(0.8);
background: #111418;
padding: 3rem 4rem;
border-radius: 20px;
border: 3px solid #ff4757;
text-align: center;
pointer-events: auto;
opacity: 0;
visibility: hidden;
transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 0 80px rgba(0, 0, 0, 0.9);
z-index: 20;
min-width: 400px;
}
.modal.show {
opacity: 1;
visibility: visible;
transform: translate(-50%, -50%) scale(1);
}
.modal h2 { font-size: 2.5rem; margin-bottom: 2.5rem; color: white; text-shadow: 0 5px 10px rgba(0,0,0,0.5);}
.modal .btn {
width: 100%;
margin-bottom: 15px;
font-size: 1.2rem;
padding: 12px;
border-radius: 30px;
}
.modal .btn.primary { background: #ff4757; }
.modal .btn.action { background: #f1c40f; color: #1e272e; }
.modal .btn.secondary { background: #1e90ff; }