Skip to content

Commit 1ec0d1a

Browse files
authored
Update styles.css
1 parent 0aebae4 commit 1ec0d1a

File tree

1 file changed

+81
-64
lines changed

1 file changed

+81
-64
lines changed

styles.css

Lines changed: 81 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,126 @@
11
/* Estilos generales */
22
body {
3-
font-family: 'Arial', sans-serif;
3+
font-family: 'Poppins', sans-serif;
44
background: linear-gradient(135deg, #eef3f7, #cfd9df);
55
margin: 0;
66
padding: 0;
77
display: flex;
88
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;
1111
min-height: 100vh;
1212
color: #333;
1313
}
1414

15-
/* Header */
15+
/* Header y título */
1616
#header {
17-
margin: 20px auto; /* Changed margin-top to margin auto */
17+
margin: 20px auto;
1818
width: 100%;
1919
max-width: 800px;
2020
text-align: center;
21-
padding: 0 20px;
21+
padding: 20px;
2222
box-sizing: border-box;
2323
}
2424

2525
#header h1 {
26-
font-size: 2.5rem;
26+
font-size: 2.8rem;
2727
color: #222;
28-
margin-bottom: 15px;
28+
margin-bottom: 30px;
2929
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);
3233
}
3334

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;
4244
}
4345

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;
5455
}
5556

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);
5861
}
5962

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;
7070
}
7171

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);
7777
}
7878

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;
8285
}
8386

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;
8989
border: none;
90-
border-radius: 5px;
91-
cursor: pointer;
90+
border-radius: 8px;
9291
font-size: 1rem;
92+
font-weight: 600;
93+
cursor: pointer;
9394
transition: all 0.3s ease;
94-
margin: 10px;
95+
text-transform: uppercase;
96+
letter-spacing: 0.5px;
9597
}
9698

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;
100117
}
101118

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);
104122
}
105123

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);
109126
}

0 commit comments

Comments
 (0)