Flux-web / style.css
GarGerry's picture
Update style.css
ebf6a25 verified
raw
history blame
2.53 kB
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(to bottom, #0f0f0f, #131313); /* Background gelap untuk kontras */
font-family: 'Arial', sans-serif;
color: white;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
/* Futuristic Background with animated elements */
.game-container {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
overflow: hidden;
}
/* Adding animated background */
.game-container::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7)); /* Radial gradient with transparency */
animation: glowingBackground 10s ease-in-out infinite; /* Subtle glowing background animation */
z-index: -1; /* Place behind game elements */
}
/* Animation for glowing background */
@keyframes glowingBackground {
0% {
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7));
}
50% {
background: radial-gradient(circle, rgba(0, 255, 171, 0.4), rgba(0, 0, 0, 0.5));
}
100% {
background: radial-gradient(circle, rgba(0, 255, 171, 0.1), rgba(0, 0, 0, 0.7));
}
}
/* Ball Styling */
.ball {
position: absolute;
width: 30px;
height: 30px;
background: radial-gradient(circle, #00FFAB, #00B89C);
border-radius: 50%;
box-shadow: 0 0 20px rgba(0, 255, 171, 0.8);
animation: fall 3s linear infinite;
}
/* Platform Styling */
.platform {
position: absolute;
width: 100px;
height: 20px;
background: linear-gradient(to left, #FF007A, #E5006D);
bottom: 0;
border-radius: 10px;
box-shadow: 0 0 20px rgba(255, 0, 122, 0.8);
}
/* Score and Level Display */
#score {
position: absolute;
top: 20px;
font-size: 24px;
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
}
#level {
position: absolute;
top: 60px;
font-size: 20px;
text-shadow: 0 0 10px rgba(0, 255, 171, 0.8);
}
/* Lives Icons */
#lives {
position: absolute;
bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.life {
width: 30px;
height: 30px;
margin: 0 5px;
}
/* Animations for falling ball */
@keyframes fall {
0% {
top: -30px;
}
100% {
top: 100%;
}
}