interstellar_website/secret/styles.css

142 lines
3 KiB
CSS
Raw Normal View History

2024-12-17 14:42:17 +01:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
2025-01-04 15:53:31 +01:00
}
body {
2025-01-04 16:28:09 +01:00
font-family: 'Courier New', Courier, monospace;
background-color: #0d0d0d;
color: #b0b0b0;
2025-01-04 15:53:31 +01:00
margin: 0;
2025-01-04 16:28:09 +01:00
line-height: 1.6;
2025-01-04 21:00:39 +01:00
background-image: url('images/background.jpg');
2025-01-05 01:16:38 +01:00
background-size: cover; /* Adjust size for tape appearance */
2025-01-04 15:53:31 +01:00
}
header {
2025-01-04 16:40:26 +01:00
background-color: #222; /* Fully opaque background */
2025-01-04 16:28:09 +01:00
color: #b0b0b0;
2025-01-04 15:53:31 +01:00
text-align: center;
padding: 1em 0;
2025-01-04 16:28:09 +01:00
font-size: 2rem;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
animation: neonFlicker 1.5s infinite;
}
/* Create the flickering neon light effect */
@keyframes neonFlicker {
0% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00, 0 0 50px #ffcc00;
2025-01-04 16:28:09 +01:00
}
20% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00;
2025-01-04 16:28:09 +01:00
}
40% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 5px #ffcc00, 0 0 15px #ffcc00, 0 0 25px #ffcc00;
2025-01-04 16:28:09 +01:00
}
60% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00;
2025-01-04 16:28:09 +01:00
}
80% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 3px #ffcc00, 0 0 7px #ffcc00, 0 0 10px #ffcc00;
2025-01-04 16:28:09 +01:00
}
100% {
2025-01-05 01:16:38 +01:00
text-shadow: 0 0 5px #ffcc00, 0 0 10px #ffcc00, 0 0 15px #ffcc00, 0 0 20px #ffcc00, 0 0 30px #ffcc00, 0 0 40px #ffcc00;
2025-01-04 16:28:09 +01:00
}
2025-01-04 15:53:31 +01:00
}
footer {
2025-01-04 16:28:09 +01:00
background-color: #111;
color: #b0b0b0;
2025-01-04 15:53:31 +01:00
text-align: center;
padding: 1em 0;
margin-top: 20px;
}
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
2025-01-04 16:28:09 +01:00
gap: 20px;
padding: 20px;
2025-01-04 15:53:31 +01:00
}
.item {
2024-12-17 14:42:17 +01:00
position: relative;
2025-01-04 16:28:09 +01:00
background-color: #1a1a1a;
2025-01-04 15:53:31 +01:00
border-radius: 10px;
overflow: hidden;
2025-01-04 16:28:09 +01:00
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
2025-01-04 15:53:31 +01:00
transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
2025-01-04 16:28:09 +01:00
width: 100%;
height: 400px;
2024-12-17 14:42:17 +01:00
display: flex;
2025-01-04 16:28:09 +01:00
flex-direction: column;
2025-01-04 15:53:31 +01:00
}
.item img {
2024-12-17 14:42:17 +01:00
width: 100%;
2025-01-04 16:28:09 +01:00
height: 100%;
2025-01-04 15:53:31 +01:00
object-fit: cover;
2025-01-04 16:28:09 +01:00
filter: brightness(0.6);
2025-01-04 15:53:31 +01:00
}
2025-01-05 01:16:38 +01:00
.item .description {
2025-01-04 15:53:31 +01:00
padding: 30px;
font-size: 1rem;
2025-01-04 16:28:09 +01:00
color: #ccc;
background-color: rgba(0, 0, 0, 0.8);
2025-01-04 15:53:31 +01:00
border-radius: 0 0 10px 10px;
2025-01-04 16:28:09 +01:00
flex-grow: 1;
2025-01-04 15:53:31 +01:00
}
2025-01-05 01:16:38 +01:00
p {
2025-01-04 15:53:31 +01:00
text-decoration: none;
}
.item:hover {
transform: scale(1.05);
2025-01-04 16:28:09 +01:00
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
filter: brightness(1.1);
2025-01-04 15:53:31 +01:00
}
.item:hover img {
2025-01-04 16:28:09 +01:00
transform: scale(1.1);
filter: brightness(1.1);
2025-01-04 15:53:31 +01:00
}
.item h2 {
position: absolute;
top: 10%;
left: 50%;
transform: translateX(-50%);
2025-01-04 16:28:09 +01:00
color: #ffffff;
font-size: 1.8rem;
background-color: rgba(0, 0, 0, 0.9);
2025-01-04 15:53:31 +01:00
padding: 5px 15px;
2024-12-17 14:42:17 +01:00
border-radius: 5px;
2025-01-04 15:53:31 +01:00
text-align: center;
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.item:hover h2 {
opacity: 1;
2025-01-04 16:28:09 +01:00
transform: translateX(-50%) translateY(-10px);
2025-01-04 15:53:31 +01:00
}
2025-01-05 01:16:38 +01:00
@media(max-width: 800px) {
2025-01-04 15:53:31 +01:00
header {
2025-01-04 16:28:09 +01:00
font-size: 1.5rem;
2025-01-04 15:53:31 +01:00
}
.item {
2025-01-04 16:28:09 +01:00
height: auto;
2025-01-04 15:53:31 +01:00
width: auto;
}
2025-01-04 16:28:09 +01:00
.grid-container {
2025-01-04 15:53:31 +01:00
grid-template-columns: repeat(1, 1fr);
}
}