/* Header text */
#header-blast-text {
  margin: 120px 0 50px 20vw;
  color: var(--header-text);
}
#header-blast-text h1 {
  color: var(--header-text);
  font-size: 5.5rem;
  font-family: 'Teko', sans-serif;
  font-weight: normal;
  letter-spacing: 14pt;
  line-height: 0.6;
  margin-bottom: 0;
}
#header-blast-text p {
  font-size: 1.8rem;
  font-family: 'Abel', sans-serif;
  letter-spacing: 8pt;
  line-height: 1rem;
  font-weight: normal;
}
#header-blast-text span {
  position: relative;
  top: 2px;
  margin-left: 10px;
  font-size: 2rem;
  font-family: 'Abel', sans-serif;
  font-weight: 600;
  letter-spacing: 6pt;
}

/* Main */
.sequence {
  font-size: 12pt;
  font-family: monospace;
  width: 96%;
  margin: 40px;
  margin-bottom: 75px;
}
.text-box {
  padding: 10px;
  margin: 15px;
  font-size: 12pt;
  color: #111;
  background-color: white;
  word-wrap: break-word;
  border-radius: 10px;
}
.link-box {
  background-color: #ccc;
}
.alg-btn {
  background-color: #ddd;
  color: black;
  border-color: #bbb;
  border-style: solid;
  border-width: thin;
  font-size: 1.25rem;
  font-weight: normal;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}
.alg-btn:hover {
  background-color: #ccc;
}
.alg-btn.active {
  background-color: #0275D8;
  border-style: none;
  color: white;
}
#sample-sequence {
  color: var(--inverse);
  float: right;
  margin: 0 25px 10px 0;
}
#blast-info {
  height: 40px;
  float: right;
}
#alg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 35px;
}
#alg-popover {
  display: none;
  position: absolute;
  height: 100px;
  width: 160px;
  top: -32px;
  right: -180px;
  color: white;
  text-align: center;
  padding: 15px;
  z-index: 10;
}
#alg-popover::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  border-radius: 5px;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #111 transparent;
  content: "";
  z-index: -1;
}
#alg-popover::after {
  background-color: #111;
  box-shadow: -2px 2px 2px 0 #111;
  content: "";
  display: block;
  height: 20px;
  position: absolute;
  top: 42px;
  left: -5px;
  transform:             rotate( 45deg );
      -moz-transform:    rotate( 45deg );
      -ms-transform:     rotate( 45deg );
      -o-transform:      rotate( 45deg );
      -webkit-transform: rotate( 45deg );
  width:  20px;
}
#radio1-label {
  border-radius: 10px 0px 0px 10px;
}
#radio2-label {
  border-radius: 0px 10px 10px 0px;
}
#btn-submit {
  display: block;
  width: 200px;
  margin: 15px auto;
}

/* DB tabs */
div.db-tab {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 25px 100px 0 100px;
  margin-bottom: 25px;
  color: var(--text-main);
  background-color: var(--inner-pane);
  border: 2px solid var(--bg-color);
  border-radius: 15px;
}
.form-group {
  width: 100%;
}
.db-group {
  margin-top: 25px;
}
.db-search {
  max-width: 400px;
  margin-top: 15px;
  padding: 3px 5px;
  color: var(--navbar-dark);
  background-color: var(--transparent-input);
  border-color: #1f2b3d;
}
.db-search:focus {
  background-color: white;
}
div.row.multi-panes p {
  margin-top: 10px;
}
div.row.multi-panes > .col {
  padding: 5px;
  margin: 0 5px;
  border: 2px solid rgba(120,120,120,0.25);
  border-radius: 10px;
  min-height: 300px;
}
.db-group {
  color: #222;
  text-align: left;
  max-width: 800px;
  max-height: 500px;  /* 10 db items */
  overflow-y: scroll;
}
img.db.loader {
  display: none;
  position: absolute;
  top: calc(50% - 5vw);
  left: calc(50% - 5vw);
}
p.no-dbs {
  display: none;
}
.db-tab p.errorlist {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 20px;
}
#browser-btn {
  position: relative;
  height: fit-content;
  margin: 9px 10px 0 0;
}

