@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&family=Oswald:wght@200..700&display=swap');

/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000000;
}

p { margin: 0 0 20px; }

a {
  color: #808080;
  text-decoration: none;
}

a:hover {
  color: #a7a7a7;
  text-decoration: underline dotted;
}

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  color: #000000;
  margin: 0 0 20px;
}

footer {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
  margin-top: 50px;
}

/* ================= LEFT COLUMN ================= */
.left {
  width: 300px;
  height: 100vh;
  background: #000000 url('/dw408409/blackbg.png') repeat;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;

  display: flex;
  flex-direction: column;
}

.left-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 20px;
}

/* ================= TITLES ================= */
.title-top, .title-bottom {
  font-family: "Oswald", sans-serif;
  font-size: 40px;
  font-weight: 500;
  color: #ffffff;
  margin: 15px;
}

.title-top { text-align: left; }
.title-bottom { text-align: right; }

.title-top span,
.title-bottom span {
  display: block;
}

.line { line-height: 40px; letter-spacing: 0; }
.line1 { font-size: 40px; line-height: 30px; letter-spacing: 1px; }
.line2 { font-size: 25px; line-height: 40px; letter-spacing: 17px; }
.line3 { font-size: 40px; line-height: 30px; letter-spacing: 12px; }
.line4 { font-size: 40px; line-height: 30px; letter-spacing: 13px; }
.line5 { font-size: 30px; line-height: 40px; letter-spacing: 10px; }
.line6 { font-size: 40px; line-height: 30px; letter-spacing: 8px; }

/* ================= NAV ================= */
.nav {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 10px 20px;
  text-align: center;
}

.nav a {
  color: #ffffff;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.nav a span {
  display: inline-block;
  transition: transform 0.4s ease;
}

.nav a:hover span {
  transform: scaleX(1.2);
}

.nav a:hover {
  color: #ffffff;
  text-decoration: underline dotted;
}

/* ================= MIDDLE ================= */
.middle {
  position: fixed;
  top: 0;
  left: 300px;
  z-index: 1;
  background: #ffffff;
}

.middle img {
  position: fixed;
  top: 0;
  left: 300px;
  z-index: 0;
  pointer-events: none;
}

@media (max-height: 1080px) {
  .middle img { height: 100vh; width: auto; }
}

@media (min-height: 1081px) {
  .middle img { height: 1080px; width: 406px; }
}

/* ================= RIGHT ================= */
.right {
  margin-left: 636px;
  max-width: 650px;
  padding: 40px;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
}

.right footer { margin-top: auto; }

/* ================= GLITCH ================= */
#glitch-slideshow {
  position: relative;
  width: 240px;
  height: 160px;
  overflow: hidden;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#glitch-slideshow.show {
  opacity: 1;
  pointer-events: auto;
}

#glitch-slideshow img {
  position: absolute;
  width: 110%;
  height: 110%;
  top: -5%;
  left: -5%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(100%) contrast(120%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#glitch-slideshow img.active {
  opacity: 1;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.rgb-split::before,
.rgb-split::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  mix-blend-mode: screen;
  pointer-events: none;
}

.rgb-split::before {
  transform: translate(-3px, 0);
  filter: hue-rotate(-15deg) saturate(250%);
  opacity: 0.7;
}

.rgb-split::after {
  transform: translate(3px, 0);
  filter: hue-rotate(15deg) saturate(250%);
  opacity: 0.7;
}

/* scanlines */
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.4;
  animation: scanline-flicker 1.2s infinite;
}

@keyframes scanline-flicker {
  0%, 50%, 100% { opacity: 0.4; }
  25%, 75% { opacity: 0.7; }
}

@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.85; }
  100% { opacity: 1; }
}

.flicker { animation: flicker 0.2s infinite; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .left { position: static; width: 100%; height: auto; }
  .middle { display: none; }
  .right { margin-left: 0; padding: 20px; }
}