.customPageContainer {
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  width: 100%;
  background: #fff;
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 30px 0;
}


.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.overlayEnter {
  animation: overlayEnter 400ms ease-in-out forwards;
}

.overlayQuit {
  animation: overlayQuit 400ms ease-in-out forwards;
}

@keyframes overlayQuit {
  to {
    background: rgba(#000, 0);
  }
  from {
    background: rgba(#000, .75);
  }
}

@keyframes overlayEnter {
  from {
    background: rgba(#000, 0);
  }
  to {
    background: rgba(#000, .75);
  }
}


.childrenButton {
  animation: childrenButton 400ms forwards;
}

.childrenButtonQuit {
  animation: childrenButton 1000ms forwards alternate-reverse;
}

@keyframes childrenButton {
  from {
    max-height: 0;
    padding: 0 30px 0 !important;
  }
  to {
    max-height: 100vh;
    padding: 0 30px env(safe-area-inset-bottom);
  }
}

.childrenCenter {
  animation: childrenCenter 400ms ease-in-out forwards;
}

.childrenCenterQuit {
  animation: childrenCenter 800ms forwards alternate-reverse;
}

@keyframes childrenCenter {
  from {
    transform: scale(0);
    padding: 0;
  }
  to {
    transform: scale(1);
    padding: 0 30px;
  }
}
