#popupBox.rgtimer {
  z-index: 9999999999;
  height: calc((var(--vh, 1vh) * 100) - 2px);
  display: flex;
  flex-direction: column;
  box-sizing:border-box;
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

#popupBox .rctimer-content {
  overflow: auto;
  flex: 1;
}

@media (min-width: 768px) and (min-height: 576px) {
  #popupBox.rgtimer {
    height: auto;
    display: block;
  }

  #popupBox .rctimer-content {
    overflow: inherit;
  }
}

@media (orientation: portrait) {
  #popupBox.rgtimer {
    height: auto;
    display: block;
  }

  #popupBox .rctimer-content {
    overflow: inherit;
  }
}