:root {
  --gp-safe-top: env(safe-area-inset-top, 0px);
  --gp-safe-right: env(safe-area-inset-right, 0px);
  --gp-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gp-safe-left: env(safe-area-inset-left, 0px);
  --gp-mobile-safe-width: calc(100vw - var(--gp-safe-left) - var(--gp-safe-right));
}

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

html, body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
}

#root,
.root {
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

html.gp-panel-open,
body.gp-panel-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

@media (prefers-color-scheme: dark) {
  body {
    background: black;
  }
}

.root {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100%;
}
