

body {
  margin: 0;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 20px;

  background-image: url("background.png");
  background-repeat: repeat-x;
  background-position: 0 0;
  background-attachment: fixed;
  animation: scroll-bg 30s linear infinite;
}


body.dark-mode {
  background-color: #0b0b0b;
  background-blend-mode: multiply;
}

@keyframes scroll-bg {
  from { background-position: 0 0; }
  to { background-position: -1000px 0; }
}

/* Headings */
h1, h2, h3 {
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}


.banner {
  width: 100%;
  height: 200px;

  background-image: url("banner.png");
  background-repeat: repeat-x;
  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
}


.outlined-logo {
  cursor: pointer;
  transition: transform 0.25s ease;

  filter:
    drop-shadow(0 0 2px black)
    drop-shadow(0 0 2px black)
    drop-shadow(0 0 2px black);
}

.outlined-logo:hover {
  transform: scale(1.12);
}


.page-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}


.content-box {
  width: 700px;
  margin: 40px 0;
  padding: 20px;

  background-image: url("Box.png");
  background-repeat: repeat;
  background-size: 140px 140px;

  border: 2px solid black;
  border-radius: 18px;

  box-shadow:
    0 0 0 2px black,
    2px 2px 0 0 black;

  overflow: hidden;
}


body.dark-mode .content-box,
body.dark-mode .side-box {
  filter: brightness(0.75);
}


.side-box {
  width: 180px;
  margin: 40px 0;

  background-image: url("Box.png");
  background-repeat: repeat;
  background-size: 140px 140px;

  border: 2px solid black;
  border-radius: 6px;

  box-shadow:
    0 0 0 2px black,
    2px 2px 0 0 black;

  padding: 0;
  overflow: hidden;
}

/* title bar */
.title-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 8px;

  color: white;
  font-weight: bold;
  font-size: 16px;




  border-bottom: 2px solid black;
}

/* fake buttons */
.title-buttons {
  width: 40px;
  height: 14px;
  background: linear-gradient(#808080, #808080);
  border: 2px solid #404040;
}

/* window frame */
.window-frame {
  width: 600px;
  height: 200px;
  padding: 8px;

  background-image: url("window-frame.png");
  background-repeat: repeat;

  border: 2px solid black;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px black,
    1px 1px 0 0 black;

  margin: 10px auto;
}


body.dark-mode .window-frame {
  filter: brightness(0.8);
}

.window-content {
  width: 100%;
  height: 100%;
  padding: 6px;

  background-image: url("window-bg.png");
  background-repeat: repeat;

  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* scrollbar */
.window-content::-webkit-scrollbar {
  width: 16px;
}

.window-content::-webkit-scrollbar-track {
  background-image: url("scroll-track.png");
  background-repeat: repeat;
}

.window-content::-webkit-scrollbar-thumb {
  background-image: url("scroll-thumb.png");
  background-repeat: repeat;
  border: 2px solid black;
}

/* buttons row */
.button-row {
  margin-top: 10px;
  margin-bottom: 20px;
}

/* menu buttons */
.tex-button {
  display: inline-block;
  padding: 10px 16px;
  margin: 4px;

  font-family: 'VT323', monospace;
  font-size: 22px;

  background-image: url("MenuButton.png");
  background-repeat: repeat;

  color: black;
  text-decoration: none;
  border: 2px solid black;

  transition: filter 0.2s;
}

.tex-button:hover {
  filter: brightness(1.3);
}


body.dark-mode .tex-button {
  color: black;
}

/* gifs */
.pixel-gif {
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform: translateZ(0);
}


.youtube-text {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
  max-width: 600px;
  margin: 20px auto;
}


.side-box .window-frame {
  width: 160px;
  height: 250px;
  margin: 5px auto;
  padding: 6px;
}


.toggle-button {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  cursor: pointer;
  background-color: #ffffff;
  border: 2px solid black;
  font-weight: bold;
  font-family: 'VT323', monospace;
  font-size: 18px;
}


* {
  transition: 
    background-color 0.6s ease,
    filter 0.6s ease,
    color 0.4s ease,
    opacity 0.8s ease;
}


.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  pointer-events: none;
  z-index: -2;

  background-repeat: repeat-x;
  background-position: 0 0;
  animation: scroll-bg 30s linear infinite;
}

.bg-light {
  background-image: url("background.png");
  opacity: 1;
  z-index: -2;
}

.bg-dark {
  background-image: url("BackgroundDarkest.png");
  opacity: 0;
  z-index: -1;
}


body.dark-mode .bg-dark {
  opacity: 1;
}

body.dark-mode .bg-light {
  opacity: 0;
}

@keyframes scroll-bg {
  from { background-position: 0 0; }
  to { background-position: -1000px 0; }
}


body {
  margin: 0;
  text-align: center;
  font-family: 'VT323', monospace;
  font-size: 20px;
  background: none;
}


.outlined-logo {
  cursor: pointer;
  transition: transform 0.25s ease;
  filter:
    drop-shadow(0 0 2px black)
    drop-shadow(0 0 2px black)
    drop-shadow(0 0 2px black);
}

.outlined-logo:hover {
  transform: scale(1.12);
}


.toggle-button {
  position: absolute;
  top: 10px;
  left: 10px;

  width: 308px;
  height: 160px;


  border: none;
  padding: 0;
  background-color: transparent;
  outline: none;

  cursor: pointer;


  background-image: url("Light.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;


  image-rendering: pixelated;
  image-rendering: crisp-edges;
}


body.dark-mode .toggle-button {
  background-image: url("Night.png");
}


.toggle-button:active {
  transform: translateY(1px);
}


body.dark-mode .toggle-button {
  background-image: url("Night.png");
}


.content-box,
.side-box {
  background-image: url("Box.png");
  background-repeat: repeat;
  border: 2px solid black;
  box-shadow:
    0 0 0 2px black,
    2px 2px 0 0 black;
}


body.dark-mode .content-box,
body.dark-mode .side-box {
  filter: brightness(1);
}


.tex-button {
  color: black;
  font-size: 22px;
}

body.dark-mode .tex-button {
  color: black;
}

