html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.navbar .container {
  max-width: 100%;
  padding: 0 16px;
}

#pageFrame {
  width: 100%;
  border: none;
  display: block;
  height: calc(100vh - var(--nav-height, 56px));
}

.nav-links a.active {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent);
}

.nav-loading {
  position: fixed;
  top: var(--nav-height, 56px);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 200;
  animation: loadingSlide 1s ease-in-out infinite;
  display: none;
}

@keyframes loadingSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    z-index: 100;
  }
  .nav-links.open {
    display: flex;
  }
  .navbar .hamburger {
    display: block;
  }
  #pageFrame {
    height: calc(100vh - var(--nav-height));
  }
}
