:root {
  --accent-color: #bb0044;
  --link-color: #337ab7;
  --link-alt-color: #23527c;
}

html {
  height: 100%;
}

body {
  padding-top: 50px;
  min-height: 100%;
  background: #333;
  background-image: url("/theme/images/bg-dark.png");
  background-size: 60px;
  overflow-x: hidden;
}

body.bare {
  background-image: none;
}

.main {
  padding: 40px 25px;
  text-align: left;
  max-width: 800px;
  margin: auto;
  position: relative;
  height: 100%;
  background: white;
  min-height: calc(100vh - 50px);
  /* 50px is navbar height, set in bootstrap.css */
}

@media (max-width: 767px) {
  body {
    background-size: 48px;
  }

  .main {
    max-width: none;
    width: 100%;
    padding: 24px 16px;
  }

  div.main > p {
    margin-left: 0;
  }

  footer {
    margin-left: 0;
  }

  footer div {
    margin-left: 16px;
    margin-right: 16px;
  }

  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .featured-grid li,
  #post-list li {
    height: auto;
    min-height: 0;
  }

  article.hentry {
    height: auto;
    padding: 16px;
  }

  .card-body {
    overflow: visible;
  }

  .article.hentry h4 {
    font-size: 15px;
    text-align: center;
  }

  .article.hentry .entry-content,
  .article.hentry .entry-content p {
    font-size: 12px;
    line-height: 1.1;
  }

  #home-top + #post-list.featured-grid .article.hentry h4 {
    font-size: 18px;
    text-align: left;
  }

  #home-top + #post-list.featured-grid .article.hentry .entry-content,
  #home-top + #post-list.featured-grid .article.hentry .entry-content p {
    font-size: 14px;
    line-height: 1.1;
    text-align: left;
  }
}


.flexbox {
  justify-content: center;
  align-items: center;
  flex-flow: column;
  display: flex;
}

div#home-top div.col-sm-6 {
  margin-bottom: 24px;
  text-align: center;
  height: 300px;
}

div#home-info h1 {
  margin-top: 0;
  font-size: x-large;
}

h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.resume-subtitle {
  margin-top: 0px;
  color: var(--accent-color);
  font-size: 24px;
  font-weight: 500;
}

h4 {
  margin-bottom: 5px;
}

#cv {
  max-width: 780px;
}

#cv p {
  margin: 0px;
}

#pubs p {
  margin: 0 0 10px;
}

.red {
  color: #FF0000;
}

.bar {
  text-decoration: overline;
}

.fixed {
  position: fixed;
}

.side-main-combo {
  margin-left: -210px;
}

.sidebar {
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.sidebar .nav > li > a {
  color: #999;
  padding: 4px 20px;
  font-size: 13px;
  font-weight: 400;
}

/* nested links */
.sidebar .nav .nav > li > a {
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 10px;
  margin-left: 20px;
  font-size: 12px;
}

/* all links */
.sidebar .nav > li > a {
  /*add trasnparent border */
  border-left: 2px solid transparent;
}

/* active & hover links */
.sidebar .nav > .active > a,
.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus {
  color: var(--accent-color);
  text-decoration: none;
  background-color: transparent;
  border-left: 2px solid var(--accent-color);
}

/*.sidebar .nav>.active>a, 
.sidebar .nav>.active:hover>a,
.sidebar .nav>.active:focus>a {
    font-weight: 700;
}
 nested active links 
.sidebar .nav .nav>.active>a, 
.sidebar .nav .nav>.active:hover>a,
.sidebar .nav .nav>.active:focus>a {
    font-weight: 500;
}*/

.left {
  float: left;
}

.right {
  float: right;
}

.main .artcontrol {
  width: 150px;
  border: 1px dotted gray;
  text-align: center;
  padding: 10px;
  float: right;
}

.main .artcontrol div {
  margin-bottom: 20px;
}

.main .artcontrol label {
  display: inline-block;
  width: 20px;
}

.main .artcontrol input.slider {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
}

.main .artfoot {
  clear: both;
}

.main div.artloading {
  position: absolute;
  top: 250px;
  width: 600px;
  text-align: center;
  font-size: 32pt;
  background-color: gray;
}

.main div.artloading .load-detail {
  display: block;
  font-size: 12pt;
  margin-bottom: 0.6em;
}

.main .artcontrol div#v input {
  width: 30px;
  margin-bottom: 10px;
  text-align: center;
}

article.hentry {
  /* width: 100%; */
  height: 100px;
  padding: 15px;
  border: 5px solid var(--accent-color);
  border-radius: 15px;
  box-sizing: initial;
  margin-bottom: 15px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

@media (max-width: 767px) {
  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.featured-grid li {
  border: 1px solid black;
  margin: 10px 0;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--accent-color);
  border-radius: 15px;

}



#post-list li {
  border: 1px solid black;
  margin: 10px 0;
  height: 150px;
  overflow: hidden;
  padding-right: 2em;
  border: 1px solid var(--accent-color);
  border-radius: 15px;
}


.card-image {
  display: inline-block;
  width: 150px;
  height: 100%;
  vertical-align: top;
  margin-right: 2em;
  margin-top: 0;
}

