:root {
  --background: #f5f5f5;
  font-size: 14px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3b6396;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

footer {
  background-color: var(--background);

  & .divider {
    padding: 0.25rem 0;
  }

  & button, & a {
    padding: 0.25rem 1rem;
  }
}

.alert-danger, .alert-success, .alert-warning {
  margin: 0.25rem 0;
  background-size: 1.5rem 1.5rem;
  background-position: 0.75rem 0.25rem;
  padding: 0.25rem 1rem 0.25rem 2.75rem;
  color: rgb(0, 0, 0, 0.9);
}

#banner-title {
  height: 4.5rem;
  font-size: 1.14rem;
  font-weight: normal;

  & h1 {
    font-weight: normal;
  }
}

#banner {
  color: #f7f9fb;
  background: transparent;
}

#brand > * {
  font-size: 2.85rem;
  color: #cccccc;
  text-decoration: none;
  font-weight: bold;
}

#brand > a:hover {
  text-decoration: underline;
}

#info {
  display: flex;
  align-items: center;
}

header, nav.navbar, .modal-header {
  background-color: #375c8c;
  background-image: linear-gradient(to bottom, #3b6396, #31527c);
}

@media (min-width: 576px) {
  nav.navbar {
    display: none !important;
  }
}

#smalltext-content-container {
  font-size: 0.85rem;
}

.btn {
  color: #333333;
  padding: 3px 12px 4px 12px;
  background-color: #f5f5f5;
  border: 1px solid #cccccc;
  border-bottom-color: #b3b3b3;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);

  &:focus {
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
    box-shadow: none;
  }

  &:disabled, &.disabled {
    background-color: #e6e6e6;
    cursor: not-allowed;
  }

  &:not(:disabled) {
    border: 1px solid #cccccc;
    border-bottom-color: #b3b3b3;
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
  }

  &:is(:hover, :active, :focus) {
    color: #333333;
    background-color: #e6e6e6;
    background-image: none;
  }
}

.btn-sm {
  padding: 2px 10px;
}

.btn.btn-primary {
  &:not(:disabled) {
    color: #333333;
    background-color: #f5f5f5;
    border-color: #cccccc;
    border-bottom-color: #b3b3b3;
  }
  &:is(:hover, :not(:disabled):not(.disabled):active, :focus) {
    color: #333333;
    background-color: #e6e6e6;
    background-image: none;
  }
}

.btn-success {
  color: white;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #557f5e;

  &:not(:disabled) {
    border-color: #398439;
    background-image: none;
  }
  &:is(:hover, :not(:disabled):not(.disabled):active, :focus) {
    color: white;
    background-color: #416248;
  }
}

.form-control {
  height: 2rem;
  padding: 0 0.5rem;
}

input[type="text"].form-control {
  padding: 0 0.5rem;
}

label {
  margin-bottom: 0.25rem;
}

h1 {
  font-size: 2.75rem;
  line-height: 2.75rem;
}

h2 {
  font-size: 2.25rem;
  line-height: 2.25rem;
}

h3 {
  font-size: 1.75rem;
  line-height: 1.75rem;
}

.popover {
  ul {
    padding-left: 2em;
  }
}

.form-buttons {
  & ul.navbar-nav {
    justify-content: center;
    margin-top: 1rem;

    & > li {
      min-width: auto;
      margin-right: 5px;
    }
  }

  & button {
    width: auto;
    min-width: 6.5rem;
  }
}
