@import url('https://fonts.googleapis.com/css?family=Lato|Old+Standard+TT|Fira+Sans+Condensed|Sulphur+Point&display=swap');

figure {
  max-width: 33%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  padding: 0;
}

figure figcaption {
  max-width: 80%;
  text-align: center;
}

figcaption.imgTitle,
.audioTitle {
  font-family: 'Sulphur Point';
  color: #777;
  font-size: 0.9em;
}

figcaption.imgNotes,
.audioNotes {
  font-family: 'Sulphur Point';
  color: #777;
  font-size: 0.7em;
  font-style: italic;
}

figure img {
  max-width: 95%;
  object-fit: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

figure.floatLeft,
figure.floatRight,
figure.floatCentered {
  /* padding: 0.5em 1em; */
  margin-bottom: 2%;
  background-color: var(--headerBlockBackground);
  border: 1px solid var(--commentBorder);
}

figure.floatLeft {
  float: left;
  margin-right: 2%;
}

figure.floatRight {
  float: right;
  margin-left: 2%;
}

figure.floatCentered {
  max-width: 100%;
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

audio {
  filter: sepia(20%) saturate(70%) grayscale(1) contrast(99%) invert(12%);
  width: 200px;
  height: 25px;
  padding: 0;
  margin-bottom: 0;
}

.audioTitle {
  font-size: 0.9em;
  line-height: 1;
}

.backLink,
.forwardLink {
  display: inline;
}

/* Popover styling */

a {
  text-decoration: none;
}

.blogTitle {
  display: inline-block;
  left: 0;
  font-family: 'Sulphur Point';
  font-size: 1.3em;
  font-weight: bold;
}

.footnote {
  display: block;
  position: fixed;
  right: 10px;
  bottom: 50%;
  background-color: antiquewhite;
  color: black;
  border: 1px solid grey;
  border-radius: 4px;
  padding: 0.5em;
  max-width: 25em;
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: -1;
}

.footnoteTitle {
  font-size: 0.8em;
  color: #999;
  transition: color 0.5s ease-in-out;
}

.footnoteTitle:hover {
  cursor: pointer;
  color: #fff;
}

.footnoteTitle:hover > .footnote {
  right: 50%;
  bottom: 50%;
  opacity: 1;
  z-index: 2;
}

.commentContainer {
  border-top: 1px solid rgba(58, 6, 19, 0.8);
  margin-bottom: 5px;
}

.comment {
  background-color: rgba(100, 100, 100, 0.2);
  padding: 5px 5px 0 5px;
  margin: 5px 5px 0 5%;
}

.comment:nth-child(3n + 1) {
  border-left: 2px solid teal;
}
.comment:nth-child(3n + 2) {
  border-left: 2px solid salmon;
}
.comment:nth-child(3n + 0) {
  border-left: 2px solid wheat;
}

.commentName {
  display: inline-block;
  left: 0;
  font-family: 'Sulphur Point';
  font-size: 0.9em;
  font-weight: bold;
}

.commentDate,
.blogDate,
.commentActionReply {
  display: inline-block;
  right: 40%;
  font-size: 0.7em;
  font-style: italic;
}

.commentActionReply {
  position: absolute;
  right: 5%;
  text-decoration: underline;
  color: #ccccff;
  cursor: pointer;
}
.commentBody {
  display: block;
  padding: 5px;
  background-color: rgba(55, 110, 143, 0.2);
  font-size: 0.9em;
}

.blogPreviews {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.otherBlog {
  width: 70%;
  background-color: #411;
  padding: 5px;
  margin-top: 0.2em;
  opacity: 0.6;
  transition: background-color 0.2s ease-in, border-bottom 0.2s ease-in;
}

.otherBlog:hover {
  cursor: pointer;
  opacity: 1;
  /* background-color: #522; */
}

.otherBlog:first-of-type {
  border-top: 1px solid rgba(58, 6, 19, 0.8);
}

.otherBlog:last-of-type {
  border-bottom: none;
}

.otherBlog h2 {
  font-size: 0.9em;
  line-height: 1em;
}

.otherBlog p {
  font-size: 0.8em;
}
table {
  font-family: 'Oxygen', sans-serif;
  font-size: 12pt;
  border-collapse: collapse;
}

td,
th {
  border: 1px solid #666;
  width: auto;
  min-width: 5em;
  padding: 6px;
}

th {
  background-color: #999;
  font-weight: bold;
  color: black;
}

.blogNavContainer {
  width: 40%;
  min-width: 17em;
  display: flex;
  justify-content: space-around;
  margin-bottom: 2em;
  border-bottom: 2px solid #aaa;
}

.blogNav {
  cursor: pointer;
  transition: color 0.5s ease-in-out;
}

.blogNav:hover {
  color: #fff;
}

.blogContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
}
.indent {
  margin-left: 5%;
}

.commentFormContainer {
  width: 80%;
  margin: 0 10%;
  background-color: rgba(100, 100, 100, 0.2);
  padding: 0.5em;
}
