:root {
  --background-color: #e0e0e0;
  --secondary-color: #fbfefb;
  --shadow-color: #000000;
  --footer-bg: rgb(33, 37, 41);
  --h-color: #663399;
  --text-dark: #101010;
  --text: #333333;
  --text-light: #7b7b85;
  --text-lighter: #ababab;
  --note-bg: #f0ead2;
  --bold-color: #6c584c;
}

body {
  background: var(--background-color);
  color: var(--text);
  font-family: 'Arial', sans-serif;
}

main {
    margin: 2em;
}

h1, h2, h3 {
    font-family: 'DIN Alternate', 'Helvetica', 'Avenir Next', sans-serif;
    color: var(--h-color);
    # text-shadow: 1px 1px 2px var(--shadow-color);
    text-align: center;
}

img {
    box-shadow: 1px 1px 5px black;
    margin-top: 1.2em;
}

.list-group-item > a {
    text-decoration: none;
    font-size: 110%;
}

.list-group-item > a:hover {
    text-decoration: underline;
    color: #00e;
}

.help {
    color: orange;
    margin-bottom: .5em;
    background-color: rgb(61,70,96);
    border-top: 1px solid #888;
}

.navlocal {
    background-color: rgb(61,70,96);
}

.figure-caption {
  color: var(--text-light);
}

a .figure-img {
  border: 2px solid rgba(0, 0, 0, 0);
}

a:hover .figure-img {
  border: 2px solid rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));
}

.invisible {
  display: none;
  width: 1px;
  height: 1px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#caption {
  font-weight: bold;
  font-size: 1.2em;
  margin: auto;
  display: block;
  text-align: center;
  color: var(--text);
  padding: 10px 0;
  height: 150px;
}

.modal-content, #caption, #canvas {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 1s;
  animation-name: zoom;
  animation-duration: 1s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.nav-link {
    padding-bottom: .25em;
}

.nav-link:hover {
    background-color: #999;
}

.card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-color: #666666;
}

.card-group {
    padding-left: 5em;
    padding-right: 5em;
}

.footer {
    background-color: var(--footer-bg);
    color: var(--text-lighter);
    margin-top: 1em;
    padding: 1em 2em;
    text-align: right;
    font-size: .8em;
}

.footer a {
    color: #ff8800;
}

.close {
    margin: auto;
    display: block;
    width: 80%;
    font-weight: bold;
    max-width: 700px;
    font-size: 3rem;
    text-align: right;
    line-height: .5;
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 1s;
}

.close:hover, .close:focus {
    color: #aaaaa;
    text-decoration: none;
    cursor: pointer;
}

.fluxdate {
    text-align: right;
    margin: 0em 6em;
    font-size: 1em;
}

.fluxdate li {
    display: inline;
    padding-left: 2em;
    list-style-type: none;
}

.fluxdate span {
    color: var(--text);
    font-size: 110%;
    padding: 0 .10em 0 .5em;
}

.text-secondary {
    font-weight: bold;
    font-style: italic;
}

@media (max-width: 73rem) {
  main {
    margin: 0px;
  }
  .help {
    display: none;
  }
  .card-group {
    padding-left: .75em;
    padding-right: .75em;
  }
  .fluxdate {
    margin: 0;
    text-align: left;
    font-size: .9em;
  }
  .fluxdate li {
    display: block;
    list-style-type: none;
    padding-left: 0;
  }
  .fluxdate span {
    font-size: 100%;
  }
  .nav-link {
    font-size: .8rem;
  }
  .close {
    font-size: 3em;
  }
}

.note {
  background-color: var(--note-bg);
  border: 1px solid var(--text-light);
  border-radius: 8px 8px 8px 8px;
  margin: 1.25rem;
  padding: 1.25rem;
}

.note b {
  color: var(--bold-color);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #191919;
    --secondary-color: #232428;
    --footer-bg: #121212;
    --h-color: #F5deb3;
    --text-dark: #efefef;
    --text: #c4c5c9;
    --text-light: #6c6d71;
    --text-lighter: #8e8f93;
    --shadow-color: #ffffff;
    --note-bg: #251d3a;
    --bold-color: #ffd380;
  }
}
