body {
  margin: 0 auto;
  max-width: 960px;
  line-height: 1.75em;
}

.dbreturn {
  position: fixed;
  right: calc(50% + 960px/2 + 1em);
  z-index: 12;
}

.dbreturn > p {
  white-space: nowrap;
  padding: .5em 1em;
  background: rgba(51, 204, 204, .5);
  border-radius: .5em;
}

table {
  margin: 1em auto;
  text-align: left;
  border-collapse: collapse;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

table#available-genes tr > * {
  padding: 0 .2em;
  text-align: center;
}

table#GTEx-tissues tr > * {
  padding: 0 1em;
  text-align: center;
}

thead {
  border-bottom: 1px solid black;
}

table#available-genes th {
  line-height: 1.2em;
}

table#available-genes tr:nth-child(2n),
table#GTEx-tissues tbody:nth-child(2n) {
  background: #eee;
}

tr > *:nth-child(1),
tr > *:nth-child(2) {
  text-align: left !important;
}

/*
 * Lots of specific rules to format wide, content-stuffed tables to our liking.
 */
table#GTEx-tissues tr > *:nth-child(1),
table#GTEx-tissues tr > *:nth-child(2) {
  white-space: nowrap;
}

table#available-genes tbody td:nth-child(2) {
/*  white-space: nowrap; */  /* makes table so wide that it overflows */
  font-size: 1em;
}

table#GTEx-tissues tr > *:nth-child(3) {
  text-align: right;
}

.tabpanel {
  white-space: nowrap;
  border: 2px solid rgba(51, 204, 204, .9);
  border-bottom-color: transparent;
  border-radius: 4px 4px 0 0;
  /*color: #337ab7;*/
  background-color: #fff;
  display: inline-block;
  padding: 5px 7px;
}

#available-genes .tabpanel {
  white-space: normal;
}

.downloadbutton {
  border: 1px solid #adadad;
  border-radius: 4px;
  padding: 0 12px;
  display: inline-block;
  white-space: nowrap;
  /*vertical-align: middle; /* looks better without */
}

.downloadbutton:hover {
  background-color: #e6e6e6;
  color: #333;
  cursor: not-allowed;
}

h3 {
  border: .2em solid rgba(51, 204, 204, .5);
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-radius: .5em;
  padding: .2em .5em;
  margin-top: 2.5em;
  background: rgba(51, 204, 204, .5);
}

#toc {
  background-color: rgba(51, 204, 204, .5);
  border-radius: .5em;
  padding: .02em 0;
}

.citation {
    margin: 0 2em;
}
