nioplay-landing-v10 / style.css
ProjectGenesis's picture
Add a randomize alternating rewards Floating Pill underneath the "Sticky Payment Marquee"
6d14f89 verified
/* Reward Ticker */
.reward-ticker {
position: relative;
overflow: hidden;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-top: 1px solid rgba(255,106,0,0.1);
border-bottom: 1px solid rgba(0,228,255,0.1);
}
.reward-ticker .marquee-content {
display: inline-block;
animation: ticker-scroll 20s linear infinite;
padding-left: 100%;
}
.reward-ticker .ticker-item {
margin: 0 2rem;
display: inline-block;
white-space: nowrap;
animation: glow-pulse 3s infinite alternate;
}
@keyframes glow-pulse {
0% { opacity: 0.7; text-shadow: 0 0 5px rgba(255,106,0,0.5); }
100% { opacity: 1; text-shadow: 0 0 15px rgba(255,106,0,0.9); }
}
/* Sticky Payment Header */
.sticky-payment-header {
position: sticky;
top: 0;
left: 0;
width: 100%;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
z-index: 50;
margin-bottom: 0;
padding: 2px 0;
}
.marquee-container {
position: relative;
overflow: hidden;
height: 100%;
}
.marquee-content {
display: inline-flex;
animation: marquee-scroll 25s linear infinite;
will-change: transform;
padding-right: 100%;
gap: 1.5rem;
}
@keyframes marquee-scroll {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
.payment-icon {
transition: all 0.3s ease;
border: 1px solid rgba(255,255,255,0.1);
}
.payment-icon:hover {
transform: scale(1.2);
box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.payment-icon img {
filter: brightness(0) invert(1);
transition: all 0.3s ease;
object-fit: contain;
}
.payment-icon:hover img {
filter: brightness(1) invert(0);
}
/* How It Works Section */
.step-card {
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.step-card:hover {
transform: translateY(-10px) !important;
box-shadow: 0 10px 30px rgba(255, 106, 0, 0.3);
}
.step-number {
position: absolute;
font-weight: 900;
z-index: 0;
transition: all 0.5s ease;
}
.step-card:hover .step-number {
transform: scale(1.2);
opacity: 0.3 !important;
}
.step-icon {
transition: all 0.3s ease;
}
.step-card:hover .step-icon {
transform: scale(1.2);
animation: pulse 1.5s infinite;
}
body {
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}
h1 {
font-size: 16px;
margin-top: 0;
}
p {
color: rgb(107, 114, 128);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
}
.card {
max-width: 620px;
margin: 0 auto;
padding: 16px;
border: 1px solid lightgray;
border-radius: 16px;
}
.card p:last-child {
margin-bottom: 0;
}