html, body, input, button, select, textarea, div, p, span, a, table, th, td {
  font-family: 'Avenir Next Regular', 'Avenir Next', 'Avenir', sans-serif;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6, strong, b, th, .done-button, .sidebar-title, .title-text, .badge, .customize-header {
  font-family: 'Avenir Next Medium', 'Avenir Next', 'Avenir', sans-serif !important;
  font-weight: 500 !important;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}
#content-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* mobile iframe heights. the eternal struggle */
.mobile #content-frame {
  height: calc(100vh - 60px);
}

@media screen and (max-width: 480px) {
  .mobile #content-frame {
    height: calc(100vh - 55px);
  }
}

@media screen and (max-width: 360px) {
  .mobile #content-frame {
    height: calc(100vh - 50px);
  }
}

#content-frame.page-transition-out {
  transform: translateY(30px);
  opacity: 0;
}

#content-frame.page-transition-in {
  transform: translateY(0);
  opacity: 1;
}


/* preloaded iframes. keep pages warm like leftover pizza */
#dash-preload-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  border: none; margin: 0; padding: 0;
  display: block;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#dash-preload-frame.dash-hidden {
  opacity: 0;
  pointer-events: none;
}
#dash-preload-frame.page-transition-out {
  transform: translateY(30px);
  opacity: 0;
}
#dash-preload-frame.page-transition-in {
  transform: translateY(0);
  opacity: 1;
}
.mobile #dash-preload-frame {
  height: calc(100vh - 60px);
}
@media screen and (max-width: 480px) {
  .mobile #dash-preload-frame { height: calc(100vh - 55px); }
}
@media screen and (max-width: 360px) {
  .mobile #dash-preload-frame { height: calc(100vh - 50px); }
}

