-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
136 lines (121 loc) · 2.53 KB
/
styles.css
File metadata and controls
136 lines (121 loc) · 2.53 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
/* Tema oscuro (default) */
--bg-primary: #000000;
--text-primary: #ffffff;
--shadow-color: rgba(0, 0, 0, 0.5);
}
[data-theme="light"] {
--bg-primary: #ffffff;
--text-primary: #000000;
--shadow-color: rgba(0, 0, 0, 0.1);
}
html, body {
height: 100%;
font-family: "Inter", sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
overflow: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}
canvas#bg {
position: fixed;
top: 0;
left: 0;
z-index: 0;
width: 100%;
height: 100%;
}
/* Botón de tema CENTRADO */
.theme-toggle {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1000;
background: var(--bg-primary);
border: 1px solid var(--text-primary);
border-radius: 50%;
width: 80px;
height: 80px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transition: all 0.3s ease;
box-shadow: 0 8px 32px var(--shadow-color);
opacity: 0.9;
}
.theme-toggle:hover {
transform: translate(-50%, -50%) scale(1.1);
opacity: 1;
box-shadow: 0 12px 40px var(--shadow-color);
}
[data-theme="light"] .theme-icon {
content: "☀️";
}
/* Efectos de aparición */
.theme-toggle {
animation: buttonAppear 0.8s ease-out;
}
@keyframes buttonAppear {
from {
opacity: 0;
transform: translate(-50%, -50%) scale(0.8);
}
to {
opacity: 0.9;
transform: translate(-50%, -50%) scale(1);
}
}
/* Crédito abajo */
.credit {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
font-family: "Inter", sans-serif;
font-size: 0.9rem;
opacity: 0.7;
transition: all 0.3s ease;
}
.credit a {
color: var(--text-primary);
text-decoration: none;
padding: 8px 16px;
border-radius: 20px;
background: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .credit a {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(0, 0, 0, 0.1);
}
.credit a:hover {
opacity: 1;
transform: translateY(-2px);
}
/* Efecto de aparición para el crédito */
.credit {
animation: creditAppear 1s ease-out 0.5s both;
}
@keyframes creditAppear {
from {
opacity: 0;
transform: translateX(-50%) translateY(20px);
}
to {
opacity: 0.7;
transform: translateX(-50%) translateY(0);
}
}