Andro0s commited on
Commit
30e93c6
verified
1 Parent(s): 027fc6d

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +53 -16
style.css CHANGED
@@ -1,16 +1,53 @@
1
- *{box-sizing:border-box}
2
- body{margin:0;font-family:Inter,Arial;background:#0f1720;color:#e6eef8;display:flex;flex-direction:column;align-items:center}
3
- #uiTop{width:100%;display:flex;justify-content:space-between;padding:8px 16px;align-items:center}
4
- #gameCanvas{background:linear-gradient(#74c476,#2d6b2d);border:6px solid #05131a;box-shadow:0 8px 30px rgba(0,0,0,0.6)}
5
- #controls{width:1024px;display:flex;flex-direction:column;gap:8px;padding:8px}
6
- #controls .row{display:flex;gap:8px;justify-content:center}
7
- button{padding:8px 12px;border-radius:8px;border:none;background:#0ea5a4;color:#001;cursor:pointer;font-weight:700}
8
- button:active{transform:translateY(1px);opacity:0.9}
9
- #powerBar{height:10px;background:#123;border-radius:6px;margin-top:6px;overflow:hidden}
10
- #powerFill{height:100%;width:0%;background:linear-gradient(90deg,#ff5f6d,#ffc371)}
11
- .panel{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,0.6)}
12
- .panel .panel-inner{background:#082028;padding:16px;border-radius:10px;width:90%;max-width:420px;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
13
- .panel h3{margin-top:0}
14
- .catalog-item{background:#072b2b;padding:8px;margin:6px 0;border-radius:6px;display:flex;justify-content:space-between;align-items:center}
15
- #info{font-weight:700}
16
- #turnInfo{font-weight:700}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ margin: 0;
3
+ padding: 0;
4
+ overflow: hidden; /* Evita scroll */
5
+ background-color: #333;
6
+ touch-action: none; /* Crucial para juegos m贸viles */
7
+ user-select: none;
8
+ }
9
+
10
+ #game-container {
11
+ width: 100vw;
12
+ height: 100vh;
13
+ position: fixed;
14
+ top: 0;
15
+ left: 0;
16
+ }
17
+
18
+ /* 馃摫 ESTILOS DE LOS BOTONES */
19
+ #mobile-controls {
20
+ position: absolute;
21
+ bottom: 20px;
22
+ right: 20px; /* Botones a la derecha */
23
+ z-index: 100;
24
+ display: flex;
25
+ flex-direction: column;
26
+ align-items: center;
27
+ gap: 10px;
28
+ }
29
+
30
+ .control-row {
31
+ display: flex;
32
+ gap: 10px;
33
+ }
34
+
35
+ .game-btn {
36
+ width: 60px;
37
+ height: 60px;
38
+ background-color: rgba(255, 255, 255, 0.3);
39
+ border: 2px solid rgba(255, 255, 255, 0.6);
40
+ border-radius: 50%;
41
+ font-size: 24px;
42
+ color: white;
43
+ cursor: pointer;
44
+ /* Evita que el navegador haga zoom al tocar r谩pido */
45
+ touch-action: manipulation;
46
+ display: flex;
47
+ justify-content: center;
48
+ align-items: center;
49
+ }
50
+
51
+ .game-btn:active {
52
+ background-color: rgba(0, 255, 0, 0.5); /* Verde al presionar */
53
+ }