body {
  background-image: url('../img/cream_dust.png');
  background-repeat: repeat;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: 'Lato','Helvetica Neue',Verdana,Helvetica,Arial,sans-serif;
  color: #333;
  font-size: 1.7rem;
}

@view-transition {
  navigation: auto;
}

a {
  color: #3b7eb4;
}

a:hover, a:focus, a:active {
  color: #003262;
}

p {
  text-align: justify;
}

.header {
  margin-bottom: 1.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgb(230, 230, 230);
}

.header-title {
  font-family: "Princess Sofia", cursive;
  font-style: italic;
  font-size: 2.5rem;
  padding: 0.25rem;
}

.navbar {
  margin-bottom: 0;
}

.navbar .container-fluid {
  padding-right: 0;
}

.nav > li > a {
  font-size: 1.1em;
  border: 1px solid transparent;
  transition: border 1s ease-out;
}
.nav > li > a:focus, .nav > li > a:hover {
  background-color: transparent;
  border: 1px solid rgb(230, 230, 230);
  transition: border 0.5s ease-out;
}
.nav-pills > li.active > a {
  background-color: rgb(230, 230, 230);
  color: #3b7eb4;
  transition: background-color 1s ease-out;
}
.nav-pills > li.active > a:hover {
  background-color: transparent;
  color: #003262;
  transition: background-color 0.5s ease-out;
}
.nav-pills.pull-right > li:last-child > a {
  text-decoration: underline double #3b7eb4;
}

.footer {
  margin-top: 1em;
  padding-top: 10px;
  border-top: 1px solid rgb(230, 230, 230);

  text-align: center;
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

#nametag {
  height: 240px;
  margin: 0 auto 25px auto;
  padding: 12px 0;

  text-align: center;
  background-color: #e9282d;
  color: white;
  border-radius: 15px;

  box-shadow: 5px 5px 10px -3px #888;
}

@media (min-width: 500px) {
  #nametag {
    width: 375px;
  }
}

#nametag h2 {
  margin: 0;

  font-weight: 900;
  font-size: 52px;
  letter-spacing: 3px;
}

#nametag h3 {
  margin: -10px 0 15px 0;

  font-size: 29px;
}

#namebox {
  width: 100%;
  height: 110px;

  display: flex;
  justify-content: center;
  align-items:center;

  background-color: white;
}

#namebox h1 {
  font-family: 'Princess Sofia', cursive;
  font-size: 64px;
  font-weight: 400;
  color: #333;
}

#blurb {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 0px;
  border-bottom: 1px solid rgb(230, 230, 230);
}

#blurb p {
  text-align: center;
}

.lead {
  font-size: 2.1rem;
}

.lead.tagline {
  font-style: italic;
}

.preserve-newline {
  white-space: pre-line;
}

/* Modal code inspired by: https://jsfiddle.net/kumarmuthaliar/GG9Sa/1/ */
.modalDialog {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: rgba(0, 0, 0, 0.8);

  opacity: 0;
  pointer-events: none;
}

.transition {
  transition: opacity 1s ease-out;
}

.modalDialog:target {
  opacity: 1;
  pointer-events: auto;
}

.modalDialog > div {
  position: relative;
  width: 300px;

  margin: 10% auto;
  padding: 5px 20px 10px 20px;

  background: white;
}

.caveat {
  font-style: italic;
  font-size: 0.75em;
  text-align: center;
}

p.new-text-section {
  margin-top: 1.5em;
}

.alert-attention {
  margin: 1.5em 0 1em 0;
  padding: 5px;

  background-color: #f9ebec;
  border-color: #cc0000;

  text-align: center;
}

h2 {
  margin-top: 1.5em;
  font-size: 1.3em;
}

h3 {
  font-size: 1.1em;
}

ul.years li {
  padding-left: 2.75em;
  text-indent: -2.75em;
}

.contact-panel {
  margin-top: 1.2em;
  font-size: 1em;
}

.contact-panel.list-inline>li {
  display: inline-block;
  padding-right: 1em;
  padding-left: 5px;
}

.contact-button {
  background-color: transparent;
  color: #3b7eb4;
}

.bi {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentcolor;
  width: 1em;
    height: 1em;
}

.instructions {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    --bs-body-bg: #282c34;
    --bs-body-color: #d4d9e1;
    --bs-border-color: #4b5263;
    --bs-link-color: #8cc8ff;
    --bs-link-color-hover: #61afef;

    background-color: var(--bs-body-bg);
    background-image: none;
    color: var(--bs-body-color);
  }

  a {
    color: var(--bs-link-color);
  }

  a:hover,
  a:focus,
  a:active {
    color: var(--bs-link-color-hover);
  }

  .nav-pills > li.active > a {
    background-color: var(--bs-border-color);
    color: white;
  }
  .nav-pills > li.active > a:hover {
    color: var(--bs-link-color-hover);
  }

  #nametag {
    background-color: black;

    box-shadow: 0px 0px 10px 2px #888;
  }

  #nametag h1,
  #nametag h2 {
    color: #e6e6e6;
  }

  #namebox {
    background-color: var(--bs-border-color);
  }

  #namebox h1 {
    color: white;
  }

  .modalDialog > div {
    background: var(--bs-border-color);
  }

  .modalDialog .close {
    color: white;
    opacity: 0.5;
  }

  .alert-attention {
    background-color: transparent;
    color: #f9ebec;
  }
}
