agahnim.dev/static/style.css
2026-03-20 12:01:22 +01:00

165 lines
No EOL
2.7 KiB
CSS

:root {
--lavender: #cdb4db;
--light-pink: #ffc8dd;
--pink: #ffafcc;
--light-blue: #bde0fe;
--blue: #a2d2ff;
--darker-pink: #ff75a7;
--darkerer-pink: #ff4287;
--win-bg-grey: #c0c0c0;
}
body {
background-image: url(assets/images/tiledbgpink.webp);
background-size: cover;
background-position: center;
height: 100lvh;
width: 100lvw;
overflow: auto;
font-family: "DotGothic16", sans-serif;
main {
padding-top: 3.5rem;
}
}
/* CRT Effect */
crt {
display: block;
position: relative;
z-index: 9999;
&::before,
&::after {
content: "";
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
z-index: 2147483647;
}
&::before {
background: linear-gradient(
to bottom,
transparent 50%,
rgba(0, 0, 0, 0.2) 51%
);
background-size: 100% 4px;
animation: scanlines 1s steps(60) infinite;
}
&::after {
width: 100%;
height: 2px;
background: rgba(0, 0, 0, 0.2);
opacity: 0.7;
}
}
@keyframes scanlines {
0% {
background-position: 0 50%;
}
}
/* Navbar */
navbar {
font-family: "VT323", monospace;
position: fixed;
top: 0;
left: 0;
width: 100svw;
height: 3.5rem;
background-color: var(--win-bg-grey);
border-bottom: 2px solid #000;
navbar-content {
display: flex;
gap: 1rem;
label {
cursor: pointer;
padding: 4px 8px;
border: 2px solid;
border-color: #ffffff #808080 #808080 #ffffff;
background: var(--win-bg-grey);
&:has(input:checked) {
background: #ff75a7;
color: #ffffff;
border-color: #808080 #ffffff #ffffff #808080;
}
&:active {
border-color: #808080 #ffffff #ffffff #808080;
padding: 5px 7px 3px 9px;
}
&:hover {
background: #0004;
}
}
input {
opacity: 0;
position: absolute;
pointer-events: none;
}
& a {
text-decoration: none;
color: inherit;
}
}
}
/* Home */
home-content {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
/* 404 */
katcenkat {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
img {
transition: opacity 5s ease, transform 5s ease-out;
opacity: 1;
transform: translateY(0px);
@starting-style {
opacity: 0;
transform: translateY(500px);
}
}
}
/* Mini player */
miniplayer {
position: fixed;
top: 3.5rem;
left: 0;
z-index: 100;
background-color: var(--win-bg-grey);
border: 2px solid oklch(55.1% 0.027 264.364);
ominous-message {
font-style: italic;
}
}