/* DilPie on the web — responsive desktop/laptop + mobile fit.
 *
 * The web app is the React Native MOBILE app exported for web, so its
 * screens are single-column. CSS can size/centre that column to fit a
 * desktop cleanly, but a true multi-pane desktop UI (nav rail + feed +
 * sidebar) is a per-screen change in the app code, not a CSS job.
 *
 *  - Mobile (< 900px): the app fills the screen edge-to-edge (native feel).
 *  - Desktop/laptop (>= 900px): the app becomes a full-height, comfortably
 *    wide centred column on a clean page — a real web-app layout, not a
 *    phone mockup floating on black.
 *
 * RN-web puts inline styles on its container divs, so the rules below use
 * !important to win over them.
 */

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  /* No browser pull-to-refresh / rubber-band — the app owns scrolling. */
  overscroll-behavior: none;
}
* { -webkit-tap-highlight-color: transparent; }

@media (min-width: 900px) {
  html, body {
    height: 100%;
    /* Clean, light page — reads as a desktop web app, not a phone on black. */
    background: #ece9e3;
  }

  /* Centre the app column horizontally, stretch it to full height. */
  #root {
    align-items: stretch !important;
    justify-content: center !important;
  }

  /* The React Native app root → a full-height centred content column. */
  #root > div {
    width: 100% !important;
    max-width: 640px !important;
    flex: 0 1 640px !important;
    height: 100% !important;
    max-height: none !important;
    background: #ffffff !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Roomy monitors → a touch wider so the column doesn't feel narrow. */
@media (min-width: 1440px) {
  #root > div {
    max-width: 720px !important;
    flex-basis: 720px !important;
  }
}
