/* Reset */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } :root { --lavender: #cdb4db; --light-pink: #ffc8dd; --pink: #ffafcc; --light-blue: #bde0fe; --blue: #a2d2ff; --darker-pink: #ff75a7; --darkerer-pink: #ff4287; --win-bg-grey: #c0c0c0; --grey-500: oklch(55.1% 0.027 264.364); } ::selection { text-shadow: 0px 0px 3px var(--darkerer-pink) } body { background-image: url(assets/images/tiledbgpink.webp); background-size: cover; background-position: center; min-height: 100lvh; width: 100lvw; overflow: auto; font-family: "DotGothic16", sans-serif; font-size: 16px; main { padding-top: 8rem; } } /* 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%; } } /* persistent-ui */ persistent-ui { position: fixed; top: 0; left: 0; width: 100svw; z-index: 1000; display: flex; flex-direction: column; align-items: flex-start; } miniplayer-container { display: block; align-self: flex-start; } /* Navbar */ navbar { font-family: "VT323", monospace; font-size: clamp(1.25rem, 4svw, 1.5rem); display: flex; flex-direction: column; width: 100%; position: relative; #nav-toggle-checkbox { display: none; } navbar-toggle { display: none; padding: 0.5rem; background-color: var(--win-bg-grey); .hamburger { display: flex; flex-direction: column; gap: 4px; cursor: pointer; width: 30px; span { display: block; height: 3px; background: #000; transition: all 0.3s ease; } } &:has(#nav-toggle-checkbox:checked) { .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .hamburger span:nth-child(2) { opacity: 0; } .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } } } navbar-content { display: flex; gap: 0.3rem; padding: 0.5rem; background-color: var(--win-bg-grey); flex-wrap: wrap; input { opacity: 0; position: absolute; pointer-events: none; } a { color: inherit; text-decoration: none; cursor: pointer; padding: 4px 8px; border: 2px solid black; background: var(--win-bg-grey); border-color: #ffffff #808080 #808080 #ffffff; &:has(+ input:checked) { background: #ff75a7; color: #ffffff; border-color: #808080 #ffffff #ffffff #808080; } &:active { border-color: #ffffff #808080 #808080 #ffffff; padding: 5px 7px 3px 9px; border-color: #808080 #ffffff #ffffff #808080; } &:hover { background: #0004; } } } pink-statusbar { height: 1.5rem; flex-shrink: 0; background-color: var(--darker-pink); border-bottom: 2px solid #000; color: white; display: flex; align-items: center; padding-left: 0.5rem; gap: 0.5rem; status-dot { display: block; width: 8px; height: 8px; background-color: #00ff00; border: 1px solid #008000; } } } /* 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; min-height: 100svh; padding: 1rem; gap: 1rem; img { max-width: 100svw; height: auto; object-fit: contain; transition: opacity 5s ease, transform 5s ease-out; opacity: 1; transform: translateY(0px); @starting-style { opacity: 0; transform: translateY(500px); } } } /* Mini player */ mini-player { display: block; position: relative; z-index: 100; width: min(240px, 90svw); background-color: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; box-shadow: 2px 2px 0 #000; transition: opacity 0.3s, translate 0.3s; font-size: clamp(0.625rem, 2svw, 0.75rem); ominous-message { display: block; padding: 0.5rem; font-style: italic; font-size: 0.75rem; } title-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid; border-color: #808080 #ffffff #ffffff #808080; padding: 0.25rem 0.5rem; track-info { display: flex; flex-direction: column; gap: 0.125rem; max-width: 60%; overflow: hidden; track-title { font-weight: bold; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } track-artist { font-size: 0.625rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } } time-display { font-size: 0.625rem; color: #333; } } progress-bar-container { padding: 0.25rem 0.5rem; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; .progress-input { display: block; width: 90%; height: 0.2rem; appearance: none; background: #fff; border: 1px solid #808080; outline: none; cursor: pointer; &::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; background: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; cursor: pointer; } &::-moz-range-thumb { width: 10px; height: 10px; background: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; cursor: pointer; } } } controls-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0.5rem; transport-controls { display: flex; gap: 1px; button { display: flex; align-items: center; justify-content: center; padding: 0.25rem; background: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; cursor: pointer; &:hover { background: #0002; } &:active { border-color: #808080 #ffffff #ffffff #808080; } &:focus-visible { outline: 1px solid #000; } img { pointer-events: none; } } } volume-controls { display: flex; align-items: center; gap: 0.25rem; .volume-input { width: 4rem; height: 4px; appearance: none; background: #fff; border: 1px solid #808080; outline: none; cursor: pointer; &::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; background: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; cursor: pointer; } &::-moz-range-thumb { width: 8px; height: 8px; background: var(--win-bg-grey); border: 2px solid; border-color: #ffffff #808080 #808080 #ffffff; cursor: pointer; } } } } audio { display: none; } } /* Responsive... */ @media (max-width: 480px) { body { main { padding-top: 6rem; } } navbar { font-size: 1.125rem; navbar-toggle { display: block; } #nav-toggle-checkbox { display: none; } navbar-content { display: none; flex-direction: column; gap: 0; padding: 0; width: 100%; position: absolute; top: 100%; left: 0; background-color: var(--win-bg-grey); border-top: 2px solid #000; z-index: 101; a { padding: 1rem 0.5rem; border-bottom: 1px solid #808080; width: 100%; box-sizing: border-box; } input { display: none; } } &:has(#nav-toggle-checkbox:checked) { navbar-content { display: flex; z-index: 999; } } pink-statusbar { display: none; } } mini-player { width: 95svw; max-width: 280px; title-bar { track-info { max-width: 50%; } } controls-bar { volume-controls { display: none; } } } .progress-input { width: 85%; } }