@font-face {
    font-family: Press Start;
    src: url(fonts/press_start.ttf);
}
@font-face {
    font-family: Gothic Pixels;
    src: url(fonts/gothic_pixels.ttf);
}
:root {
    --background: black;
    --foreground: white;
    --track-border: 2px;
body {
    background: var(--background);
    color: var(--foreground);
    font-family: Press Start;
    margin-bottom: 10rem;
}
h1 {
    margin: auto;
    text-align: center;
    font-size: 1rem;
}
.gothic {
    font-family: Gothic Pixels;
}
#terminal {
    width: 100%;
    height: min(350px, 90vh);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 2rem;
    transition: width 0.5s, height 0.5s, opacity 0.25s;
    background-color: black;
}
.window {
    border: 2px solid var(--foreground);
    min-width: 150px;
    min-height: 150px;
}
.window > .toolbar {
    flex-basis: 100%;
    height: 20px;
    outline: 2px solid var(--foreground);
    display: flex;
    justify-content: end;
}
.toolbar > .button {
    outline: 2px solid var(--foreground);
    height: 100%;
    aspect-ratio: 1 / 1;
    font-family: Arial;
    font-size: 1rem;
    cursor: pointer;
}
.toolbar > .button:not(:last-child){
    margin-right: 2px;
}
.toolbar > * {
    display: flex;
    align-items: center;
    justify-content: center;
}
.toolbar > .title {
    flex-grow: 1;
}
#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--foreground);
}

.hover-reveal {
    color: transparent;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hover-reveal:hover {
    color: white;
}

.hover-image {
    height: 70px;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 0 0.75rem rgb(255, 217, 0));
}

.hover-image:hover {
    opacity: 1;
}

.page-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(90vw, 800px);
    margin: 4rem auto;
    gap: 2rem;
}

.tracklist {
    list-style-type: none;
    padding: 0;
    flex-basis: 50%;
    position: relative;
}
.track {
    display: flex;
    flex-wrap: wrap;
    border: var(--track-border) solid white;
    width: fit-content;
    align-items: start;
    gap: var(--track-border);
    background-color: white;
    position: relative;
    margin-bottom: 3rem;
}
.track:has(.playing){
    border-color: red;
    background-color: red;
    color: red;
}
.track > h3, .play-button, .download-button {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: black;
}
.track > h3 {
    font-size: 1rem;
    padding: 0.5rem;
    height: fit-content;
}
.play-button, .download-button {
    aspect-ratio: 1 / 1;
    cursor: pointer;
}
.download-button {
    text-decoration: none;
    color: unset
}
.track-time {
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    font-size: 0.75rem;
}


#face {
    position: relative;
    width: 350px;
    height: 350px;
}
#face > * {
    position: absolute;
    width: 100%;
    filter: invert(1);
    mix-blend-mode: difference;
}
#face-text {
    mix-blend-mode: difference;
    z-index: -1;
    color: black;
    max-height: 20rem;
    overflow-y: hidden;
}
#encoded-text-container {
    margin-left: auto;
    text-align: right;
    height: 30rem;
}
#encoded-text {
    position: relative;
}
#encoded-text::after {
    content: '';
    display: block;
    background-image: url(images/dither.png);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    transform: scale(1, 4);
}
