mirror of
https://github.com/System-End/haxmas-day-7.git
synced 2026-04-19 20:55:18 +00:00
97 lines
1.6 KiB
CSS
97 lines
1.6 KiB
CSS
body {
|
|
font-family: "VT323", monospace;
|
|
background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
|
|
color: azure;
|
|
margin: 0;
|
|
padding: 20px;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#header,
|
|
#footer {
|
|
text-align: center;
|
|
}
|
|
|
|
#header h1 {
|
|
font-size: 3rem;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#header h2 {
|
|
font-size: 1.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
#tree-container {
|
|
width: 264px;
|
|
height: 456px;
|
|
margin: 2rem auto;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#tree {
|
|
width: 264px;
|
|
height: 456px;
|
|
background-image: url("img/tree.png");
|
|
background-repeat: no-repeat;
|
|
image-rendering: pixelated;
|
|
animation: tree-lights 0.8s steps(1) infinite;
|
|
}
|
|
|
|
@keyframes tree-lights {
|
|
0% {
|
|
background-position: 0 0;
|
|
}
|
|
25% {
|
|
background-position: -264px 0;
|
|
}
|
|
50% {
|
|
background-position: 0 -456px;
|
|
}
|
|
75% {
|
|
background-position: -264px -456px;
|
|
}
|
|
100% {
|
|
background-position: 0 0;
|
|
}
|
|
}
|
|
|
|
#star {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
font-size: 3rem;
|
|
z-index: 5;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
#star:hover {
|
|
transform: translateX(-50%) scale(1.2);
|
|
}
|
|
|
|
#decorations {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ornament {
|
|
width: 16px;
|
|
height: 16px;
|
|
background-image: url("img/ornaments.png");
|
|
background-repeat: no-repeat;
|
|
position: absolute;
|
|
z-index: 10;
|
|
transform: scale(2);
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.important-text {
|
|
color: #5bc0de;
|
|
}
|