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
28 |
}
|
|
|
1 |
+
/* Estilo base para o corpo da página */
|
2 |
body {
|
3 |
+
font-family: 'Roboto', sans-serif;
|
4 |
+
margin: 0;
|
5 |
+
padding: 0;
|
6 |
+
display: flex;
|
7 |
+
flex-direction: column;
|
8 |
+
align-items: center;
|
9 |
+
justify-content: center;
|
10 |
+
min-height: 100vh;
|
11 |
+
overflow-x: hidden;
|
12 |
}
|
13 |
|
14 |
+
/* Estilos para seções e containers */
|
15 |
+
.section, .logo-container, .loading-container, .categories-container, .emoji-line-container {
|
16 |
+
display: flex;
|
17 |
+
justify-content: center;
|
18 |
+
width: 100%;
|
19 |
}
|
20 |
|
21 |
+
.section {
|
22 |
+
flex-wrap: wrap;
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
+
.categories-container {
|
26 |
+
display: grid;
|
27 |
+
grid-template-columns: repeat(4, 1fr);
|
28 |
+
gap: 5px;
|
29 |
+
padding: 5px;
|
30 |
+
box-sizing: border-box;
|
31 |
+
justify-items: center; /* Add this line */
|
32 |
}
|
33 |
|
34 |
+
/* Estilos específicos para elementos internos */
|
35 |
+
.logo, .loading-gif {
|
36 |
+
max-width: 100%;
|
37 |
+
height: auto;
|
38 |
+
}
|
39 |
+
|
40 |
+
.loading-container {
|
41 |
+
align-items: center;
|
42 |
+
height: 500px;
|
43 |
+
}
|
44 |
+
|
45 |
+
.emoji-thumbnail, .emoji-thumbnail:hover, .emoji-thumbnail:active, .emoji-thumbnail:focus {
|
46 |
+
font-size: 1vw;
|
47 |
+
height: 60px;
|
48 |
+
width: 60px;
|
49 |
+
align-items: center;
|
50 |
+
border: 1px solid #ccc;
|
51 |
+
border-radius: 10px;
|
52 |
+
padding: 10px;
|
53 |
+
margin: 2px;
|
54 |
+
box-sizing: border-box;
|
55 |
+
transition: transform 0.3s ease;
|
56 |
+
transform: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
.emoji-thumbnail:hover {
|
60 |
+
transform: scale(1.05);
|
61 |
+
}
|
62 |
+
|
63 |
+
.emoji-line-container {
|
64 |
+
overflow-x: auto;
|
65 |
+
white-space: nowrap;
|
66 |
+
}
|
67 |
+
|
68 |
+
.emoji {
|
69 |
+
font-size: 3.5vw;
|
70 |
+
padding: 1vw;
|
71 |
+
}
|
72 |
+
|
73 |
+
/* Estilos para o campo de emojis selecionados */
|
74 |
+
#selected-emojis, #selected-emojis:focus {
|
75 |
+
width: 150%;
|
76 |
+
height: 50px;
|
77 |
+
line-height: 50px;
|
78 |
+
padding: 10px 20px;
|
79 |
+
font-size: 16px;
|
80 |
+
border: 3px solid #ddd;
|
81 |
+
border-radius: 30px;
|
82 |
+
box-shadow: 0 5px 10px rgba(0,0,0,0.15);
|
83 |
+
transition: border-color 0.3s, box-shadow 0.3s;
|
84 |
+
display: block;
|
85 |
+
margin: 0 auto 30px;
|
86 |
+
text-align: center;
|
87 |
+
box-sizing: border-box;
|
88 |
+
flex-grow: 1;
|
89 |
+
}
|
90 |
+
|
91 |
+
#selected-emojis:focus {
|
92 |
+
outline: none;
|
93 |
+
border-color: #007BFF;
|
94 |
+
box-shadow: 0 0 15px rgba(0,123,255,0.5);
|
95 |
+
}
|
96 |
+
|
97 |
+
/* Estilos para botões e ícones */
|
98 |
+
#generate-btn, #start-speech-recognition {
|
99 |
+
padding: 10px 20px;
|
100 |
+
display: flex;
|
101 |
+
align-items: center;
|
102 |
+
justify-content: center;
|
103 |
+
}
|
104 |
+
|
105 |
+
#generate-btn {
|
106 |
+
background-color: #FFA500;
|
107 |
+
transition: background-color 0.3s;
|
108 |
+
}
|
109 |
+
|
110 |
+
#generate-btn.clicked {
|
111 |
+
background-color: #007BFF;
|
112 |
+
}
|
113 |
+
|
114 |
+
#start-speech-recognition {
|
115 |
+
height: 50px; /* Altura correspondente à da caixa de texto */
|
116 |
+
padding: 10px 20px; /* Ajuste o preenchimento para corresponder à caixa de entrada */
|
117 |
+
display: flex; /* Isso irá aplicar a exibição flexível ao botão */
|
118 |
+
align-items: center; /* Isso centralizará o ícone verticalmente */
|
119 |
+
justify-content: center; /* Isso centralizará o ícone horizontalmente */
|
120 |
+
margin: 0; /* Remover qualquer margem externa para alinhamento */
|
121 |
+
}
|
122 |
+
|
123 |
+
.fas.fa-microphone {
|
124 |
+
/* Se o ícone não estiver centralizado, ajuste com o seguinte: */
|
125 |
+
margin: 0; /* Remove a margem do ícone */
|
126 |
+
}
|
127 |
+
|
128 |
+
#start-speech-recognition.listening {
|
129 |
+
background-color: #4CAF50;
|
130 |
+
color: white;
|
131 |
+
}
|
132 |
+
|
133 |
+
.emoji-clicked {
|
134 |
+
transform: scale(0.4);
|
135 |
+
transition: transform 0.4s;
|
136 |
+
}
|
137 |
+
|
138 |
+
/* Media Queries para ajustar layout em telas menores */
|
139 |
+
@media (max-width: 768px) {
|
140 |
+
.categories-container {
|
141 |
+
grid-template-columns: repeat(3, 1fr);
|
142 |
+
padding: 5px;
|
143 |
+
margin: 0 2px;
|
144 |
+
overflow-x: hidden;
|
145 |
+
}
|
146 |
+
|
147 |
+
.emoji {
|
148 |
+
font-size: 3.5vw;
|
149 |
+
padding: 1vw;
|
150 |
+
}
|
151 |
+
}
|
152 |
+
|
153 |
+
@media (max-width: 700px) {
|
154 |
+
.categories-container {
|
155 |
+
grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
|
156 |
+
justify-items: center;
|
157 |
+
}
|
158 |
+
|
159 |
+
.emoji-thumbnail {
|
160 |
+
font-size: 1vw;
|
161 |
+
height: 60px;
|
162 |
+
width: 60px;
|
163 |
+
border: 1px solid #ccc;
|
164 |
+
border-radius: 10px;
|
165 |
+
padding: 10px;
|
166 |
+
margin: 2px;
|
167 |
+
box-sizing: border-box;
|
168 |
+
transition: transform 0.3s ease;
|
169 |
+
transform: none;
|
170 |
+
}
|
171 |
+
|
172 |
+
.emoji {
|
173 |
+
font-size: 6.5vw;
|
174 |
+
}
|
175 |
+
|
176 |
+
.logo-container, .categories-container, .emoji-line-container {
|
177 |
+
padding: 0;
|
178 |
+
}
|
179 |
+
}
|
180 |
+
|
181 |
+
/* Estilos gerais para flex containers */
|
182 |
+
.flex.items-center {
|
183 |
+
display: flex;
|
184 |
+
align-items: center; /* This ensures vertical alignment */
|
185 |
+
gap: 4px; /* Maintain the gap as provided */
|
186 |
+
width: 100%; /* Add this line if not present */
|
187 |
+
}
|
188 |
+
|
189 |
+
.flex.items-center.gap-4 {
|
190 |
+
display: flex;
|
191 |
+
align-items: center; /* Isso deve alinhar verticalmente */
|
192 |
+
gap: 4px; /* Espaçamento horizontal entre itens */
|
193 |
+
}
|
194 |
+
|
195 |
+
.emoji-thumbnail:focus, #generate-btn:focus, #start-speech-recognition:focus {
|
196 |
+
outline: 3px solid #007BFF; /* Um contorno azul para indicar foco */
|
197 |
+
}
|
198 |
+
|
199 |
+
@media (prefers-reduced-motion: reduce) {
|
200 |
+
.emoji-thumbnail:hover {
|
201 |
+
transform: none;
|
202 |
+
}
|
203 |
}
|