passion_retro/static/themes/00s-copy/banner.css
2025-09-12 11:11:44 +02:00

108 lines
No EOL
2.3 KiB
CSS
Executable file

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
.banner {
width: 100%;
height: 150px;
background: linear-gradient(to bottom, #003366 0%, #0066cc 100%);
border: 2px solid #00ccff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
margin: auto;
box-shadow: 0 0 10px #00ccff;
animation: fadeIn 2s ease-in-out;
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.galaxy-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
linear-gradient(90deg,
rgba(0, 204, 255, 0.1) 0%,
rgba(255, 255, 255, 0.1) 100%
),
linear-gradient(0deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%),
repeating-linear-gradient(
0deg,
transparent 0%,
transparent 1px,
rgba(255, 255, 255, 0.1) 2px,
rgba(255, 255, 255, 0.1) 4px
);
z-index: 1;
animation: moveBackground 10s linear infinite;
}
@keyframes moveBackground {
0% { background-position: 0 0; }
100% { background-position: 100% 0; }
}
.banner-text {
font-family: 'Press Start 2P', cursive;
font-size: 36px;
color: #ffffff;
text-shadow: 2px 2px 0px #00ccff, 4px 4px 0px #0066cc;
z-index: 2;
animation: textGlow 1.5s ease-in-out infinite alternate;
}
@keyframes textGlow {
0% { text-shadow: 2px 2px 0px #00ccff, 4px 4px 0px #0066cc; }
100% { text-shadow: 2px 2px 10px #00ccff, 4px 4px 10px #0066cc; }
}
.slogan {
font-family: 'Press Start 2P', cursive;
font-size: 14px;
color: #ffffff;
text-shadow: 1px 1px 0px #00ccff;
z-index: 2;
margin-top: 10px;
text-align: center;
padding: 0 20px;
animation: fadeIn 3s ease-in-out;
}
/* Ajout des styles responsive */
@media screen and (max-width: 768px) {
.banner {
height: 120px;
}
.banner-text {
font-size: 24px;
text-align: center;
padding: 0 10px;
}
.slogan {
font-size: 12px;
padding: 0 10px;
}
}
@media screen and (max-width: 480px) {
.banner {
height: 100px;
}
.banner-text {
font-size: 18px;
}
.slogan {
font-size: 10px;
}
}