|
1 | | -/* Importando a fonte Alfa Slab One do Google Fonts */ |
| 1 | +/* Importando as fontes */ |
2 | 2 | @import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap'); |
3 | 3 |
|
4 | 4 | :root { |
5 | | - --bg-dark: #282828; /* Cor Escura Principal */ |
6 | | - --purple-main: #9D86CD; /* Roxo Médio */ |
7 | | - --purple-light: #8c98e3; /* Roxo Azulado */ |
8 | | - --blue-light: #98BFFF; /* Azul Claro */ |
9 | | - --blue-accent: #909ce8; /* Azul de destaque */ |
10 | | - --text-dark: #282828; /* Texto Escuro para contraste */ |
11 | | - --text-light: #ffffff; /* Texto Branco para fundos escuros */ |
| 5 | + /* MODO ESCURO (Suas cores originais) */ |
| 6 | + --bg-color: #282828; |
| 7 | + --card-bg: #9D86CD; |
| 8 | + --text-primary: #ffffff; |
| 9 | + --text-dark: #282828; |
| 10 | + --accent-blue: #98BFFF; |
| 11 | + --nav-bg: #9D86CD; |
| 12 | + --transition: 0.5s ease; |
| 13 | +} |
| 14 | + |
| 15 | +[data-theme="light"] { |
| 16 | + /* MODO CLARO (Inversão harmônica) */ |
| 17 | + --bg-color: #f0f0f0; |
| 18 | + --card-bg: #ffffff; |
| 19 | + --text-primary: #282828; |
| 20 | + --text-dark: #282828; |
| 21 | + --accent-blue: #909ce8; |
| 22 | + --nav-bg: #8c98e3; |
12 | 23 | } |
13 | 24 |
|
14 | 25 | * { |
15 | 26 | margin: 0; |
16 | 27 | padding: 0; |
17 | 28 | box-sizing: border-box; |
18 | | - font-family: 'Alfa Slab One', serif; /* Aplicado a todos os dispositivos */ |
19 | | -} |
20 | | - |
21 | | -html { |
22 | | - scroll-behavior: smooth; |
| 29 | + font-family: 'Alfa Slab One', serif; |
| 30 | + transition: background var(--transition), color var(--transition); /* Isso faz o "suave" */ |
23 | 31 | } |
24 | 32 |
|
25 | 33 | body { |
26 | | - background-color: var(--bg-dark); |
27 | | - color: var(--text-light); |
28 | | - line-height: 1.6; |
29 | | -} |
30 | | - |
31 | | -/* --- NAVBAR --- */ |
32 | | -.navbar { |
33 | | - background-color: var(--purple-main); |
34 | | - padding: 1rem 5%; |
35 | | - display: flex; |
36 | | - justify-content: space-between; |
37 | | - align-items: center; |
38 | | - position: sticky; |
39 | | - top: 0; |
40 | | - z-index: 1000; |
41 | | - box-shadow: 0 4px 10px rgba(0,0,0,0.3); |
42 | | -} |
43 | | - |
44 | | -.navbar .logo { |
45 | | - font-size: 1.5rem; |
46 | | - color: var(--text-dark); |
47 | | -} |
48 | | - |
49 | | -.navbar .logo span { |
50 | | - color: var(--text-light); |
51 | | -} |
52 | | - |
53 | | -.navbar ul { |
54 | | - display: flex; |
55 | | - list-style: none; |
56 | | - gap: 20px; |
57 | | - align-items: center; |
58 | | -} |
59 | | - |
60 | | -.navbar ul li a { |
61 | | - text-decoration: none; |
62 | | - color: var(--text-dark); |
63 | | - font-size: 0.9rem; |
64 | | - transition: 0.3s; |
65 | | -} |
66 | | - |
67 | | -.navbar ul li a:hover { |
68 | | - color: var(--text-light); |
69 | | -} |
70 | | - |
71 | | -/* Botão Especial Comunidade */ |
72 | | -.btn-comunidade { |
73 | | - background-color: var(--blue-light); |
74 | | - padding: 8px 15px; |
75 | | - border-radius: 8px; |
76 | | - border: 2px solid var(--text-dark); |
77 | | -} |
78 | | - |
79 | | -/* --- HERO SECTION --- */ |
80 | | -.hero { |
81 | | - text-align: center; |
82 | | - padding: 80px 20px; |
83 | | - background: linear-gradient(180deg, var(--purple-main) 0%, var(--bg-dark) 100%); |
84 | | -} |
85 | | - |
86 | | -.hero h1 { |
87 | | - font-size: 2.5rem; |
88 | | - color: var(--text-dark); |
89 | | - margin-bottom: 20px; |
90 | | - text-shadow: 2px 2px var(--blue-light); |
91 | | -} |
92 | | - |
93 | | -.hero h1 span { |
94 | | - color: var(--text-light); |
95 | | - text-shadow: 2px 2px var(--bg-dark); |
96 | | -} |
97 | | - |
98 | | -.hero p { |
99 | | - color: var(--blue-light); |
100 | | - max-width: 700px; |
101 | | - margin: 0 auto; |
102 | | -} |
103 | | - |
104 | | -/* --- CONTAINER E CARDS --- */ |
105 | | -.container { |
106 | | - max-width: 1100px; |
107 | | - margin: 40px auto; |
108 | | - padding: 0 20px; |
109 | | -} |
110 | | - |
111 | | -.cards-container { |
112 | | - display: grid; |
113 | | - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); |
114 | | - gap: 30px; |
115 | | - margin-top: 40px; |
| 34 | + background-color: var(--bg-color); |
| 35 | + color: var(--text-primary); |
116 | 36 | } |
117 | 37 |
|
| 38 | +/* Ajuste nos Cards para usarem as variáveis */ |
118 | 39 | .card { |
119 | | - background-color: var(--purple-light); |
120 | | - padding: 30px; |
121 | | - border-radius: 20px; |
122 | | - border: 4px solid var(--blue-light); |
| 40 | + background-color: var(--card-bg); |
123 | 41 | color: var(--text-dark); |
124 | | - transition: transform 0.3s ease; |
125 | | -} |
126 | | - |
127 | | -.card:hover { |
128 | | - transform: translateY(-10px); |
129 | | - background-color: var(--blue-light); |
| 42 | + border: 4px solid var(--accent-blue); |
| 43 | + padding: 20px; |
| 44 | + border-radius: 15px; |
130 | 45 | } |
131 | 46 |
|
132 | | -.card h3 { |
133 | | - margin-bottom: 15px; |
134 | | - font-size: 1.4rem; |
| 47 | +.navbar { |
| 48 | + background-color: var(--nav-bg); |
135 | 49 | } |
136 | 50 |
|
137 | | -.badge { |
138 | | - background-color: var(--bg-dark); |
139 | | - color: var(--blue-light); |
| 51 | +/* Estilo do Botão de Troca */ |
| 52 | +.theme-switch { |
| 53 | + background: var(--text-primary); |
| 54 | + color: var(--bg-color); |
| 55 | + border: none; |
140 | 56 | padding: 5px 10px; |
141 | 57 | border-radius: 5px; |
142 | | - font-size: 0.7rem; |
143 | | - display: inline-block; |
144 | | - margin-bottom: 10px; |
145 | | -} |
146 | | - |
147 | | -/* --- BOTÕES --- */ |
148 | | -.btn-primary, .btn-lesson { |
149 | | - background-color: var(--bg-dark); |
150 | | - color: var(--blue-light); |
151 | | - border: none; |
152 | | - padding: 12px 25px; |
153 | | - font-family: 'Alfa Slab One', serif; |
154 | 58 | cursor: pointer; |
155 | | - border-radius: 10px; |
156 | | - transition: 0.3s; |
157 | | - text-decoration: none; |
158 | | - display: inline-block; |
159 | | - margin-top: 15px; |
160 | | -} |
161 | | - |
162 | | -.btn-primary:hover, .btn-lesson:hover { |
163 | | - background-color: var(--text-light); |
164 | | - color: var(--bg-dark); |
165 | | - transform: scale(1.05); |
166 | | -} |
167 | | - |
168 | | -/* --- EDITOR DE CÓDIGO (PRÁTICAS) --- */ |
169 | | -#tutorial-texto { |
170 | | - margin-bottom: 40px; |
171 | | -} |
172 | | - |
173 | | -#codigo-editor, #campo-codigo { |
174 | | - width: 100%; |
175 | | - background-color: #1a1a1a; |
176 | | - color: var(--blue-light); |
177 | | - border: 3px solid var(--purple-main); |
178 | | - padding: 15px; |
179 | | - border-radius: 10px; |
180 | | - font-family: monospace !important; /* Código precisa ser monospace */ |
181 | | - font-size: 1.1rem; |
182 | | -} |
183 | | - |
184 | | -#console-output, #console-fake { |
185 | | - background-color: #000; |
186 | | - color: #4ade80; |
187 | | - padding: 15px; |
188 | | - border-radius: 10px; |
189 | | - margin-top: 15px; |
190 | | - font-family: monospace !important; |
191 | | -} |
192 | | - |
193 | | -/* --- FOOTER --- */ |
194 | | -footer { |
195 | | - border-top: 2px solid var(--purple-main); |
196 | | - padding: 40px; |
197 | | - background-color: #222; |
198 | | -} |
199 | | - |
200 | | -/* Responsividade para Celulares */ |
201 | | -@media (max-width: 768px) { |
202 | | - .navbar { |
203 | | - flex-direction: column; |
204 | | - gap: 15px; |
205 | | - } |
206 | | - .hero h1 { |
207 | | - font-size: 1.8rem; |
208 | | - } |
| 59 | + font-size: 0.7rem; |
| 60 | + margin-left: 10px; |
209 | 61 | } |
0 commit comments