AdventOfCode2022/06/day6.css

87 lines
1.2 KiB
CSS
Raw Permalink Normal View History

2022-12-06 19:38:16 +01:00
body {
text-align: center;
margin: 0;
padding: 0;
color: #ffffff;
font-family: sans-serif;
}
h1, h3, p, pre {
margin: 0;
padding: 0;
}
a {
color: #009900;
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
}
body {
background: linear-gradient(to bottom, #880000, #aa0000);
}
pre {
background-color: #990000;
color: #009900;
font-family: monospace;
padding: 1em;
white-space: pre-wrap;
}
h1, h3 {
color: #ffffff;
}
.clickable {
background-color: #009900;
border: none;
color: #ffffff;
padding: 0.5em 1em;
margin: 0.5em;
cursor: pointer;
}
.snow {
2022-12-06 20:20:10 +01:00
position: absolute;
top: -50px;
/* left: 0; */
/* right: 0; */
/* bottom: 0; */
2022-12-06 19:38:16 +01:00
width: 100%;
2022-12-06 20:20:10 +01:00
/* width: 100%; */
/* height: 100%; */
2022-12-06 19:38:16 +01:00
pointer-events: none;
z-index: 100;
}
.snow__flake {
2022-12-06 20:20:10 +01:00
/* position: fixed; */
2022-12-06 19:38:16 +01:00
top: -50px;
left: -50px;
right: -50px;
bottom: -50px;
width: 10px;
height: 10px;
background: #fff;
2022-12-06 20:20:10 +01:00
color: #fff;
2022-12-06 19:38:16 +01:00
border-radius: 50%;
animation: snowAnimation 3s linear infinite;
2022-12-06 20:20:10 +01:00
float: left;
opacity: 0;
2022-12-06 19:38:16 +01:00
}
@keyframes snowAnimation {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
}
100% {
2022-12-06 20:20:10 +01:00
transform: translateY(1200px) rotate(360deg);
opacity: 0;
2022-12-06 19:38:16 +01:00
}
}