form {
  padding: 25px 50px;
}
label {
  font-size: 1.2rem;
}
small {
  font-size: 1rem;
  padding-top: 10px;
  color: #9aa;
}
select {
  cursor: pointer;
}
div.break {
  width: 100%;
  height: 5px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
}
span.text-warn {
  font-weight: normal;
}
.btn-outline-warning {
  background-color: var(--btn-outline-warn);
}
.top-element-narrow {
  margin: 20vw 15% 10% 15%;
  position: relative;
  z-index: 2;
}
.top-element-high {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 25px;
}
.vpad-5 {
  padding-top: 50px;
  padding-bottom: 50px;
}
.pane.home {
  padding: 50px 25px;
}
.criteria-list li {
  font-size: 14pt;
  line-height: 1.5;
  padding: 10px 30px;
}
.form-group {
  margin: 50px 0;
}
.form-group.disabled .text-bright {
  opacity: 0.25;
}
.form-group.disabled select {
  background-color: var(--faded-weak);
  border-color: #666;
  cursor: not-allowed;
  color: var(--faded-strong);
}
.form-group.disabled select:hover {
  color: var(--text-warn);
  opacity: 0.8;
}
.lead.big {
  font-size: 1.5rem;
}
.lead.huge {
  font-size: 2rem;
}
.emphasis {
  text-decoration: underline;
  font-weight: bolder;
}
.indented {
  width: 80%;
  margin: auto;
}
.horizontal-line {
  margin: 75px 0;
  width: 100%;
  border-bottom: 1px solid #fff;
}
.modal-dialog.text {
  width: 800px;
}
.modal .form-group {
  margin: 15px;
}
#proceed-btn {
  margin-bottom: 15px;
}
#disclaimer-agree-btn {
  margin-bottom: 15px;
}
.species-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: white;
  box-shadow: 3px 3px 5px #aaa;
}
#species-list option {
  cursor: pointer;
  padding: 5px 15px;
}
#species-list option:hover {
  background-color: #ccc;
}
#species-input {
  margin-bottom: 10px;
}
#species-input.invalid {
  color: firebrick;
  background-color: #fee;
  box-shadow: 0 0 10px 5px firebrick;
}
#species-input.success {
  background-color: #efe;
  box-shadow: 0 0 10px 5px limegreen;
}
#species-no-match {
  color: #333;
  padding: 5px 15px;
}
#species-error {
  color: firebrick;
  padding: 5px 15px;
  box-shadow: 3px 3px 5px firebrick;
}
#spinner-species {
  position: absolute;
  display: block;
  top: -0.5rem;
  right: 1rem;
  width: 3.5rem;
  height: auto;
}

/* Input control elements for custom input behaviour
Keywords and series_labels pop out and into separate elements which aggregate
to form an array.
*/
div.input-control {
  position: relative;
}
div.input-control .add-item {
  position: absolute;
  top: 2px;
  right: 20px;
  color: #888;
  line-height: 0.7;
  font-size: 2.5rem;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition-duration: 0.25s;
  padding: 0rem 0.4rem 0.3rem 0.4rem;
}
div.input-control .add-item:hover {
  color: white;
  background-color: var(--success);
}
div.input-control .selected-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
div.input-control .item {
  display: block;
  color: white;
  background-color: forestgreen;
  border-radius: 10px;
  padding: 3px 5px 3px 10px;
  margin: 10px;
}
div.input-control .item span.delete {
  cursor: pointer;
  padding: 0 10px;
  float: right;
}
/* Series_label input-control has some extra fields */
div.input-control .selected-items.col {
  flex-direction: column;
}
div.input-control .col .item {
  position: relative;
  display: block;
  color: white;
  background-color: forestgreen;
  border-radius: 10px;
  padding: 3px 5px 3px 10px;
  margin: 10px 0;
  width: 225px;
}
div.input-control .col .item input {
  position: absolute;
  top: 2px;
  left: 250px;
  padding: 2px 15px;
  border: none;
  border-radius: 5px;
  width: 720px;
}
div.input-control .col .item input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#keywordsHelp1, #seriesLabelsHelp {
  transition-duration: 0.25s;
}

