fluffy-mindscapes / style.css
Defkhan5960's picture
try to use same desing for clouds in the attaching media!
4c7a4fd verified
:root {
--sky-gradient-start: #87CEEB;
--sky-gradient-end: #1E90FF;
}
body {
min-height: 100vh;
overflow-x: hidden;
padding: 20px;
background: transparent;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
@keyframes sky-pulse {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
.cloud-container {
position: relative;
background: transparent;
}
.cloud {
position: absolute;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
box-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #333;
cursor: pointer;
transition: all 0.5s ease;
animation: float 3s ease-in-out infinite;
will-change: transform;
z-index: 10;
}
#cloud-container {
position: relative;
width: 100%;
height: 400px;
margin: 2rem 0;
background: rgba(255, 255, 255, 0.1);
border-radius: 16px;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
overflow: hidden;
}
custom-cloud {
display: block;
position: absolute;
transition: all 0.5s ease;
animation: float 4s ease-in-out infinite;
will-change: transform;
cursor: pointer;
transform: translate(-50%, -50%);
}
custom-cloud:hover {
transform: translate(-50%, -50%) scale(1.1) !important;
z-index: 100;
animation-duration: 2s;
}
.cloud-text {
position: relative;
z-index: 2;
text-align: center;
}
.cloud-percentage {
font-size: 0.6em;
display: block;
margin-top: 4px;
color: #666;
}
#text-input:focus {
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}
#analyze-btn {
transition: all 0.2s ease;
}
#analyze-btn:hover {
transform: translateY(-50%) scale(1.1);
}