Spaces:
Runtime error
Runtime error
body { | |
margin: 0; | |
padding: 0; | |
background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee); | |
background-size: 400% 400%; | |
animation: gradient 15s ease infinite; | |
height: 100vh; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
flex-direction: column; | |
font-family: 'Segoe UI', sans-serif; | |
} | |
@keyframes gradient { | |
0% {background-position: 0% 50%;} | |
50% {background-position: 100% 50%;} | |
100% {background-position: 0% 50%;} | |
} | |
.glow { | |
font-size: 3rem; | |
color: #fff; | |
text-shadow: 0 0 5px #ff4da6, 0 0 10px #ff4da6, 0 0 20px #ff4da6; | |
animation: pulse 2s infinite alternate; | |
} | |
@keyframes pulse { | |
from { transform: scale(1); } | |
to { transform: scale(1.1); } | |
} | |
.hearts { | |
position: relative; | |
margin-top: 30px; | |
} | |
.heart { | |
width: 20px; | |
height: 20px; | |
background: red; | |
position: absolute; | |
top: 0; | |
left: 50%; | |
animation: float 5s infinite ease-in-out; | |
clip-path: polygon(50% 0%, 61% 19%, 81% 25%, 70% 45%, 50% 60%, 30% 45%, 19% 25%, 39% 19%); | |
} | |
.heart:nth-child(2) { | |
animation-delay: 1s; | |
left: 45%; | |
} | |
.heart:nth-child(3) { | |
animation-delay: 2s; | |
left: 55%; | |
} | |
@keyframes float { | |
0% {transform: translateY(0) scale(1);} | |
100% {transform: translateY(-300px) scale(1.5); opacity: 0;} | |
} |