@media (max-width: 767px) {
  #post-list li {
    padding-right: 0.5em;
  }

  #post-list:not(.featured-grid) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .card-image {
    margin-right: 0.5em;
  }
}
/*
@media (min-width:320px) {
  display: block;
  width: 100%;
  margin-right: 0;
}*/

.card-body {
 /*  width: 550px;
  display: inline-block; */
  overflow: hidden;
}

.featured-grid .entry-content,
.featured-grid .entry-content p {
  line-height: 1.1;
}

.card-image img {
  height: 100%;
  width: 100%;
}

article.hentry h4 {
  margin-top: 0px;
}

article.hentry img {
  /* .left(); */
  height: 100px;
  width: 100px;
  margin-right: 15px;
}

div.entry-content img {
  max-width: 400px;
  width: 100%;
}

a.nostyle,
a.nostyle:hover,
a.nostyle:visited {
  text-decoration: inherit;
  color: inherit;
  cursor: auto;
}

a,
.linkstyle {
  color: var(--link-color);
}

a:hover,
a:focus,
.linkstyle:hover,
.linkstyle:focus,
a.nostyle:hover .linkstyle {
  color: var(--link-alt-color);
  text-decoration: underline;
}

.rc_static {
  position: absolute;
  background: white;
}

.rc_static:hover {
  opacity: 0;
}

ol#post-list {
  list-style: none;
  padding: 0;
}

ol#post-list.Bookclub article {
  height: auto;
  padding-bottom: 0;
}

.position .name {
  font-size: 18px;
  font-weight: 500;
  flex: 1;
  display: flex;
}

.institution .name {
  padding-left: 2em;
  color: var(--accent-color);
  flex: 1;
  display: flex;
}

.position, .institution {
  display: flex;
}

.institution .date {
  color: var(--accent-color);
}

.position .name::after, .institution .name::after {
  content: '';
  border-bottom: 2px dotted;
  flex: 1;
  margin: 0 1em 0.5lh 1em;
}

section .title {
  font-size: 18px;
  font-weight: 500;
}

.resume-history-line, .resume-history-line-primary {

}
.resume-history-line, .resume-history-line-secondary {

}

.resume-entry-title, .resume-subsection-title {
  margin: 0;
}

.resume-history-line {
  margin: 0;
  display: flex;
}


.resume-history-line.resume-history-line-primary .resume-entry-title,
.resume-history-line.resume-history-line-primary.resume-entry-title {
  font-weight: bold;
}

.resume-history-line.resume-history-line-secondary {
  margin-left: 2em;
  color: var(--accent-color);
}


.resume-entry-meta {
  margin: 0;
  display: flex;
  color: var(--accent-color);
}

.resume-history-line .resume-entry-date,
.resume-entry-meta .resume-entry-date {
  flex: 1;
  display: flex;
}

.resume-entry-meta .resume-entry-date::before,
.resume-history-line .resume-entry-date::before {
  content: '';
  border-bottom: 2px dotted;
  flex: 1;
  margin: 0 1em 0.5lh 1em;
}

.resume-publication {
  margin-bottom: 0.5em;
}

.resume-publication p {
  margin: 0;
}

span.pub-me {
  color: var(--accent-color);
  font-style: italic;
}

span.pub-title {
  font-weight: bold;
}

span.pub-journal {
}

span.pub-year {
}

div.figure {
  border: 1px solid lightgray;
  text-align: center;
  margin: 2em auto;
  /* padding: 0 2em; */
  width: 80%;
  overflow: clip;
}

.fig-index {
  font-weight: bold;
  padding-right: 0.5em;
}

div.main > p {
  margin-left: 20px;
}

footer {
  margin: 0 0 0 -15px;
  max-width: 800px;
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer div {
  border-top: 1px dotted black;
  position: relative;
  margin: 0 25px 0 25px;
  padding: 5px 10px;
}

div.canvas_box {
  width: 600px;
  margin: auto;
  padding: 0;
}

div.d3fig {
  margin: 0px auto;
  position: relative;
}

.d3fig-control {
  font-size: 1em;
  padding: 0.5em;
  font-family: sans-serif;
}

.d3fig-control input {
  width: 30px;
  text-align: center;
}

label,
input,
button {
  font-size: inherit;
  padding: 0.2em;
  margin: 0.1em 0.2em;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: border-box;
  border-radius: 0.5em;
}

button {
  padding-left: 0.6em;
  padding-right: 0.6em;
}

button.selected {
  outline: 2px solid var(--bg-highlight);
}

.fadeout {
  animation: fadeOut ease 4s;
  -webkit-animation: fadeOut ease 4s;
  -moz-animation: fadeOut ease 4s;
  -o-animation: fadeOut ease 4s;
  -ms-animation: fadeOut ease 4s;
  opacity: 0;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-moz-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-o-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-ms-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.help-pop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  padding: 2em;
  color: white;
}

.help-item {
  display: inline-block;
  margin-right: 1em;
  font-weight: bold;
}

.hidden {
  display: none;
}

.position-relative {
  position: relative;
}

.overlay {
  position:absolute;
  top:0;
  left:0;
}

.margin-auto {
  margin:auto;
}
