/* Header text */
#header-extract-text {
  color: var(--header-text);
  margin: 120px auto 150px auto;
  width: 80vw;
  min-width: 800px;
}
#header-extract-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-extract-text p {
  font-size: 1.8rem;
  font-family: 'Abel', sans-serif;
  letter-spacing: 8pt;
  line-height: 1rem;
  font-weight: normal;
}

/* Main components */
#cids-text-input {
  display: flex;
  flex-direction: column;
  height: calc(100% - 190px);
}
textarea#cids_text {
  box-sizing: border-box;
  height: 100%;
  font-family: monospace;
}
.choice-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";
}
.choice-btn:hover {
  background-color: #ccc;
}
.choice-btn.active {
  background-color: #0275D8;
  border-style: none;
  color: white;
}
#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-select {
  position: relative;
  width: 100%;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 25px 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-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;
}
.db-group {
  color: #222;
  margin-top: 25px;
  text-align: left;
  width: 100%;
  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 25px;
  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;
}

/* Media queries */
@media (max-width: 1480px) {
  #header-extract-text {
    zoom: 0.75;
  }
  div.db-select {
    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) {
}
