html, body {
  height: 100%;
}

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


.bg-django-darkgreen {
  background-color: purple;
}

.bg-django-lightgreen {
  background-color: blueviolet;
}

.badge-django {
  background-color: white;
  border: medium purple solid;
  color: darkblue;
}

.btn-django-darkgreen {
  background-color: darkblue;
  color: white;
}

.btn-django-darkgreen:hover {
  color: blueviolet;
}

.errorlist {
  color:red;
}

main {
  flex: 1;
  padding: 1rem 2rem;
}

section.documentation, section.commentary, section.feedback {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

section.documentation h3, section.commentary h3 {
  background-color: blueviolet;
  border-bottom: thin solid black;
  color: white;
  padding: .2rem;
}


section.documentation article, section.commentary article {
  padding: 1rem 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: normal
}

h4 {
  font-size: 1rem;
}

#home h4 {
  margin-top: .5rem;
}

code {
  font-family: 'Roboto Mono', monospace;
}

pre {
  background-color: #fafafa;
  border: thin solid darkblue;
  border-width: 1px 2px 2px 1px;
  font-family: 'Roboto Mono', monospace;
  padding: .5rem 1rem;
}

/* Utility classes for inline style replacements */
.modal-responsive {
  max-width: 90%;
}

.img-responsive {
  max-width: 90%;
}

.text-disclaimer {
  color: lightgoldenrodyellow;
}

/* Skip navigation link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

@media (max-width: 768px) {

  main {
    padding: .2rem .4rem;
  }

  section.documentation article, section.commentary article {
    padding: .2rem .4rem;
  }

  td code {
    white-space: nowrap;
  }

  #form-buttons a {
    font-size: xx-small;
  }

  .mobile-hide {
    display: none;
  }

  #search-page form button {
    width: 100%;
  }
}
