|
1 | 1 | /* Estilos generales */
|
2 | 2 | body {
|
3 |
| - font-family: 'Arial', sans-serif; |
| 3 | + font-family: 'Poppins', sans-serif; |
4 | 4 | background: linear-gradient(135deg, #eef3f7, #cfd9df);
|
5 | 5 | margin: 0;
|
6 | 6 | padding: 0;
|
7 | 7 | display: flex;
|
8 | 8 | flex-direction: column;
|
9 |
| - align-items: center; /* Centers children horizontally */ |
10 |
| - justify-content: center; /* Centers children vertically */ |
| 9 | + align-items: center; |
| 10 | + justify-content: center; |
11 | 11 | min-height: 100vh;
|
12 | 12 | color: #333;
|
13 | 13 | }
|
14 | 14 |
|
15 |
| -/* Header */ |
| 15 | +/* Header y título */ |
16 | 16 | #header {
|
17 |
| - margin: 20px auto; /* Changed margin-top to margin auto */ |
| 17 | + margin: 20px auto; |
18 | 18 | width: 100%;
|
19 | 19 | max-width: 800px;
|
20 | 20 | text-align: center;
|
21 |
| - padding: 0 20px; |
| 21 | + padding: 20px; |
22 | 22 | box-sizing: border-box;
|
23 | 23 | }
|
24 | 24 |
|
25 | 25 | #header h1 {
|
26 |
| - font-size: 2.5rem; |
| 26 | + font-size: 2.8rem; |
27 | 27 | color: #222;
|
28 |
| - margin-bottom: 15px; |
| 28 | + margin-bottom: 30px; |
29 | 29 | text-transform: uppercase;
|
30 |
| - letter-spacing: 1.2px; |
31 |
| - text-align: center; /* Ensure heading is centered */ |
| 30 | + letter-spacing: 1.5px; |
| 31 | + font-weight: 700; |
| 32 | + text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); |
32 | 33 | }
|
33 | 34 |
|
34 |
| -/* Centrar los botones en la parte inferior */ |
35 |
| -#header-buttons { |
36 |
| - display: flex; |
37 |
| - justify-content: center; |
38 |
| - align-items: center; |
39 |
| - gap: 10px; |
40 |
| - margin: 20px auto; /* Changed margin-top to margin auto */ |
41 |
| - width: 100%; /* Added width */ |
| 35 | +/* Contenedor del juego */ |
| 36 | +.game-container { |
| 37 | + background-color: white; |
| 38 | + padding: 30px; |
| 39 | + border-radius: 15px; |
| 40 | + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); |
| 41 | + width: 90%; |
| 42 | + max-width: 700px; |
| 43 | + margin: 20px auto; |
42 | 44 | }
|
43 | 45 |
|
44 |
| -/* Estilos para los botones */ |
45 |
| -#header-buttons button { |
46 |
| - background-color: #4CAF50; |
47 |
| - color: white; |
48 |
| - padding: 10px 20px; |
49 |
| - border: none; |
50 |
| - border-radius: 5px; |
51 |
| - cursor: pointer; |
52 |
| - font-size: 1rem; |
53 |
| - transition: background-color 0.3s ease; |
| 46 | +/* Área de texto */ |
| 47 | +.text-input { |
| 48 | + width: 100%; |
| 49 | + padding: 15px; |
| 50 | + margin: 20px 0; |
| 51 | + border: 2px solid #e0e0e0; |
| 52 | + border-radius: 8px; |
| 53 | + font-size: 1.1rem; |
| 54 | + transition: border-color 0.3s ease; |
54 | 55 | }
|
55 | 56 |
|
56 |
| -#header-buttons button:hover { |
57 |
| - background-color: #45a049; |
| 57 | +.text-input:focus { |
| 58 | + outline: none; |
| 59 | + border-color: #4CAF50; |
| 60 | + box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); |
58 | 61 | }
|
59 | 62 |
|
60 |
| -/* Footer styles */ |
61 |
| -.footer { |
62 |
| - width: 100%; |
63 |
| - padding: 20px 0; |
64 |
| - background-color: #333; |
65 |
| - color: white; |
66 |
| - text-align: center; |
67 |
| - position: fixed; |
68 |
| - bottom: 0; |
69 |
| - left: 0; |
| 63 | +/* Estadísticas */ |
| 64 | +.stats { |
| 65 | + display: flex; |
| 66 | + justify-content: space-around; |
| 67 | + margin: 20px 0; |
| 68 | + font-size: 1.2rem; |
| 69 | + color: #555; |
70 | 70 | }
|
71 | 71 |
|
72 |
| -.footer a { |
73 |
| - color: #4CAF50; |
74 |
| - text-decoration: none; |
75 |
| - font-weight: bold; |
76 |
| - transition: color 0.3s ease; |
| 72 | +.stat-item { |
| 73 | + background-color: #f5f5f5; |
| 74 | + padding: 10px 20px; |
| 75 | + border-radius: 8px; |
| 76 | + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); |
77 | 77 | }
|
78 | 78 |
|
79 |
| -.footer a:hover { |
80 |
| - color: #45a049; |
81 |
| - text-decoration: underline; |
| 79 | +/* Botones */ |
| 80 | +.button-container { |
| 81 | + display: flex; |
| 82 | + justify-content: center; |
| 83 | + gap: 15px; |
| 84 | + margin: 25px 0; |
82 | 85 | }
|
83 | 86 |
|
84 |
| -/* Skip button styles */ |
85 |
| -.skip-button { |
86 |
| - background-color: #e74c3c; /* Red color to differentiate from green buttons */ |
87 |
| - color: white; |
88 |
| - padding: 10px 20px; |
| 87 | +.game-button { |
| 88 | + padding: 12px 25px; |
89 | 89 | border: none;
|
90 |
| - border-radius: 5px; |
91 |
| - cursor: pointer; |
| 90 | + border-radius: 8px; |
92 | 91 | font-size: 1rem;
|
| 92 | + font-weight: 600; |
| 93 | + cursor: pointer; |
93 | 94 | transition: all 0.3s ease;
|
94 |
| - margin: 10px; |
| 95 | + text-transform: uppercase; |
| 96 | + letter-spacing: 0.5px; |
95 | 97 | }
|
96 | 98 |
|
97 |
| -.skip-button:hover { |
98 |
| - background-color: #c0392b; /* Darker red on hover */ |
99 |
| - transform: scale(1.05); /* Slight grow effect on hover */ |
| 99 | +.start-button { |
| 100 | + background-color: #4CAF50; |
| 101 | + color: white; |
| 102 | +} |
| 103 | + |
| 104 | +.language-button { |
| 105 | + background-color: #2196F3; |
| 106 | + color: white; |
| 107 | +} |
| 108 | + |
| 109 | +.pause-button { |
| 110 | + background-color: #FFA000; |
| 111 | + color: white; |
| 112 | +} |
| 113 | + |
| 114 | +.reset-button { |
| 115 | + background-color: #f44336; |
| 116 | + color: white; |
100 | 117 | }
|
101 | 118 |
|
102 |
| -.skip-button:active { |
103 |
| - transform: scale(0.95); /* Slight shrink effect when clicked */ |
| 119 | +.game-button:hover { |
| 120 | + transform: translateY(-2px); |
| 121 | + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); |
104 | 122 | }
|
105 | 123 |
|
106 |
| -/* If you want to add an icon (optional) */ |
107 |
| -.skip-button i { |
108 |
| - margin-right: 5px; |
| 124 | +.game-button:active { |
| 125 | + transform: translateY(0); |
109 | 126 | }
|
0 commit comments