|
5 | 5 | --nav-bg: #9D86CD; |
6 | 6 | --card-bg: #8c98e3; |
7 | 7 | --accent: #98BFFF; |
8 | | - --secondary: #909ce8; |
9 | 8 | --text-color: #ffffff; |
10 | 9 | --text-dark: #282828; |
11 | | - --transition: 0.5s ease; |
12 | 10 | } |
13 | 11 |
|
14 | 12 | [data-theme="light"] { |
15 | 13 | --bg-color: #f0f0f0; |
16 | 14 | --nav-bg: #909ce8; |
17 | 15 | --card-bg: #ffffff; |
18 | 16 | --text-color: #282828; |
19 | | - --text-dark: #282828; |
20 | 17 | } |
21 | 18 |
|
22 | 19 | * { |
23 | | - margin: 0; padding: 0; box-sizing: border-box; |
24 | | - font-family: 'Alfa Slab One', serif; |
25 | | - transition: background var(--transition), color var(--transition); |
| 20 | + margin: 0; |
| 21 | + padding: 0; |
| 22 | + box-sizing: border-box; |
| 23 | + font-family: 'Alfa Slab One', cursive; |
26 | 24 | } |
27 | 25 |
|
28 | | -body { |
29 | | - background-color: var(--bg-color); |
30 | | - color: var(--text-color); |
31 | | - overflow-x: hidden; |
| 26 | +body { |
| 27 | + background-color: var(--bg-color); |
| 28 | + color: var(--text-color); |
| 29 | + transition: background 0.4s, color 0.4s; |
32 | 30 | } |
33 | 31 |
|
34 | 32 | .navbar { |
35 | 33 | 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; |
| 34 | + padding: 15px 5%; |
| 35 | + display: flex; |
| 36 | + justify-content: space-between; |
| 37 | + align-items: center; |
38 | 38 | } |
39 | 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 | | - |
44 | | -.theme-switch { |
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; |
47 | | - font-family: 'Alfa Slab One', serif; |
| 40 | +.navbar ul { |
| 41 | + display: flex; |
| 42 | + list-style: none; |
| 43 | + gap: 15px; |
48 | 44 | } |
49 | 45 |
|
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; } |
| 46 | +.navbar a { |
| 47 | + text-decoration: none; |
| 48 | + color: var(--text-dark); |
| 49 | + font-size: 12px; |
| 50 | +} |
55 | 51 |
|
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; |
| 52 | +.theme-switch { |
| 53 | + background: var(--text-dark); |
| 54 | + color: white; |
| 55 | + border: 2px solid var(--accent); |
| 56 | + padding: 5px 10px; |
| 57 | + border-radius: 5px; |
| 58 | + cursor: pointer; |
| 59 | + font-family: 'Alfa Slab One', cursive; |
60 | 60 | } |
61 | 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; |
| 62 | +.container { |
| 63 | + max-width: 1000px; |
| 64 | + margin: 20px auto; |
| 65 | + padding: 20px; |
66 | 66 | } |
67 | 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; |
| 68 | +.card { |
| 69 | + background-color: var(--card-bg); |
| 70 | + color: var(--text-dark); |
| 71 | + padding: 25px; |
| 72 | + border-radius: 15px; |
| 73 | + border: 4px solid var(--accent); |
71 | 74 | } |
72 | 75 |
|
73 | | -#console-output { |
74 | | - background: #000; padding: 15px; border-radius: 10px; margin-top: 10px; |
75 | | - font-family: monospace; color: #fff; min-height: 50px; |
| 76 | +.btn-primary { |
| 77 | + background: var(--bg-color); |
| 78 | + color: var(--accent); |
| 79 | + padding: 10px 20px; |
| 80 | + border: none; |
| 81 | + border-radius: 8px; |
| 82 | + cursor: pointer; |
| 83 | + margin-top: 10px; |
| 84 | + display: inline-block; |
| 85 | + text-decoration: none; |
76 | 86 | } |
0 commit comments