-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
484 lines (443 loc) · 11 KB
/
styles.css
File metadata and controls
484 lines (443 loc) · 11 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
/* Variáveis para consistência de cores */
:root {
--roxo-principal: #650d8d; /* Roxo Escuro */
--verde-agua: #42b89d; /* Verde-Água (para Cadastro/Histórico) */
--roxo-claro: #8a4ba8; /* Roxo mais claro para botões de ferramentas */
--roxo-rodape: #4d236d; /* Roxo ainda mais escuro para o rodapé */
--fundo-xadrez: #f0f0f8; /* Fundo quase branco */
--cor-texto: #333;
--cor-fundo-calculadora: #fefefe; /* Fundo interno do modal */
--cor-resultado-calculadora: #42b89d; /* Resultado em verde-água */
--cor-erro: #e74c3c;
}
body {
font-family: 'Inter', Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
margin: 0;
background-color: var(--fundo-xadrez);
color: var(--cor-texto);
position: relative;
}
/* Fundo Xadrez Claro */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(138, 75, 168, 0.1) 20px),
repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(138, 75, 168, 0.1) 20px);
opacity: 0.8;
z-index: -1;
}
/* --- LAYOUT SUPERIOR (Header) --- */
.header-top {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 30px;
box-sizing: border-box;
background-color: rgba(255, 255, 255, 0.9); /* Fundo semi-transparente para destaque */
border-bottom: 2px solid var(--roxo-claro);
z-index: 10;
}
.header-left {
display: flex;
align-items: center;
gap: 10px;
}
.logo {
width: 150px; /* Tamanho ajustado para mobile/desktop */
height: auto;
border-radius: 8px;
}
.site-title {
color: var(--roxo-principal);
font-size: 1.8rem;
font-weight: 800;
}
/* Botões do Topo (Login e Cadastro) */
.top-buttons {
display: flex;
gap: 10px;
}
.top-button {
padding: 8px 15px;
border: 2px solid var(--roxo-principal);
border-radius: 8px;
cursor: pointer;
font-size: 0.9rem;
font-weight: bold;
transition: all 0.3s;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.login {
background-color: transparent;
color: var(--roxo-principal);
}
.cadastro {
background-color: var(--verde-agua);
color: white;
border-color: var(--verde-agua);
}
.top-button:hover {
opacity: 0.9;
transform: translateY(-1px);
}
/* --- CONTEÚDO PRINCIPAL (Menu) --- */
.container {
width: 95%;
max-width: 1100px;
text-align: center;
padding: 40px 20px;
flex-grow: 1;
}
.main-heading {
color: var(--roxo-principal);
font-size: 2.2rem;
margin-bottom: 30px;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}
/* BOTÕES PRINCIPAIS: Alinhados em 4 colunas */
.botoes-principais {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin-bottom: 40px;
margin-top: 20px;
}
/* Estilo geral para botões de ferramenta */
.botao-ferramenta {
background-color: var(--roxo-claro);
border: none;
border-radius: 15px;
padding: 25px 15px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
color: white;
min-height: 120px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
text-align: center;
position: relative;
overflow: hidden;
}
.botao-ferramenta::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transition: opacity 0.3s;
}
.botao-ferramenta:hover {
background-color: var(--roxo-principal);
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.botao-ferramenta:hover::after {
opacity: 0;
}
/* Ícones dentro dos botões de ferramenta */
.botao-ferramenta i {
font-size: 2.5rem;
margin-bottom: 8px;
}
.botao-ferramenta .label {
font-size: 1.1rem;
font-weight: 700;
}
/* BOTÕES SECUNDÁRIOS: Cadastrar e Histórico */
.botoes-secundarios {
display: flex;
gap: 20px;
width: 90%;
max-width: 600px;
margin: 40px auto;
justify-content: center;
}
/* Estilo para Cadastrar/Histórico (Verde-Água) */
.botao-secundario {
flex: 1;
padding: 15px 30px;
font-size: 1.1rem;
font-weight: bold;
color: white;
background-color: var(--verde-agua);
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.botao-secundario:hover {
background-color: #35987d;
transform: scale(1.02);
}
/* --- RODAPÉ SOBRE --- */
.rodape-sobre {
width: 100%;
background-color: var(--roxo-rodape);
color: white;
padding: 40px 0;
text-align: center;
margin-top: auto; /* Garante que fique no final */
}
.rodape-sobre h2 {
font-size: 1.6rem;
margin-bottom: 15px;
color: white;
}
.rodape-sobre p {
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
line-height: 1.6;
font-size: 0.95rem;
}
/* --- ESTILOS DO MODAL (Comum para Calculadora, Conversão, Regra de Três, Gotejamento) --- */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
display: none;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(4px);
overflow-y: auto;
opacity: 0;
transition: opacity 0.3s ease;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-content {
background-color: var(--cor-fundo-calculadora);
padding: 30px;
border-radius: 15px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
position: relative;
width: 80%;
max-width: 350px;
margin: 20px 0;
transform: translateY(-50px) scale(0.9);
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
opacity: 0;
}
.modal-overlay.active .modal-content {
transform: translateY(0) scale(1);
opacity: 1;
}
/* Botão de Fechar */
.close-btn {
position: absolute;
top: 10px;
right: 15px;
background: none;
border: none;
font-size: 2rem;
color: var(--roxo-principal);
cursor: pointer;
transition: color 0.2s;
line-height: 1;
}
.close-btn:hover {
color: var(--cor-erro);
transform: rotate(90deg);
}
/* Estilização da Calculadora/Conversão Interna */
.calculator-title {
color: var(--roxo-principal);
text-align: center;
margin-bottom: 25px;
font-size: 1.6em;
border-bottom: 3px solid var(--verde-agua);
padding-bottom: 10px;
font-weight: 700;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
display: block;
margin-bottom: 5px;
color: var(--roxo-principal);
font-weight: 600;
font-size: 0.9em;
text-align: left;
}
.input-group input, .input-group select {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 8px;
box-sizing: border-box;
font-size: 1em;
transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group input:focus, .input-group select:focus {
border-color: var(--roxo-principal);
box-shadow: 0 0 5px rgba(101, 13, 141, 0.5);
outline: none;
}
/* Botão Calcular/Converter */
.calculator-btn {
background-color: var(--verde-agua);
color: white;
padding: 14px 20px;
border: none;
border-radius: 10px;
cursor: pointer;
width: 100%;
font-size: 1.1em;
font-weight: 700;
transition: background-color 0.3s, transform 0.1s;
margin-top: 25px;
box-shadow: 0 4px 8px rgba(66, 184, 157, 0.4);
}
.calculator-btn:hover {
background-color: #35987d;
transform: translateY(-1px);
}
/* Display do Resultado */
.result-display {
margin-top: 30px;
padding-top: 15px;
border-top: 2px dashed #ddd;
text-align: center;
}
.result-display h3 {
color: var(--roxo-principal);
font-size: 1.1em;
margin-bottom: 10px;
}
.result-display .result-value {
display: block;
font-size: 2.2em;
font-weight: 800;
color: var(--cor-resultado-calculadora);
padding: 10px;
background-color: #e0f7f3;
border-radius: 10px;
word-break: break-all;
min-height: 40px; /* Garante que o box não suma */
display: flex;
justify-content: center;
align-items: center;
}
/* Layout de conversão e gotejamento */
.conversion-input-row {
display: flex;
gap: 10px;
}
.conversion-input-row .input-group {
flex: 1;
}
/* Estilo para a representação da regra de três */
.rot-visual {
display: flex;
justify-content: space-around;
font-size: 1.2em;
font-weight: bold;
margin-bottom: 20px;
color: var(--roxo-principal);
border: 1px solid var(--roxo-claro);
padding: 10px;
border-radius: 8px;
}
/* Borda padronizada para regra de três e gotejamento */
.rot-visual,
.regra-de-tres, /* caso use essa classe */
.gotejamento { /* caso tenha essa classe também */
border: 2px solid var(--roxo-claro);
border-radius: 10px;
padding: 15px;
background-color: var(--cor-fundo-calculadora);
box-shadow: 0 0 8px rgba(138, 75, 168, 0.2);
color: var(--roxo-principal);
}
/* Ajuste botão fechar (fechar modal) para regra de três/gotejamento */
.close-btn {
position: absolute;
top: 12px;
right: 15px;
font-size: 2.2rem;
color: var(--roxo-principal);
cursor: pointer;
transition: color 0.3s ease, transform 0.3s ease;
z-index: 10;
}
.close-btn:hover {
color: var(--cor-erro);
transform: rotate(90deg);
}
/* Garantir que o modal da regra de três tem posição relativa para o close-btn posicionar certo */
.modal-content.regra-de-tres-content {
position: relative;
padding: 30px 30px 40px 30px;
max-width: 480px;
background-color: var(--cor-fundo-calculadora);
border-radius: 15px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
/* Se a regra de três usar inputs específicos dentro, padronizar bordas deles também */
.regra-de-tres input[type="text"],
.regra-de-tres input[type="number"],
.regra-de-tres select {
border: 1.8px solid var(--roxo-claro);
border-radius: 8px;
padding: 10px 12px;
font-size: 1em;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.regra-de-tres input[type="text"]:focus,
.regra-de-tres input[type="number"]:focus,
.regra-de-tres select:focus {
border-color: var(--roxo-principal);
box-shadow: 0 0 6px rgba(101, 13, 141, 0.5);
outline: none;
}
/* Mensagens de erro */
.error-message {
color: var(--cor-erro);
font-weight: bold;
margin-top: 10px;
font-size: 0.9em;
}
/* Responsividade */
@media (max-width: 950px) {
.botoes-principais {
grid-template-columns: repeat(2, 1fr);
}
.container {
padding: 20px 10px;
}
}
@media (max-width: 600px) {
.botoes-principais {
grid-template-columns: 1fr;
}
.top-buttons {
flex-direction: column;
gap: 5px;
align-items: center;
}
.header-top {
padding: 10px 15px;
}
}