ready-xet-go / style.css
jsulz's picture
jsulz HF Staff
playing with stars
1fd40ed
h1 {
font-size: 16px;
font-weight: 00;
margin-top: 0;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
}
body {
font-family: Arial, sans-serif;
background: #0b0f19;
color: oklch(.872 .01 258.338);
position: relative;
overflow-x: hidden;
}
/* Move the stars to another pseudo-element */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
/* Varied star sizes and opacities */
radial-gradient(1.0px 1.0px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
radial-gradient(1.8px 1.8px at 40px 70px, rgba(255, 255, 255, 0.6), transparent),
radial-gradient(0.7px 0.7px at 90px 40px, rgba(255, 255, 255, 1.0), transparent),
radial-gradient(2.2px 2.2px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
radial-gradient(1.3px 1.3px at 160px 30px, rgba(255, 255, 255, 0.7), transparent),
radial-gradient(0.9px 0.9px at 200px 90px, rgba(255, 255, 255, 0.5), transparent),
radial-gradient(1.7px 1.7px at 240px 50px, rgba(255, 255, 255, 0.8), transparent),
radial-gradient(1.1px 1.1px at 280px 10px, rgba(255, 255, 255, 0.6), transparent),
radial-gradient(0.6px 0.6px at 320px 70px, rgba(255, 255, 255, 1.0), transparent),
radial-gradient(1.5px 1.5px at 360px 40px, rgba(255, 255, 255, 0.4), transparent),
/* Add more varied stars */
radial-gradient(0.4px 0.4px at 45px 120px, rgba(255, 255, 255, 0.7), transparent),
radial-gradient(1.2px 1.2px at 105px 160px, rgba(255, 255, 255, 0.5), transparent),
radial-gradient(0.8px 0.8px at 185px 95px, rgba(255, 255, 255, 0.9), transparent),
radial-gradient(1.9px 1.9px at 265px 135px, rgba(255, 255, 255, 0.6), transparent);
background-repeat: repeat;
background-size: 400px 200px;
animation: starfield 60s linear infinite;
pointer-events: none;
z-index: 2;
}
@keyframes starfield {
0% {
transform: translateY(0) translateX(0);
opacity: 0.8;
}
50% {
opacity: 1;
}
100% {
transform: translateY(-100px) translateX(-50px);
opacity: 0.8;
}
}
@keyframes starfield-slow {
0% {
transform: translateY(0) translateX(0);
opacity: 0.7;
}
50% {
opacity: 0.9;
}
100% {
transform: translateY(-120px) translateX(30px);
opacity: 0.7;
}
}
.hero-band,
.container,
.stats-card,
.charts-container {
position: relative;
z-index: 2;
}
.progress-container {
width: 100%;
height: 50px;
background: #1E2938;
border-radius: 15px;
margin: 20px 0;
}
.progress-bar {
height: 100%;
background: linear-gradient(135deg, #0b0f19 0%, #7875FF 100%);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
transition: width 0.05s ease;
position: relative;
overflow: hidden;
}
.progress-bar::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg,
transparent 0%,
rgba(255, 255, 255, 0.15) 50%,
transparent 100%
);
animation: shimmer 6s infinite;
}
@keyframes shimmer {
0% {
left: -100%;
opacity: 0;
}
50% {
opacity: 1.0;
}
100% {
left: 100%;
opacity: 0;
}
}
.hero-band {
background: linear-gradient(180deg, #0b0f19 0%, #0b0f19 40%, #7875FF 150%);
text-align: center;
padding: 60px 20px;
border-bottom: 1px solid #2a3441;
}
.hero-title {
font-size: 3.5rem;
margin: 0 0 16px 0;
}
.hero-subtitle {
font-size: 1.25rem;
margin: 0;
opacity: 0.8;
font-weight: 300;
}
.hero-content {
display: flex;
align-items: center;
justify-content: center;
gap: 40px;
max-width: 800px;
margin: 0 auto;
}
.hero-text {
text-align: center;
}
.hero-logo {
width: 80px;
height: 80px;
object-fit: contain;
opacity: 0.9;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-logo-right {
height: 100px;
padding: 0 0 10px 0;
margin-left: -10px;
}
.hero-logo:hover {
transform: scale(1.1);
opacity: 1;
}
@media (max-width: 768px) {
.hero-content {
gap: 20px;
}
.hero-logo {
width: 60px;
height: 60px;
}
}
.stats-card {
width: 65%;
margin: 40px auto 40px auto;
position: relative;
z-index: 10;
}
.card {
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 32px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.card h2 {
margin-top: 0;
margin-bottom: 24px;
font-weight: 600;
}
.chart-card {
flex: 1 1 0; /* allow shrinking and growing */
min-width: 0;
max-width: 100%;
display: flex;
flex-direction: column;
backdrop-filter: blur(10px);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.charts-container {
position: relative;
display: flex;
gap: 32px;
max-width: 1820px;
margin: 40px auto;
padding: 20px;
}
.chart-container {
width: 100%;
height: 400px;
margin: 20px 0;
}
canvas {
max-width: 100% !important;
height: auto;
}
@media (max-width: 1440px) {
.charts-container {
flex-direction: column;
gap: 24px;
}
}
:root {
--pixel-size: 5px;
--pixel-color: oklch(.585 .233 277.117);
--bg-color: #000;
}
.counter-container {
display: flex;
gap: calc(var(--pixel-size) * 3);
position: relative;
max-width: 350px;
max-height: 150px;
overflow: hidden;
margin: 0 auto;
justify-content: center;
}
.character {
width: calc(var(--pixel-size) * 5 + 4px);
height: calc(var(--pixel-size) * 7 + 6px);
position: relative;
}
.pixel {
width: var(--pixel-size);
height: var(--pixel-size);
background: var(--pixel-color);
position: absolute;
transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
transform: translateY(-200px);
opacity: 1;
box-shadow: 0 0 2px var(--pixel-color);
}
.pixel.landed {
transform: translateY(0);
}
.counter-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem; /* Adjust spacing as needed */
}
.counter-text {
display: flex;
align-items: center; /* or center */
gap: 0.5rem;
justify-content: center;
line-height: 2em;
}
.xet-logo {
height: 2.5em; /* Match text size exactly */
width: auto;
display: inline-block;
vertical-align: baseline;
}