:root {
  --bg-color: #0f0f0f;
  --card-bg: #1a1a1a;
  --accent-color: #3b9eff;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  zoom: 1.33;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.hero {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 5rem;
  color: var(--accent-color);
}

.content-section {
  margin-bottom: 40px;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 12px;
}

h2 {
  border-left: 4px solid var(--accent-color);
  padding-left: 15px;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.image-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #000;
  display: block;
}

.placeholder-img,
.reddit-post,
.testimonial-img,
.large-image-placeholder {
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  min-height: 150px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.testimonial-img {
  height: 200px;
  margin-bottom: 10px;
}

.reddit-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.psa-placeholder {
  height: 200px;
  border: 2px dashed #444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.anti-radiant {
  border: 2px solid #ff5252;
}

.anti-radiant h2 {
  border-left-color: #ff5252;
  color: #ff5252;
}

@media (max-width: 768px) {
  .split-content,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

figure > *:first-child {
    width: 100%;
}

figcaption {
  background: #252525;
  padding: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #333;
  text-align: center;
}

.reddit-post-embed {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.emote {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-indent: -999em;
}

/* Chat input demo */
#demo-container {
    position: relative;
    width: 100%;
    margin: 50px auto 0px;
    font-size: 13px;
  }

  #chat-input-frame {
    padding: 0.6em 0.6em 0 0.6em;
  }

  #chat-input-wrap {
    position: relative;
  }

  #chat-auto-complete {
    pointer-events: none;
    transition: opacity 750ms;
    transition-timing-function: cubic-bezier(0, 0.74, 0.1, 0.99);
    opacity: 0;
    z-index: 131;
    border-radius: .25em .25em 0 0;
    position: absolute;
    font-size: 1.1em;
    line-height: 2em;
    height: 2em;
    top: -2em;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  #chat-auto-complete ul {
    position: absolute;
    white-space: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #chat-auto-complete.active {
    opacity: 1;
    pointer-events: auto;
  }

  #chat-auto-complete li {
    padding: 0 .3em;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: #838383;
    background: rgba(3, 3, 3, .75);
  }

  #chat-auto-complete li.active {
    color: #dedede;
  }

  #chat-auto-complete li:first-child {
    border-radius: .25em 0 0 0;
  }

  #chat-input-control {
    max-height: 140px;
    position: relative;
    color: #b9b9b9;
    background: #111;
    border: 1px solid #222;
    outline: none;
    resize: none;
    margin: 0;
    width: 100%;
    padding: 0.6em;
    border-radius: 0.25em;
    box-shadow: none;
    box-sizing: border-box;
    display: block;
    overflow: hidden;
    height: 53px;
    font-family: "Roboto", sans-serif;
  }

  #tab-key-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
  }

  #tab-key-visual {
    width: 80px;
    height: 45px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #eee;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 5px 0 #151515, 0 8px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  #tab-key-visual.pressed {
    transform: translateY(4px);
    box-shadow: 0 1px 0 #151515, 0 2px 5px rgba(0, 0, 0, 0.5);
    background: #222;
  }