/* radiobutton */
label.list-group-item {
  width: 100%;
  user-select: none;
  padding: 5px 15px;
  cursor: pointer;
}
.list-group-item.selected {
  color: #fff;
  background-color: #0275D8;
}
.list-group-item.selected span {
  color: #ddd;
}
.db-group label:first-of-type {
  border-radius: 1rem 0 0 0;
}
.db-group label:last-child {
  border-radius: 0 0 0 1rem;
}
.db-group label.only-child {
  border-radius: 1rem 0 0 1rem;
}
.condition {
  float: right;
  color: #6c757d;
  font-size: 80%;
  line-height: 18pt;
  padding-left: 20px;
}
.access-glyph {
  width: 10px;
  float: right;
  margin: 8px 0 8px 15px;
}
input[type="radio"] {
  display: none;
}
input[type="radio"] + .list-group-item {
  cursor: pointer;
}
input[type="radio"]:checked + .list-group-item {
  background-color: #0275D8;
  color: #fff;
}
input[type="radio"]:checked + .list-group-item .condition {
  color: #fff;
}
input[type="radio"]:checked + .list-group-item:before {
  color: inherit;
}

/* Taxon dropdown */
.taxon-search {
  color: #222;
  position: relative;
  z-index: 2;
}
.taxon-search input.valid {
  background-color: white;
  box-shadow: 0 0 10px 2px limegreen;
}
.taxon-search img.loader {
  display: none;
  position: absolute;
  top: -6px;
  right: calc(50% - 205px);
  width: 45px;
  height: auto;
}
.taxon-search ul {
  position: absolute;
  top: 32px;
  left: calc(50% - 198px);
  width: 396px;
  padding: 0;
}
.taxon-search li {
  background-color: white;
  border: 1px solid #ccc;
  cursor: pointer;
  list-style: none;
  padding: 2px 10px;
}
.taxon-search li:hover {
  background-color: #ccc;
}
.taxon-search li:last-child {
  border-radius: 0 0 5px 5px;
}
.taxon-search span {
  min-width: 80px;
  display: inline-block;
  padding-bottom: 2px;
  margin-right: 20px;
  border-radius: 5px;
  white-space: nowrap;
}
.taxon-search span.class {
  /* midnight blue */
  text-align: center;
  color: white;
  background-color: #273c7e;
}
.taxon-search span.order {
  /* forest green */
  text-align: center;
  color: white;
  background-color: #106331;
}
.taxon-search span.family {
  /* purple */
  text-align: center;
  color: white;
  background-color: #4e2047;
}
.taxon-search span.genus {
  /* maroon */
  text-align: center;
  color: white;
  background-color: #800f0f;
}
.taxon-search span.species {
  /* light gray */
  text-align: center;
  background-color: #cdd2d3;
  border: 1px solid #aaa;
}

/* Loading animation */
#animation {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  z-index: 9;
}
#animation canvas {
  margin-top: 150px;
}
#animation .text {
  position: absolute;
  text-align: center;
  top: 20vh;
  margin-left: -100px;
  z-index: 10;
  overflow: hidden;
  white-space: nowrap;
}
#animation .text .lead {
  color: #ccc;
}
.run-text {
  text-align: left;
  font-family: monospace;
  font-size: 1.8rem;
  /* Typewriter animation */
  border-right: .15rem solid white;
  letter-spacing: .2rem;
  animation: typing 2s steps(16, end),
    blink-caret .75s step-end infinite;
}
  /* Typing effect */
  @keyframes typing {
    from { width: 0 }
    to { width: 255px }
  }
  /* The typewriter cursor effect */
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
  }

/* Media queries */
@media (max-width: 1480px) {
  #header-blast-text {
    zoom: 0.75;
  }
  div.db-tab {
    padding: 25px 0 0 0;
  }
  label.list-group-item {
    font-size: 0.8rem;
    padding: 5px 10px: 5px 15px;
  }
}
@media (max-width: 1270px) {
}
@media (max-width: 992px) {
}
@media (max-width: 768px) {
}
@media (max-width: 576px) {
}
@media (max-width: 533px) {
}
@media (max-width: 485px) {
}
