body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #f7f7f7;
}

.portal-header {
  position: relative;
  display: flex;
  min-height: 3.5rem;
  padding: 0.75rem 3.25rem 0.75rem 1rem;
  background: var(--color-primary);
  color: white;
  align-items: center;
}

.portal-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

iframe {
  width: 100%;
  border: none;
  height: calc(100vh - 3.5rem);
  height: calc(100svh - 3.5rem);
  height: calc(100dvh - 3.5rem);
  max-height: -webkit-fill-available;
  display: block;
}

.portal-header nav {
  display: none;
  position: absolute;
  z-index: 2;
  top: 3.5rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 3.5rem);
  height: calc(100svh - 3.5rem);
  height: calc(100dvh - 3.5rem);
  padding: 0;
  padding-bottom: var(--safe-bottom);
  font-size: 2rem;
  background: var(--color-primary);
  color: whitesmoke;
  align-items: flex-start;
  pointer-events: auto;
}

.portal-header .nav-active {
  display: flex;
}

.portal-header .navbar-nav {
  width: 100%;
  min-height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
}

.portal-header nav a {
  text-decoration: none;
  color: white;
}

.portal-header nav a:hover {
  font-size: inherit;
}

#hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  z-index: 3;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0.35rem;
  transform: translateY(-50%);
  border: none;
  outline: none;
  border-radius: 0;
  color: white;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 0.2rem;
  background: currentColor;
  border-radius: 0;
}

@media only screen and (min-width: 577px) {
  .portal-header {
    justify-content: space-between;
    min-height: 3rem;
    padding: 0 2rem;
  }

  .portal-header h1 {
    font-size: 1.2rem;
  }

  iframe {
    height: calc(100vh - 3rem);
    height: calc(100svh - 3rem);
    height: calc(100dvh - 3rem);
  }

  .portal-header nav {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    height: 3rem;
    width: auto;
    margin-bottom: 0;
    padding: 0;
    font-size: 1rem;
    cursor: auto;
    align-items: center;
    justify-content: space-between;
    background: transparent;
  }

  #hamburger {
    display: none;
  }

  .portal-header .navbar-nav {
    width: auto;
    min-height: auto;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .portal-header .nav-link {
    margin: 0 1rem;
  }

  .portal-header .nav-link.active,
  .portal-header .nav-link:hover {
    background-color: var(--color-primary-dark);
  }
}
