/* Application.aspen.edu Static Page Styles
   -----------------------------------------------
   The original app compiles Bootstrap 4 with custom
   SCSS variables ($primary: #2A76B3, $border-radius: 0).
   We load default Bootstrap 4.0 from CDN, so we must
   override every place the default primary (#007bff)
   and border-radius (.25rem) appear.
   ----------------------------------------------- */

/* Override Bootstrap 4 CSS custom properties */
:root {
  --blue: #2A76B3;
  --primary: #2A76B3;
  --secondary: #6c757d;
  --light: #f8f8f8;
  --dark: #343a40;
  --navy: #1F4589;
  --text-color: #585858;
  --link-hover: #8eaee6;
}

/* ---- Base ---- */

body {
  font-family: 'Arimo', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  background-color: #fff;
}

a {
  color: #2a76b3;
  text-decoration: none;
}

a:hover {
  color: #1b4d75;
  text-decoration: underline;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #1b4d75 !important;
}

/* ---- Global border-radius reset (original compiled with $border-radius: 0) ---- */

.btn,
.btn-lg,
.btn-sm,
.form-control,
.form-control-lg,
.form-control-sm,
.custom-select,
.custom-select-lg,
.custom-select-sm,
.input-group-text,
.alert,
.card,
.badge,
.dropdown-menu,
.modal-content,
.nav-pills .nav-link,
.page-link,
.pagination-lg .page-link,
.pagination-sm .page-link,
.input-group > .form-control:not(:last-child),
.input-group > .form-control:not(:first-child) {
  border-radius: 0;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}

.lead {
  font-size: 1.15rem;
  font-weight: 300;
}

/* ---- Bootstrap primary color overrides ---- */

.text-primary {
  color: #2a76b3 !important;
}

.bg-primary {
  background-color: #2a76b3 !important;
}

.border-primary {
  border-color: #2a76b3 !important;
}

.btn-primary {
  color: #fff;
  background-color: #2a76b3;
  border-color: #2a76b3;
}

.btn-primary:hover {
  color: #fff;
  background-color: #236294;
  border-color: #205b8a;
}

.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: #236294;
  border-color: #205b8a;
  box-shadow: 0 0 0 .2rem rgba(74, 139, 190, .5);
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff;
  background-color: #2a76b3;
  border-color: #2a76b3;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  color: #fff;
  background-color: #205b8a;
  border-color: #1d5480;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 .2rem rgba(74, 139, 190, .5);
}

.btn-outline-primary {
  color: #2a76b3;
  border-color: #2a76b3;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #2a76b3;
  border-color: #2a76b3;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 .2rem rgba(42, 118, 179, .5);
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #2a76b3;
  background-color: transparent;
}

.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #fff;
  background-color: #2a76b3;
  border-color: #2a76b3;
}

.badge-primary {
  color: #fff;
  background-color: #2a76b3;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #2a76b3;
}

/* ---- Form controls ---- */

.form-control {
  color: #495057;
  border: 1px solid #ced4da;
}

.form-control:focus {
  color: #495057;
  border-color: #7cb4e0;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(42, 118, 179, .25);
}

.custom-select:focus {
  border-color: #7cb4e0;
  box-shadow: 0 0 0 .2rem rgba(42, 118, 179, .25);
}

/* ---- Header ---- */

header {
  background: #1f4589 url(../assets/innerheader_background.png) center top no-repeat;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid #1F4589;
  box-shadow: 0 .125rem .25rem rgba(31, 69, 137, .25);
}

header .branding {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
  background: url(../assets/logo.png) no-repeat;
  background-size: 222px 70px;
  width: 222px;
  height: 70px;
  text-decoration: none;
  display: block;
}

@media (max-width: 1199.98px) {
  header .branding {
    background-size: 166.5px 52.5px;
    width: 166.5px;
    height: 52.5px;
  }
}

header .branding:hover {
  text-decoration: none;
}

header a {
  color: #fff;
  text-decoration: none;
  transition: color .18s, text-shadow .18s;
}

header a:hover {
  color: #8eaee6;
  text-shadow: 1px 1px 3px rgb(17, 38, 75);
}

/* ---- Alert box ---- */

.alert-light {
  color: #818181;
  background-color: #fefefe;
  border-color: #fdfdfd;
}

.alert-light ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.alert-light ul li {
  margin-bottom: 0.5rem;
}

