|
1 | | -/* Importando as fontes */ |
2 | 1 | @import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap'); |
3 | 2 |
|
4 | 3 | :root { |
5 | | - /* MODO ESCURO (Suas cores originais) */ |
6 | 4 | --bg-color: #282828; |
7 | | - --card-bg: #9D86CD; |
8 | | - --text-primary: #ffffff; |
9 | | - --text-dark: #282828; |
10 | | - --accent-blue: #98BFFF; |
11 | 5 | --nav-bg: #9D86CD; |
| 6 | + --card-bg: #8c98e3; |
| 7 | + --accent: #98BFFF; |
| 8 | + --secondary: #909ce8; |
| 9 | + --text-color: #ffffff; |
| 10 | + --text-dark: #282828; |
12 | 11 | --transition: 0.5s ease; |
13 | 12 | } |
14 | 13 |
|
15 | 14 | [data-theme="light"] { |
16 | | - /* MODO CLARO (Inversão harmônica) */ |
17 | 15 | --bg-color: #f0f0f0; |
| 16 | + --nav-bg: #909ce8; |
18 | 17 | --card-bg: #ffffff; |
19 | | - --text-primary: #282828; |
| 18 | + --text-color: #282828; |
20 | 19 | --text-dark: #282828; |
21 | | - --accent-blue: #909ce8; |
22 | | - --nav-bg: #8c98e3; |
23 | 20 | } |
24 | 21 |
|
25 | 22 | * { |
26 | | - margin: 0; |
27 | | - padding: 0; |
28 | | - box-sizing: border-box; |
| 23 | + margin: 0; padding: 0; box-sizing: border-box; |
29 | 24 | font-family: 'Alfa Slab One', serif; |
30 | | - transition: background var(--transition), color var(--transition); /* Isso faz o "suave" */ |
| 25 | + transition: background var(--transition), color var(--transition); |
31 | 26 | } |
32 | 27 |
|
33 | | -body { |
34 | | - background-color: var(--bg-color); |
35 | | - color: var(--text-primary); |
36 | | -} |
37 | | - |
38 | | -/* Ajuste nos Cards para usarem as variáveis */ |
39 | | -.card { |
40 | | - background-color: var(--card-bg); |
41 | | - color: var(--text-dark); |
42 | | - border: 4px solid var(--accent-blue); |
43 | | - padding: 20px; |
44 | | - border-radius: 15px; |
| 28 | +body { |
| 29 | + background-color: var(--bg-color); |
| 30 | + color: var(--text-color); |
| 31 | + overflow-x: hidden; |
45 | 32 | } |
46 | 33 |
|
47 | 34 | .navbar { |
48 | 35 | background-color: var(--nav-bg); |
| 36 | + padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; |
| 37 | + position: sticky; top: 0; z-index: 1000; |
49 | 38 | } |
50 | 39 |
|
| 40 | +.navbar ul { display: flex; list-style: none; gap: 15px; align-items: center; } |
| 41 | + |
| 42 | +.navbar a { text-decoration: none; color: var(--text-dark); font-size: 0.8rem; } |
| 43 | + |
51 | 44 | .theme-switch { |
52 | | - background-color: var(--text-dark); /* Cor escura que você pediu: #282828 */ |
53 | | - color: #ffffff; |
54 | | - border: 2px solid var(--accent); |
55 | | - padding: 8px 15px; |
56 | | - border-radius: 8px; |
57 | | - cursor: pointer; |
| 45 | + background: var(--text-dark); color: white; border: 2px solid var(--accent); |
| 46 | + padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.7rem; |
58 | 47 | font-family: 'Alfa Slab One', serif; |
59 | | - font-size: 12px; |
60 | | - transition: 0.3s; |
61 | 48 | } |
62 | 49 |
|
63 | | -.theme-switch:hover { |
64 | | - background-color: var(--accent); |
65 | | - color: var(--text-dark); |
| 50 | +.hero { text-align: center; padding: 80px 20px; background: linear-gradient(180deg, var(--nav-bg), transparent); } |
| 51 | + |
| 52 | +.hero h1 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 10px; } |
| 53 | + |
| 54 | +.container { max-width: 1100px; margin: 0 auto; padding: 20px; } |
| 55 | + |
| 56 | +.card { |
| 57 | + background-color: var(--card-bg); color: var(--text-dark); |
| 58 | + padding: 30px; border-radius: 20px; border: 4px solid var(--accent); |
| 59 | + margin-bottom: 20px; |
| 60 | +} |
| 61 | + |
| 62 | +.btn-primary, .btn-lesson { |
| 63 | + background-color: var(--bg-color); color: var(--accent); |
| 64 | + padding: 12px 20px; border-radius: 10px; border: none; cursor: pointer; |
| 65 | + text-decoration: none; display: inline-block; margin-top: 10px; |
| 66 | +} |
| 67 | + |
| 68 | +#codigo-editor { |
| 69 | + width: 100%; height: 150px; background: #1a1a1a; color: #4ade80; |
| 70 | + padding: 15px; font-family: monospace; border-radius: 10px; margin-top: 15px; font-size: 1rem; |
| 71 | +} |
| 72 | + |
| 73 | +#console-output { |
| 74 | + background: #000; padding: 15px; border-radius: 10px; margin-top: 10px; |
| 75 | + font-family: monospace; color: #fff; min-height: 50px; |
66 | 76 | } |
0 commit comments