suna/backend/agent/workspace/styles.css

197 lines
3.3 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
color: #fff;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
.container {
text-align: center;
padding: 2rem;
position: relative;
z-index: 1;
}
.hello-world {
margin-bottom: 3rem;
}
.title {
font-size: 5rem;
font-weight: 700;
margin-bottom: 1rem;
display: flex;
justify-content: center;
}
.letter {
display: inline-block;
animation: bounce 1s ease infinite;
animation-delay: calc(0.1s * var(--i));
transform-origin: bottom;
}
.space {
width: 1rem;
}
@keyframes bounce {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
.subtitle {
font-size: 1.5rem;
font-weight: 300;
opacity: 0;
animation: fadeIn 2s ease forwards 1s;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.floating-icons {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.floating-icons i {
position: absolute;
color: rgba(255, 255, 255, 0.3);
animation: float 15s linear infinite;
}
@keyframes float {
0% {
transform: translateY(100vh) scale(0);
opacity: 0;
}
10% {
opacity: 1;
}
90% {
opacity: 1;
}
100% {
transform: translateY(-100px) scale(1.5);
opacity: 0;
}
}
.glow-button {
background: none;
border: 2px solid #e94560;
color: #e94560;
padding: 0.8rem 2rem;
font-size: 1.2rem;
border-radius: 50px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
font-family: 'Poppins', sans-serif;
z-index: 1;
margin-top: 2rem;
}
.glow-button:hover {
color: white;
box-shadow: 0 0 20px #e94560;
}
.glow-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0%;
height: 100%;
background-color: #e94560;
transition: all 0.3s ease;
z-index: -1;
}
.glow-button:hover::before {
width: 100%;
}
/* Particle effect for button */
.particle {
position: absolute;
pointer-events: none;
z-index: 99;
}
/* Add a cool text shadow effect to title */
.title {
text-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}
/* Add a subtle pulse effect to the button */
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(233, 69, 96, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
}
}
.glow-button {
animation: pulse 2s infinite;
}
/* Custom cursor */
.custom-cursor {
position: fixed;
width: 20px;
height: 20px;
border: 2px solid #e94560;
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
z-index: 9999;
transition: width 0.2s, height 0.2s, background-color 0.2s;
mix-blend-mode: difference;
}
/* Add responsive design */
@media (max-width: 768px) {
.title {
font-size: 3rem;
}
.subtitle {
font-size: 1.2rem;
}
}