-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestilo.css
More file actions
89 lines (77 loc) · 1.87 KB
/
Copy pathestilo.css
File metadata and controls
89 lines (77 loc) · 1.87 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
/* Reset e layout básico */
body, html {
margin: 0; padding: 0; height: 100%;
display: flex; justify-content: center; align-items: center;
font-family: Arial, sans-serif;
transition: background-color 0.5s, color 0.5s;
}
/* Container do jogo */
.jogo {
text-align: center;
max-width: 400px;
width: 90vw;
}
/* Tabuleiro com grid 3x3 */
.tabuleiro {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin: 20px 0;
}
/* Células quadradas, responsivas e clicáveis */
.celula {
background: #f0f0f0;
border: 2px solid #333;
aspect-ratio: 1 / 1;
font-size: 3rem;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
user-select: none;
transition: background-color 0.5s, color 0.5s, border-color 0.5s;
}
/* Tema claro padrão */
body {
background-color: #ffffff;
color: #222222;
}
/* Tema escuro */
body.dark-mode {
background-color: #121212;
color: #e0e0e0;
}
/* Ajustes das células no tema escuro */
body.dark-mode .celula {
background: #1e1e1e;
border-color: #bbb;
color: #e0e0e0;
}
/* Botão reiniciar estilizado */
button#reiniciar {
padding: 10px 20px;
font-size: 1rem;
cursor: pointer;
border: none;
border-radius: 5px;
background-color: #333;
color: white;
transition: background-color 0.3s;
}
button#reiniciar:hover {
background-color: #555;
}
/* Mensagem de status com destaque */
#status {
font-size: 1.2rem;
font-weight: bold;
margin-top: 10px;
min-height: 1.5em;
}
/* Feedback visual ao passar o mouse */
.celula:hover {
background-color: #ddd;
}
body.dark-mode .celula:hover {
background-color: #333;
}