* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  background: #191919;
  color: rgb(191, 191, 191);
  font-family: "Helvetica Neue", "Helvetica", sans-serif;
  font-size: 12.5px;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: rgb(191, 191, 191);
  text-decoration: none;
}

#image-wrapper {
  background: pink;
  width: 100%;
  height: 100%;
  background: url("../images/ecostres.png") center center no-repeat;
}

#left {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  cursor: w-resize;
}

#right {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  cursor: e-resize;
}

#about,
#citation {
  z-index: 3;
}

a.home {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  color: #e8e8e8;
  border-top: 1px solid #e8e8e8;
  padding: 6px 4px;
  transition: 0.25s ease all;
}

a.home:hover {
  background: #e8e8e8;
}

a.pilot {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #7d6210;
  padding: 6px 4px;
  position: relative;
  color: #7d6210;
  transition: 0.25s ease all;
}

a.pilot .images {
  margin-bottom: 0.35em;
}

a.pilot .images img {
  width: 150px;
  vertical-align: top;
}

a.pilot .images img.portrait {
  width: 100px;
}

a.pilot:hover {
  /* color: #eee;
  background: #7d6210; */
  background: #eee;
}

a.pilot .title {
  font-weight: bold;
}

a.pilot .description {
  margin-bottom: 1em;
  transition: 0.25s ease all;
}

a.pilot .date {
  position: absolute;
  top: 6px;
  right: 4px;
  transition: 0.25s ease all;
}

#image-wrapper {
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2em;
}

#image-wrapper figure {
  display: none;
  /* padding-top: calc(1em + 12px); */
}

#image-wrapper figure.shown {
  display: block;
}

#image-wrapper figure img {
  max-height: calc(100vh - 160px);
}

#index-container,
#pilot-container {
  display: flex;
  /* min-height: 100%; */
}

#about {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* background: #f0f0f0;
  background: #d7cfcf; */
  /* background: #f1f1f1; */
  /* background: #808072;
  background: #a57a05; */
  background: #191919;
  color: #e8e8e8;
  /* color: #1f1f23;
  color: #77777b; */
  /* color: #826412; */
  /* color: #191919; */
  font-size: 12.5px;
  text-transform: uppercase;
  border-top: 1px solid #e8e8e8;
}

#about .text {
  padding: 6px 4px;
  transition: 0.25s ease all;
}

#about .text:hover,
#about.open .text {
  color: #191919;
  background: #e8e8e8;
}

figcaption {
  color: #7a7a7a;
  color: rgb(144, 144, 144) !important;
  font-size: 12.5px;
  padding: 4px;
  text-transform: uppercase;
}

figcaption p {
  margin-top: 0;
}

figcaption a {
  color: rgb(144, 144, 144) !important;
  text-decoration: underline;
}

#about .text {
  cursor: pointer;
}

#inside-about {
  display: none;
  text-transform: none;
  padding: 6px 4px;
  padding-top: 0;
}

#inside-about p {
  margin-top: 0;
}

#inside-about a {
  text-decoration: underline;
}

#inside-about .inside {
  display: flex;
  padding-top: 1em;

}

#inside-about div {
  /* margin-top: 1em; */
  padding-right: 2em;
  margin-bottom: 1em;
}

#inside-about div:nth-child(1) {
  margin-top: 0;
}

a.explore {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid #7a7a7a;
  color: #7a7a7a;
  margin-top: 0.5em;
  transition: 0.25s ease all;
}

tr:hover a.explore {
  color: #e8e8e8;
  border-color: #e8e8e8;
}

a.explore:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
  color: #191919 !important;
}

.metadata {
  /* padding: 6px 4px; */
}

.metadata .text {
  text-transform: none;
  margin-bottom: 2em;
}

.metadata .text a {
  text-decoration: underline;
}

.metadata h1 {
  border-bottom: 1px solid #191919;
  color: #191919;
  padding: 6px 4px;
  margin: 0;
}

table#everything,
table#details {
  font-size: 12.5px;
  text-transform: uppercase;
  color: #e8e8e8;
  width: 100%;
  border-collapse: collapse;
}

table#everything {
  border-left: 1px solid #7a7a7a;
}

table#details {
  width: auto;
  border: 1px solid #7a7a7a;
  margin: 1em 0 3.5em;
}

table#details td:nth-child(1) {
  border-right: 1px solid #7a7a7a;
}

th {
  font-weight: normal;
  text-align: left;
}

tr {
  border-bottom: 1px solid #7a7a7a;
}

td,
th {
  padding: 6px 4px;
}

table#everything td {
  padding-bottom: 1.5em;
}

td.text,
td.city,
td.year {
  vertical-align: top;
}

td.text {
  padding-right: 1em;
}

td.images img {
  width: 150px;
  vertical-align: top;
  margin-bottom: 4px;
  /* display: none; */
}

td.images img.portrait {
  width: 100px;
}

tr .description,
td.year,
td.city,
td.pilot {
  color: #7a7a7a;
  transition: 0.25s ease all;
}

tr:hover .description,
tr:hover td.year,
tr:hover td.city,
tr:hover td.pilot {
  color: #e8e8e8;
}

.pilot-images figure {
  margin-bottom: 2em;
}

.pilot-images figcaption {
  padding-left: 0;
}

.metadata {
  font-size: 12.5px;
  text-transform: uppercase;
  color: #e8e8e8;
}

h1 {
  font-weight: normal;
  font-size: 1em;
}

a.pilot {
  color: #e8e8e8;
  border-bottom-color: #7a7a7a;
}

a.pilot .description,
a.pilot .date {
  color: #7a7a7a;
}

a.pilot:hover {
  background: transparent;
}

a.pilot:hover .description,
a.pilot:hover .date {
  color: #e8e8e8;
}

#home-link {
  background: #191919;
  color: #e8e8e8;
  border-bottom: 1px solid #7a7a7a;
}

#home {
  background: white;
  min-width: 135px;
}

a.home {
  border-top: 0;
  border-bottom: 1px solid #191919;
}

a.index {
  display: block;
  font-size: 12.5px;
  text-transform: uppercase;
  color: #191919;
  border-bottom: 1px solid #191919;
  padding: 6px 4px;
  transition: 0.25s ease all;
}

th.tablesorter-header:nth-child(5){
  padding-right: 2em;
}

thead {
  background: #191919;
  color: #e8e8e8;
}

@media screen and (max-width: 640px) {

  thead,
  td.pilot,
  td.images {
    display: none;
  }

  #inside-about {
    overflow-y: scroll;
    max-height: 65vh;
  }

  #inside-about .inside {
    display: block;
    padding-right: 0;
  }

  #index-container, #pilot-container {
    flex-direction: column;
  }

}