/* ---- Parsley validation ---- */

.parsley-errors-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #dc3545;
  font-size: 0.85rem;
}

.parsley-errors-list li {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.form-control.parsley-error {
  border-color: #dc3545;
}

.form-control.parsley-success {
  border-color: #28a745;
}

/* ---- Confirmation message ---- */

#confirmation-message {
  padding: 1.5rem;
  margin-top: 1rem;
}

#confirmation-message p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---- Utility ---- */

.cursor-pointer {
  cursor: pointer;
}

.underlined {
  text-decoration: underline;
}

.underlined:hover {
  text-decoration: none;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* ---- Footer ---- */

footer {
  background: #1f4589;
  font-size: .75em;
  color: rgba(255, 255, 255, 0.6);
}

footer h1, footer h2, footer h3, footer h4, footer h5,
footer .h1, footer .h2, footer .h3, footer .h4, footer .h5 {
  color: #fff;
}

footer h4 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

footer p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

footer p a {
  color: #fff;
}

footer p a:hover {
  color: #8eaee6;
}

footer address {
  font-size: 0.85rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
  line-height: inherit;
}

footer a,
footer .nav-link {
  color: #fff;
  transition: color .18s, text-shadow .18s;
}

footer a:hover,
footer .nav-link:hover {
  color: #8eaee6;
  text-shadow: 1px 1px 3px rgb(17, 38, 75);
}

footer .nav-link {
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

#footerLinks .nav-link {
  font-size: 0.8rem;
  color: #fff;
}

#footerLinks .nav-link:hover {
  color: #8eaee6;
}

#footerLinks .nav-item {
  padding-right: 0.5rem;
}

#footerLinks span.nav-link {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Social links ---- */

.social a {
  color: #fff;
  text-decoration: none;
}

.social a:hover {
  color: #8eaee6;
}

/* ---- Error dialog modal ---- */

#errorModal .modal-content {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

#errorModal .modal-body p {
  margin-bottom: 0.25rem;
}

/* ---- Status indicator (animated X mark) ---- */

.status-indicator {
  position: relative;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  box-sizing: content-box;
}

.status-indicator-error {
  border-color: #dc3545;
}

.status-indicator-error::after,
.status-indicator-error::before {
  content: '';
  position: absolute;
  height: 120px;
  width: 60px;
  background: #fff;
  transform: rotate(45deg);
}

.status-indicator-error::before {
  top: -7px;
  left: -33px;
  border-radius: 120px 0 0 120px;
  transform-origin: 60px 60px;
  transform: rotate(-45deg);
}

.status-indicator-error::after {
  top: -11px;
  left: 30px;
  border-radius: 0 120px 120px 0;
  transform-origin: 0 60px;
  transform: rotate(-45deg);
}

.status-indicator-error .ring {
  box-sizing: content-box;
  position: absolute;
  height: 80px;
  width: 80px;
  top: -4px;
  left: -4px;
  border-radius: 50%;
  border: 4px solid #dc3545;
  opacity: 0.3;
  z-index: 2;
}

.status-indicator-error .x-mark {
  display: block;
  position: relative;
  z-index: 2;
}

.status-indicator-error .line {
  display: block;
  position: absolute;
  height: 5px;
  width: 47px;
  top: 37px;
  border-radius: 2px;
  background-color: #dc3545;
  z-index: 2;
}

.status-indicator-error .line.left {
  left: 17px;
  transform: rotate(45deg);
}

.status-indicator-error .line.right {
  right: 16px;
  transform: rotate(-45deg);
}

.status-indicator-error .animateXLeft {
  animation: animateXLeft 750ms;
}

@keyframes animateXLeft {
  0%, 65% {
    left: 82px;
    top: 95px;
    width: 0;
  }
  84% {
    left: 14px;
    top: 33px;
    width: 47px;
  }
  100% {
    left: 17px;
    top: 37px;
    width: 47px;
  }
}

.status-indicator-error .animateXRight {
  animation: animateXRight 750ms;
}

@keyframes animateXRight {
  0%, 65% {
    right: 82px;
    top: 95px;
    width: 0;
  }
  84% {
    right: 14px;
    top: 33px;
    width: 47px;
  }
  100% {
    right: 16px;
    top: 37px;
    width: 47px;
  }
}

.shadow {
    box-shadow: 0 .5rem 1rem #00000026 !important;
}