@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@font-face {
  font-family: 'ListenHereMiss';
  src: url('{{ site.baseurl }}/assets/fonts/ListenHereMiss.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'decterm';
  src: url('{{ site.baseurl }}/assets/fonts/decterm.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-size: 1.2em;
  
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}
/*
.wrapper {
  position: relative; 
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh; 
  padding-bottom: 80px;
}
*/
.wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;   /* fill viewport minimum */
  padding-bottom: 80px;
}


.container {
  width: 100%;
  border: 2px solid #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 900px;
}

.banner {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #000;
  overflow: hidden;
}

.banner img {
  max-height: 100%;
  object-fit: cover;
  object-position: left center;
}

.banner a {
  height: 100%;
  display: flex;
  align-items: center;
}

.news {
  height: 60px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  background: #000;
}

.news-text {
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.main-content {
  display: flex;
  gap: 20px;
  padding: 16px;
  flex-wrap: wrap;
}

.portrait {
  flex: 0 0 150px;
  border: 2px solid #fff;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portrait img {
  animation: float 3s ease-in-out infinite;
  width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: pixelated;
  z-index: 1;
}

.portrait img.pulse {
  animation: pulse 0.4s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.text-section {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dialogue-box {
  font-family: 'VT323', monospace;
  font-size: 1.2em;
  position: relative;
  left: 50%;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #000;
  border: 2px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(143, 0, 255, 0.85);
  white-space: pre-wrap;
  line-height: 1.6;
  width: max-content;
  max-width: 100%;
}

.dialogue-box::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #ffffff;
  filter: drop-shadow(0 0 6px rgba(143, 0, 255, 1));
}

.bottom-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  min-height: 300px;
}

.description-box {
  flex: 1;
  background: #111;
  border: 2px solid #fff;
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  overflow-y: auto;
  min-height: 900px;
}

nav.options {
  font-family: 'decterm', monospace;
  flex: 0 0 200px;
  border: 2px solid #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

nav.options ul {
  list-style: none;
}

nav.options li {
  margin-bottom: 8px;
}

nav.options a {
  display: block;
  padding: 8px;
  border: 1px solid #fff;
  text-decoration: none;
  color: #fff;
  transition: background 0.3s;
}

nav.options a:hover,
nav.options a:focus {
  background: #fff;
  color: #000;
}

.feature-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.feature-box {
  flex: 1;
  background: #111;
  border: 2px solid #fff;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  padding: 8px;
  min-width: 120px;
}

.feature-box:hover {
  background: #fff;
  color: #000;
}

.feature-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  image-rendering: pixelated;
}
/*
.socials {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 900px;
}
*/


.socials {
  position: absolute; /* position absolutely inside wrapper */
  bottom: 16px;        /* 16px from bottom */
  right: 16px;         /* 16px from right */
  display: flex;
  gap: 12px;
  max-width: 900px;
  justify-content: flex-end;
  width: auto;         /* don't stretch */
  z-index: 10; /* ensure it's above other content */
}

.icon {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.2s;
  filter: grayscale(100%) brightness(120%);
}

.icon:hover,
.icon:focus {
  transform: scale(1.2);
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.glitch {
  animation: glitch 0.2s steps(2, end) 3;
}

@keyframes glitch {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0, 0); }
}

.smoke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
}
/*** --------------------------------------  ***/
/* Responsive Overrides */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
 .dialogue-box {
    
    left: 20px; /* shift it closer to the left edge */
    transform: none; /* remove the translateX centering */
    max-width: calc(100% - 40px); /* keep some padding from edges */
    width: auto; /* allow width to adjust */
  }

  .dialogue-box::before {
    left: 30px; /* adjust triangle position relative to new left */
    transform: none; /* no centering transform */
  }
  .portrait,
  nav.options,
  .feature-row,
  .bottom-row {
    width: 100%;
    flex: none;
  }

  .feature-box {
    min-width: 100%;
  }

  .socials {
    justify-content: center;
  }

  .description-box {
    padding: 16px;
    
  }
}
/*** --------------------------------------  ***/