html,
body {
  height: 100%;
}

.vds-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  --page-max-width: 100%;

  &:not(.iframe) {
    @include media-breakpoint-up(xl) {
      --page-max-width: 900px;
      &.with-sidenav {
        --page-max-width: 1100px;
      }
    }
  }

  .vds-page {
    display: flex;
    flex-grow: 1;

    .vds-page-content {
      flex-grow: 1;
      @extend .bg-body;

      & > h1:first-child,
      & > h2:first-child {
        margin-top: 0;
      }
    }
  }
}

// The container so every part of the page have same content-width
.vds-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
}

//  Sticky footer
.vds-header-and-content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;

  .vds-page-content {
    padding: var(--layout-padding);
  }
}

.vds-footer {
  background-color: var(--bs-primary);
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 3rem;

  .vds-container {
    padding: 1rem var(--layout-padding);
    justify-content: center;
    gap: 2rem;
  }

  a {
    color: white;
    text-decoration: none;
    &:hover {
      color: white;
      text-decoration: underline;
    }
  }
}
