-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
230 lines (197 loc) · 5.44 KB
/
index.html
File metadata and controls
230 lines (197 loc) · 5.44 KB
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
@font-face {
font-family: 'JapanTitle';
src: url('fonts/fuente.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
margin:0; padding:0;
font-family: system-ui, sans-serif;
background: url('fondo.jpg') no-repeat center center fixed;
background-size: cover;
}
/* título estilo anime */
.title {
text-align:center;
color: #ff69b4; /* rosa chicle */
font-family: 'JapanTitle', system-ui, sans-serif;
font-size: clamp(32px, 9vw, 72px);
text-decoration: underline;
margin-top: 50px; /* antes 20px, ahora más espacio desde arriba */
margin-bottom: 15px;
text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}
.bingo {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 5px;
width: 95%;
max-width: 700px;
margin: 10px auto 30px auto;
border: 3px solid #ff69b4; /* rosa chicle */
padding: 8px;
background: rgba(255,255,255,0.2);
}
.cell {
padding: 18px 6px;
background: rgba(255,255,255,0.9);
text-align: center;
cursor: pointer;
user-select: none;
border: 2px solid #000; /* se queda negro */
font-weight: bold;
color: #000;
font-size: clamp(12px, 3.2vw, 18px);
word-wrap: break-word;
}
/* secciones */
.board-section {
margin-bottom: 50px;
}
/* más separación entre el primer y segundo bingo */
.board-section + .board-section {
margin-top: 40px;
}
.board-section h2 {
text-align: center;
color: #ff69b4; /* rosa chicle */
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
font-size: clamp(24px, 4.5vw, 40px); /* aprox mitad del título principal */
margin-top: 20px;
margin-bottom: 15px;
text-decoration: underline; /* subrayado */
}
/* barra superior */
.top-bar {
display:flex;
justify-content: flex-end;
align-items:center;
gap:10px;
padding: 5px 12px;
color:#fff;
font-size: 16px; /* subimos tamaño base */
}
/* botones genéricos */
.btn {
padding: 8px 14px;
border-radius: 8px;
border: 2px solid #ff69b4;
cursor: pointer;
font-weight: 600;
font-size: 14px;
background-color: #ff69b4; /* rosa chicle */
color: #ffffff;
}
.btn:hover {
filter: brightness(1.1);
}
.btn-danger {
background:#c0392b;
border-color:#c0392b;
color:#fff;
}
.board-actions {
display:flex;
justify-content: center;
gap:10px;
margin-bottom: 30px;
}
.personal-header {
display: flex;
justify-content: center;
align-items: baseline;
gap: 12px;
}
.personal-header-row {
display: flex;
justify-content: space-between;
align-items: baseline;
width: 95%;
max-width: 700px; /* igual que el bingo */
margin: 0 auto 5px auto;
}
/* el h2 dentro mantiene el estilo chicle que ya tenías */
.personal-header-row h2 {
text-align: left;
color: #ff69b4; /* rosa chicle */
text-shadow: 0 2px 4px rgba(0,0,0,0.6);
font-size: clamp(24px, 4.5vw, 40px);
text-decoration: underline;
margin: 0;
}
/* marcador "Envidia" a la derecha, amarillo y con la fuente anime */
.score-label {
font-family: 'JapanTitle', system-ui, sans-serif;
font-size: 1.8em; /* un poco más pequeño que el h2 */
color: #ffd800; /* amarillo brillante */
text-decoration: underline;
}
/* mensaje de ganador */
.winner-msg {
text-align: center;
font-weight: 900;
font-size: clamp(20px, 4vw, 30px);
color: #ffd800; /* amarillo brillante */
text-decoration: underline;
margin: 5px 0 15px 0;
}
#userInfo {
font-weight: 700;
font-size: 16px;
color: #ffd800; /* amarillo brillante */
}
/* un pelín más grande aún en pantallas muy pequeñas */
@media (max-width: 480px) {
.btn {
font-size: 15px;
padding: 10px 16px;
}
.board-section h2 {
font-size: 1.5rem;
}
.cell {
padding: 20px 4px;
font-size: 14px;
}
#userInfo {
font-size: 17px;
}
.score-label {
font-size: 1.3em;
}
}
</style>
</head>
<body>
<h1 class="title">Bingo de Envidiosos</h1>
<div class="top-bar">
<span id="userInfo"></span>
<button id="logoutBtn" class="btn" style="display:none;">🚪 Cerrar sesión</button>
</div>
<section class="board-section">
<h2>Bingo general</h2>
<div id="bingo-global" class="bingo"></div>
<div class="board-actions">
<button id="undoGlobal" class="btn">⟲ Deshacer</button>
<button id="resetGlobal" class="btn btn-danger" style="display:none;">🧹 Limpiar bingo</button>
</div>
</section>
<section class="board-section">
<div class="personal-header-row">
<h2>Tu bingo personal</h2>
<span id="scoreLabel" class="score-label">Envidia: 0</span>
</div>
<div id="bingo-personal" class="bingo"></div>
<p id="winnerMsg" class="winner-msg"></p>
<div class="board-actions">
<button id="undoPersonal" class="btn">⟲ Deshacer</button>
</div>
</section>
<script type="module" src="app.js"></script>
</body>
</html>