@import './fonts.css';
@import './tailwind.css';
@import './theme.css';
@import './animations.css';
@import './feed.css';

html,
body,
#root {
  background-color: #23183E;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

::view-transition-group(root) {
  background: #23183E;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }
}

.app-viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.app-shell-frame {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  margin: 0 auto;
}

.app-shell {
  height: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  min-height: 68px;
  overflow: visible;
}

.page-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.page {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 30;
  height: auto;
  min-height: 0;
}
