@font-face {
  font-family: "Roboto Mono";
  src: url("https://pirahxcx.neocities.org/assets/fonts/RobotoMono-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("https://pirahxcx.neocities.org/assets/fonts/RobotoMono-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Wallpoet";
  src: url("https://pirahxcx.neocities.org/assets/fonts/Wallpoet-Regular.ttf") format("truetype");
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 0;
}

* {
  min-width: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 0.88rem;
}

html {
  display: flex;
  justify-content: center; 
  font-family: "Roboto Mono", monospace;
  background: black;
  cursor: url("https://pirahxcx.neocities.org/assets/cursors/asteroids-auto.avif") 0 0, auto;
}

body {
  display: flex;
  justify-content: center;
  width: 1200px;
  height: 100vh;
  color: #CBA6F7;
  overflow: hidden;
}

h1, h2 {
  margin-bottom: 1lh;
}

p {
  margin-block: 1lh;
  text-indent: 2ch;
}

a {
  color: #e3c9ff;
  text-decoration: none;
  transition: text-shadow 0.1s ease;
}

a:hover, label[for="dyslexia-mode"]:hover {
  text-shadow: 0 0 0.25rem white;
}

pre {
  color: white;
  background: black;
  padding: 4px 8px;
}

#dyslexia-mode, #profile-picture input,
fieldset input, #nerd-articles input {
  position: fixed;
  left: -20px;
}

input:focus-visible ~ label {
  outline: auto;
}

body:has(#dyslexia-mode:focus-visible) label[for="dyslexia-mode"] {
  outline: auto;
}

button {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}

a, label, button, #seekbar, #volume-slider,
#seekbar::-webkit-slider-runnable-track, #volume-slider::-webkit-slider-runnable-track,
#seekbar::-moz-range-track, #volume-slider::-moz-range-track,
#seekbar::-moz-range-progress, #volume-slider::-moz-range-progress,
.vhs-slot:hover .img-hover span {
  cursor: url("https://pirahxcx.neocities.org/assets/cursors/asteroids-pointer.avif") 0 0, pointer;
}

button:focus-visible, #seekbar:focus-visible, #volume-slider:focus-visible {
  outline: auto;
}

label[for="dyslexia-mode"] {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.5rem;
  text-align: center;
  letter-spacing: 0.4em;
  color: #fd8700;
  transition: text-shadow 0.1s ease;
}

audio {
  display: block;
  width: 80%;
  margin: 1lh auto;
  border-radius: 2vw;
}

audio::-webkit-media-controls-panel {
  background: rgba(20, 20, 20, 0.5);
}

audio::-webkit-media-controls-enclosure {
  border-radius: 2vw; background: transparent;
}

audio::-webkit-media-controls-play-button, audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-current-time-display, audio::-webkit-media-controls-time-remaining-display,
audio::-webkit-media-controls-volume-slider {
  filter: invert(1) contrast(2);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

main {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 80%;
  padding: 40px 40px 20px 40px;
  gap: 20px;
  overflow-y: auto;
  visibility: hidden;
}

aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  height: 100%;
  padding: 5px;
  overflow-y: auto;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

#player {
  max-width: 90%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
  position: relative;
}

.player-icon {
  width: 24px;
  pointer-events: none;
}

#seekbar {
  flex: 1;
  max-width: 80%;
}

#seekbar, #volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #dddddd;
}

#seekbar::-webkit-slider-runnable-track, #volume-slider::-webkit-slider-runnable-track,
#seekbar::-moz-range-track, #volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #dddddd;
}

#seekbar::-moz-range-progress, #volume-slider::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: #333333;
}

#seekbar::-webkit-slider-thumb, #volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333333;
  margin-top: -3px;
}

#seekbar::-moz-range-thumb, #volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333333;
}

.volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#volume-slider {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 70px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.volume-wrapper.show #volume-slider {
  opacity: 1;
  pointer-events: auto;
}

#file-name {
  font-size: 0.6rem;
  color: silver;
}

#file-name:hover {
  color: white;
}

#buffering {
  color: white;
  font-size: 0.6rem;
  text-align: center;
}

.menu-item-title {
  display: block;
  font-family: "Wallpoet";
  font-size: 1rem;
}

.menu-item:first-of-type .menu-item-title {
  font-size: 1.25rem;
}

.menu-item-title b {
  font-size: inherit;
  color: white;
}


.menu-item-description {
  font-size: 0.75rem;
}

#info {
  flex: 3;
  height: 200px;
  padding: 10px 20px 10px 10px;
  overflow-y: auto;
  color: silver;
  text-align: justify;
  border: 2px dotted silver;
  background: url("https://pirahxcx.neocities.org/assets/images/background01.avif");
}

#info h1, #info a {
  font-weight: bold;
  color: white;
}

.img-hover {
  position: relative;
  display: inline-block;
}

.img-hover img {
  display: block;
}

.img-hover span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.75rem;
  text-align: center;
  line-height: normal;
  letter-spacing: normal;
  opacity: 0;
  text-shadow:
     1px  1px 0 black,
    -1px  1px 0 black,
     1px -1px 0 black,
    -1px -1px 0 black,
     1px    0 0 black,
    -1px    0 0 black,
       0  1px 0 black,
       0 -1px 0 black;
}

.img-hover:hover span, .img-hover:focus-visible span {
  opacity: 1;
}

.vhs-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.vhs-slot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.vhs-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(
      to right,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    ),
    linear-gradient(
      transparent 5%,
      rgba(16,16,16,0.2) 50%
    ),
    linear-gradient(
      90deg,
      rgba(200,0,0,0.04),
      rgba(0,200,0,0.04),
      rgba(0,0,200,0.04)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 2px,
      transparent 10px
    );
  background-size:
    4px 100%,
    100% 2px,
    3px 100%,
    80px 100%;
  pointer-events: none;
  animation:
    vhs-drift 0.12s linear infinite,
    vhs-flicker 0.08s steps(2) infinite,
    vhs-linefade 0.6s steps(1) infinite;
}

.vhs-slot .img-hover img {
  height: 200px;
}

.vhs-slot:hover .img-hover span {
  align-items: flex-start;
  padding-top: 10px;
  background: none;
}

body:has(#dyslexia-mode:checked) *:not(label):not(.img-hover span) {
  line-height: 1.8;
  letter-spacing: 0.4em;
  background: none !important;
  animation: none !important;
}

body:has(#dyslexia-mode:checked) :is(#info, #updates article, #page-display) {
  text-align: left;
}

body:has(#dyslexia-mode:checked) label[for="dyslexia-mode"] {
  color: #ffb464;
}

body:has(#dyslexia-mode:checked) .menu-item:first-of-type .menu-item-title {
  font-size: 1rem;
}

body:has(#dyslexia-mode:checked) #fallout-background {
  width: 100%;
}

body:has(#dyslexia-mode:checked) .fallout-bomb {
  display: none;
}

@keyframes vhs-drift {
    0% { background-position:    0 0, 0 0, 0 0,    0 0; }
  100% { background-position: -4px 0, 0 0, 0 0, 80px 0; }
}

@keyframes vhs-flicker {
    0% { opacity: 0.35; }
   50% { opacity: 0.55; }
  100% { opacity: 0.25; }
}

@keyframes vhs-linefade {
    0% { opacity: 0.2; }
   25% { opacity: 0.5; }
   50% { opacity: 0.1; }
   75% { opacity: 0.4; }
  100% { opacity: 0.15; }
}

@media (min-width: 1800px) {
  html {
    transform: scale(1.5);
    transform-origin: top;
  }

  main {
    max-height: 66vh !important;
  }
}