/* ============================================================
   Tanned Tfu — The Art of Winning Bigly
   White on black, raw, elegant. No scroll, no fluff.
   ============================================================ */

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

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ---- */

main {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — respects mobile chrome */
}

/* ---- Hero image — right-aligned, full height ---- */

#hero-picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

/* ---- Quote overlay — left side ---- */

#quote-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  max-width: 50vw;
  padding: 2rem 4vw 2rem 8vw;
  z-index: 10;
}

#parody-quote {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.3;
  color: #fff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(0, 0, 0, 0.5);
}

/* Open/close quotation marks via CSS */
#parody-quote::before { content: "\201C"; }
#parody-quote::after  { content: "\201D"; }

#quote-overlay cite {
  display: block;
  margin-top: 1.2em;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.9rem, 1.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---- Original quote — bottom footer ---- */

#original-quote {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80vw;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 400;
  color: #444;
  z-index: 10;
  line-height: 1.4;
}

#original-text::before { content: "Sun Tzu: \201C"; }
#original-text::after  { content: "\201D"; }

/* ---- Action buttons — bottom-right cluster ---- */

#action-buttons {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 20;
}

#action-buttons button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: 'Montserrat', sans-serif;
}

#action-buttons button:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Trump toggle button */
#trump-btn {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 14px !important;
}

#trump-btn.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ============================================================
   Mobile — vertical stack below 768px
   ============================================================ */

@media (max-width: 768px) {
  html, body {
    overflow-y: auto; /* allow scroll on mobile */
  }

  main {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Image at top, cropped to show the face */
  #hero-picture {
    position: relative;
    width: 100%;
    height: 55vh;
    height: 55dvh;
    flex-shrink: 0;
  }

  #hero-image {
    object-fit: cover;
    object-position: 70% top; /* bias right to show the face */
  }

  /* Gradient fade at bottom of image → black */
  #hero-picture::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
  }

  /* Quote below the image */
  #quote-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    padding: 0 1.5rem 2rem;
    margin-top: -2rem; /* overlap the gradient */
  }

  #parody-quote {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  /* Original quote at the bottom */
  #original-quote {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    padding: 2rem 1.5rem 1.5rem;
    max-width: 100%;
  }

  /* Action buttons — centered on mobile */
  #action-buttons {
    position: relative;
    bottom: auto;
    right: auto;
    justify-content: center;
    padding: 1rem 0 2rem;
  }
}
