-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
95 lines (83 loc) · 2.08 KB
/
Copy pathstyles.css
File metadata and controls
95 lines (83 loc) · 2.08 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
background: #0c192c;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.container {
position: relative;
width: 100%;
height: 100vh;
}
.bolas {
position: absolute;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
header {
font-size: 3em;
margin-top:100px;
text-align: center;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.bolas span {
width: 40px;
height: 40px;
background: #37df37;
margin: 10px;
border-radius: 50%;
box-shadow: 0 0 0 5px rgba(73, 150, 74, 0.7),
0 0 25px rgba(169, 222, 169, 0.7),
0 0 50px rgba(114, 180, 114, 0.7);
animation: animar calc(40s / var(--i)) linear infinite;
}
@keyframes animar {
0% {
transform: translateY(100vh) scale(0.9);
}
100% {
transform: translateY(-20vh) scale(1.0);
}
}
.bolas span:nth-of-type(even) {
background: rgb(250, 0, 0);
box-shadow: 0 0 0 5px rgba(243, 104, 104, 0.7),
0 0 25px rgba(169, 222, 169, 0.7),
0 0 25px rgba(114, 180, 114, 0.7);
}
/* Consulta de medios para pantallas más pequeñas */
@media screen and (max-width: 600px) {
/* header {
font-size: 2.0em;
margin-top: 300px;
} */
header {
font-size: 2em; /* Reducir el tamaño de fuente */
margin-top: 350px;
padding: 0 15px; /* Asegurar margen para no desbordar */
}
.bolas span {
width: 20px;
height: 20px;
margin: 5px;
animation: animar calc(30s / var(--i)) linear infinite;
}
@keyframes animar {
0% {
transform: translateY(100vh) scale(0.9);
}
100% {
transform: translateY(-20vh) scale(1.0);
}
}
}