/* File upload */
.pane.file-upload {
  padding: 20px 0;
  width: 800px;
}
.row.file-input {
  min-width: fit-content;
  flex-wrap: nowrap;
}
input.file-input {
  opacity: 0;
  width: 0.1px;
  height: 0.1px;
}
label.file-input {
  margin: 0px 100px;
  width: 200px;
  transition-duration: 0.25s;
}
.file-field {
  width: 250px;
  height: 35px;
  color: black;
  background-color: #eee;
  border-radius: 10px;
  border-color: #ccc;
  padding: 6px;
  margin-top: 2px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:disabled {
  color: #aaa;
  background-color: #666;
  border-color: #555;
  cursor: not-allowed;
}
.container.file-submit {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 30px 0;
  max-width: 350px;
  text-align: center;
}
#file-upload-header {
  margin: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #445567;
}
#file-upload-header div {
  padding: 15px;
}
#reformat_checkbox {
  margin-left: 10px;
  cursor: pointer;
}
#file-submit-btn {
  margin-right: 25px;
  margin-top: -1px;
}

/* Data review */
.container.narrow {
  margin: 20px;
  margin-bottom: 50px;
  width: 650px;
}
.text-box {
  font-size: 14pt;
  padding: 10px;
  margin: 0 5px 50px 5px;
  background-color: white;
  border-radius: 10px;
  border-style: solid;
  border-color: #ccc;
  border-width: thin;
  height: calc(100% - 80px);
}
.text-box.wider {
  padding: 10px 15px;
}
.text-box.fasta {
  padding: 25px 15px;
  font-family: monospace;
}
.container-flex.table {
  overflow-x: scroll;
  max-width: 100%;
}
table {
  width: 100%;
  background-color: white;
  border-radius: 10px;
  overflow-x: scroll;
}
table.review-header {
  font-size: 12pt;
}
th {
  background-color: #ccc;
  font-weight: bold;
  padding: 5px;
  white-space: nowrap;
}
td {
  padding: 5px;
  border-style: solid;
  border-width: thin;
  border-color: #ddd;
  white-space: nowrap;
}
table tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
table tr:first-child th:last-child {
    border-top-right-radius: 10px;
}
table tr:last-child td:first-child {
    border-left-style: none;
    border-bottom-style: none;
}
table tr:last-child td:last-child {
    border-right-style: none;
    border-bottom-style: none;
}
table tr td:last-child {
    border-right-style: none;
}
#sampleChart {
  margin: 50px 5% 50px 0;
}
#sampleChart .g-gtitle {
  pointer-events: all;
}
#submit-final-box {
  padding: 50px 25px;
}
#submit-final-box .lead {
  font-size: 18pt;
}
#contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  padding: 25px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  z-index: 9999;
}
#contact-form {
  width: 600px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-color: black;
  border-style: solid;
  border-width: thin;
  border-radius: 15px;
  position: fixed;
  left: 50%;
  top: 50%;
  margin-left: -300px;
  margin-top: -225px;
}
textarea#comment {
  font-size: 1rem;
}

/* Loading animation */
#animation {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background-color: rgba(0,0,0,0.75);
  z-index: 20;
  padding: 5vw;
}
#animation canvas {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 500px;
  height: 300px;
  margin: 0 0 0 -300px;
  z-index: 21;
}
#animation .container {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 600px;
  margin-left: -250px;
}
#animation .run-text {
  color: #fff;
  z-index: 21;
  font-family: monospace;
  font-size: 1.8rem;
  overflow: hidden;
  white-space: nowrap;
  /* Typewriter animation */
  /* border-right: .15rem solid white; */
  letter-spacing: .2rem;
}
#animation .run-text.fileupload {
  animation: typing-fileupload 2s steps(20, end),
    blink-caret .75s step-end infinite;
}
#animation .delay-appear {
  opacity: 0;
  animation-name: opacityOn;
  animation-duration: 1500ms;
  animation-delay: 2s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}
/* Typing effect */
@keyframes typing-fileupload {
  from { width: 0 }
  to { width: 318px }
}
/* Fade-in */
@keyframes opacityOn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (min-width: 577px) {
  .modal-dialog.text {
      max-width: 800px;
  }
}
