-
Notifications
You must be signed in to change notification settings - Fork 0
/
contar123c.css
159 lines (133 loc) · 2.72 KB
/
contar123c.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Nunito';
}
body {
text-align: center;
color: #0c4fe1;
height: 100%;
}
h1 {
color: #EABE3F;
padding: 50px;
font-size: 40px;
}
.container {
background-color: none;
max-width: 80%;
margin: auto;
border: 3px solid #EABE3F;
border-radius: 20px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
padding: 50px 0;
justify-content: center;
align-items: center;
overflow: hidden; /* Evitar desbordamiento horizontal en dispositivos móviles */
}
.container2 {
background-color: none;
max-width: 80%;
margin: auto;
border: 3px solid #EABE3F;
border-radius: 20px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
padding: 50px 0;
justify-content: center;
align-items: center;
overflow: hidden; /* Evitar desbordamiento horizontal en dispositivos móviles */
}
.textosuperior {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 20px;
justify-content: center;
align-items: center;
color:black;
padding-right: 0.5em;
padding-left: 0.5em;
}
.pregunta {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 35px;
justify-content: center;
align-items: center;
padding-right: 0.5em;
padding-left: 0.5em;
}
.msj {
font-size: 30px;
height: 30px;
}
#buttons-container {
margin-top: 10px;
}
.guess-button {
width: 100px;
height: 100px;
border: 2px solid #000;
font-size: 50px;
margin-bottom: 20px;
border-radius: 50%;
cursor: pointer;
background-color: #4285f4;
color: white;
display: inline-flex;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
}
#play-again-button {
background-color: #4285f4;
border: 2px solid #000;
color: #fff;
padding: 10px 20px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
}
#play-again-button:hover {
background-color: #3367d6;
}
.game-image {
max-width: 100%;
height: auto;
object-fit: contain;
max-height: 200px;
margin-left: 2%;
margin-right: 2%;
box-sizing: border-box;
}
#score {
font-size: 20px;
margin-top: 20px;
}
#result {
font-size: 24px;
margin-top: 20px;
font-weight: bold;
}
/* Nuevo código para redimensionar imágenes en dispositivos móviles */
@media (max-width: 768px) {
.container, .container2 {
max-width: 80%; /* Ancho completo en dispositivos móviles */
flex-wrap: wrap; /* Permitir envolver las imágenes en múltiples líneas */
}
.guess-button {
width: 50px;
height: 50px;
font-size: 25px;
margin-bottom: 10px;
}
.pregunta {
font-size: 30px;
}
.game-image {
max-width: 80%;
}
}