span.error {
    color: red;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.btn {
    border-radius: 0 !important;
}

a:focus { 
    outline: none; 
}

a.disabled {
  color: gray;
  pointer-events: none;
}

.smallcaps {
    font-variant: small-caps;
}

.pointer {
    cursor: pointer;
}

.footer a {
    color: #666666;
}

.footer a:hover span {
    text-decoration: underline;
}

.footer img {
    height: 3rem;
    width: auto;
}

.block-tabs {
    font-variant: small-caps;
}

.nav-link {
    border-color: #dcdcdc !important;
    border-bottom-color: transparent !important;
}

.nav-tabs {
    border-bottom-color: #dcdcdc !important;
}

.block-tabs .nav-link {
    border-radius: 0;
    padding: 0.3rem 1rem !important;
    transition: none;
    margin-top: 0;
}

.block-tabs .nav-link:not(.active) {
    background-color: white;
    border-bottom-color: #dcdcdc !important;
}

.block-tabs .floating-checkbox {
    position: absolute;
    right: 0.5rem;
    top: 0.3rem;
}

.floating-pager {
    position: relative;
    left: 0.5rem;
    top: 0.45rem;
}

.block-content {
    background-color: white;
    padding: 0.5rem;
    border-left: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
    border-bottom: 1px solid #dcdcdc;
}

.alignment-input, .raw-fasta-input {
    font-family: 'Inconsolata', monospace;
    padding: 0.0rem 0.3rem 0.1rem 0.3rem;
    font-size: 0.95rem;
    border-radius: 0;
}

.collapse-link {
    font-family: 'Source Sans Pro';
    margin-left: 0.2em;
    word-break: normal;
}

.alignment-input:focus, .raw-fasta-input:focus {
    box-shadow: none;
}

/* A monospace font for displaying amino acids. */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: local('Inconsolata Regular'), local('Inconsolata-Regular'),
       url('font/inconsolata-v16-latin-regular.woff2') format('woff2'),
       url('font/inconsolata-v16-latin-regular.woff') format('woff');
}

/* A monospace font for displaying amino acids, bold. */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 700;
  src: local('Inconsolata Bold'), local('Inconsolata-Bold'),
       url('font/inconsolata-v16-latin-700.woff2') format('woff2'),
       url('font/inconsolata-v16-latin-700.woff') format('woff');
}

/* Bootstrap theme's default font. */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'),
       url('font/source-sans-pro-v11-latin-regular.woff2') format('woff2'),
       url('font/source-sans-pro-v11-latin-regular.woff') format('woff');
}

/* Bootstrap theme's default font, bold. */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'),
       url('font/source-sans-pro-v11-latin-700.woff2') format('woff2'),
       url('font/source-sans-pro-v11-latin-700.woff') format('woff');
}

/* Polar green. */
.cG, .cS, .cT, .cY, .cC {
    color: #23a127;
}

/* Neutral purple. */
.cQ, .cN {
    color: purple;
}

/* Basic blue. */
.cH, .cK, .cR {
    color: #127ba3;
}

/* Acidic red. */
.cD, .cE {
    color: #ff291d;
}

/* Hydrophobic black. */
.cA, .cF, .cI, .cL, .cM, .cP, .cV, .cW {
    color: #242424;
}

.table-header-buttons {
    margin: 0.3em 0.4em 0.4em 0.4em;
}

.form-check-label {
    margin-top: 0.22rem !important;
}

.form-group {
    margin-bottom: 0;
}

.catalytics {
    margin-left: 0.35rem;
    margin-bottom: 0.2rem;
    /* font-size: 0.8rem; */
}

.bold-label {
    color: #242424;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.catalytics .acids {
    font-family: 'Inconsolata', monospace;
    font-size: 0.95rem;
}

.catalytics .acids > span {
    cursor: pointer;
}

.catalytics .acids > span.locked {
    font-weight: bold;
    color: red;
    /* text-decoration: underline; */
}

table.results {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
}

table.results thead td {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

table.results thead td:nth-child(4) {
    text-align: center;
}

table.results td:nth-child(1) {
    text-align: right;
}

/* table.results:not(.advanced) td:nth-child(1) { */
/*     display: none; */
/* } */

table.results td:nth-child(2) {
    text-align: right;
}

table.results:not(.advanced) td:nth-child(2) {
    display: none;
}

table.results tbody td:nth-child(3) {
    padding-left: 0.5rem;
}

table.results tbody td:nth-child(4) {
    font-family: 'Inconsolata', monospace;
    /* font-size: 0.9rem; */
}

table.results tr.expanded td {
    word-break: break-all;
    white-space: normal;
    overflow: visible;
}

.invisible {
    visibility: none;
}

table.results tr:not(.expanded) td {
    cursor: pointer;
}

table.results:not(.advanced) span.advanced {
    width: 1.3em;
}

table.results:not(.advanced) .advanced:nth-child(1) {
    display: none;
}

td span.i {
    width: 6em;
    display: inline-block;
    text-align: center;
    /* font-family: sans-serif; */
    /* font-size: 0.8em; */
}

/* table.results:not(.advanced) td span.i { */
/*     width: 1.3em; */
/* } */

/* table.results:not(.advanced) td span.i:nth-child(1) { */
/*     display: none; */
/* } */

tr.expanded td span.i, tr.expanded td span.im {
    width: auto;
    display: inline;
    font-family: 'Inconsolata', monospace;
    /* text-transform: lowercase; */
    /* font-size: 1em; */
}

td span.im {
    background-color: #ffaaaa;
}

td span.d {
    background-color: #ffaaaa;
}

td span.D {
    display: none;
}

tr td span.m {
    font-weight: bold;
}

tr.expanded td span.m {
    background-color: #c8fec8;
}

table.results td {
    text-align: left;
    hyphens: initial;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.help {
    cursor: help;
}

body {
    background-image: url('img/background.jpg');
    background-size: cover;
    line-height: 1.1;
}

.navbar-brand img {
    height: 1.2em;
    width: auto;
}

.title-links a {
    font-size: 1.06em;
    color: white !important;
    padding-bottom: 2px;
    text-shadow: 1px 2px 1px #555;
}

.collapsed {
    display: none;
}

.expand {
    cursor: pointer;
}

.title-links a:hover {
    text-shadow: 1px 2px 2px #999;
}

.logo-title {
    font-family: 'Inconsolata';
    font-size: 1.4em;
    font-weight: bold;
    color: white;
    text-shadow: 1px 2px 2px #555;
}

.navbar-text.logo-subtitle {
    font-size: 1.06em;
    color: white;
    padding-bottom: 2px;
    text-shadow: 1px 2px 1px #555;
}

.title-links a:hover {
    color: #ffffff !important;
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.spin {
  -webkit-animation-name: spin;
  -webkit-animation-duration: 2000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 2000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 2000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  -o-transition: rotate(360deg);
}

@media (min-width: 768px) {
    .container {
        width: 670px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 670px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 670px;
    }
}

.help-text p, .about-text p {
    line-height: 130%;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -o-hyphens: auto;
    word-break: break-word;
    hyphens: auto;
    text-align: justify;
}

.help-text > p:not(:first-child) {
    margin-bottom: 0 !important;
    margin-top: 1.25em;
}
