:root {
    --bblue: #006DB6;
}

/** ------- HTML Tags ------- */

/** Override Bootstrap 5 link underline */
a {
    text-decoration: none;
}
a:hover, .link-primary:hover {
    text-decoration: underline;
    cursor: pointer;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

select {
    text-overflow: ellipsis;
}

/* ------- Bootstrap Icons ------- */
.bi {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    fill: currentColor;
    line-height: 1;
    vertical-align: -.125em;
}

/* ------- Header (in the style of Fragmid) ------- */

#site-banner {
    background: var(--bblue);
}

#header-title {
    margin: 0;
    color: white;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
}

#tool-summary {
    font-size: 0.8rem;
    line-height: 1.1;
    font-family: 'Lato', sans-serif;
}

.header-external {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background-color: #edf4f8;
    justify-content: space-between;
    margin: 0;
    padding: 2ex;
    border-bottom: 1px solid #88aacc;
}

.header-external-logo {
    height: 2em;
}

.header-external-title {
    font-size: 2rem;
    color: var(--black-text);
    font-weight: 400;
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Droid Sans,Helvetica Neue,sans-serif;
}

#tool-info {
    background-color: lightgray;
    min-height: 1rem;
}

#footer {
    background-color: #D3D3D3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2ex;
    margin: 0;
}

/* ------- Modal ------- */
.gpp-modal {
    display: block; /* Stay in place */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.gpp-modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 1rem;
    border: 1px solid #888;
    border-radius: 5px;
    width: 70%; /* Could be more or less, depending on screen size */
}

.text-small {
    font-size: 80%;
}

.required:after {
    content:" *";
    color: red;
}

/* ------- File upload drop area ------- */

.file-drop-area.highlight {
    border-radius: 5px;
    background-color: #F3F3F3;
}

.file-drop-area.is-invalid {
    border: 2px solid #dc3545;
}

.inner-file-drop-area {
    border: 2px dashed #D3D3D3;
    height: 15rem;
    font-family: sans-serif;
}

/* ------- Scope Icons ------- */
.scope {
    display: inline;
    padding: .4em;
    font-size: 85%;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
}

.scope-grey {
    background-color: #ccc;
}

.scope-blue {
    background-color: #428bca;
}

.scope-green {
    background-color: #50b850;
}

.scope-red {
    background-color: #d9534f;
}

/* ------- CRISPick-style side links ------- */
.gpp-info-btn {
    font-size: .9rem;
    text-align: left;
    border-radius: 0;
    background-color: #D0E6F4;
    border: 0;
    padding: 0;
    width: 100%;
}

.gpp-info-btn > a {
    color: inherit;
}

.gpp-info-btn-inner {
    width: 100%;
    padding: .375rem .75rem;
}

.gpp-info-full-downloads {
    background-color: #96D6FF !important;
    white-space: nowrap;
}

/* ------- Misc Classes ------- */
.fixed-monospace-font {
    font-family: Fixed, monospace;
}

.table-auto-width {
    width: auto;
    table-layout: auto;
}

.table-condensed > tbody > tr > td, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > td, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > thead > tr > th {
    padding-top: 3px;
    padding-bottom:3px;
}


/* ------- AsyncTypeahead ------- */
/** Remove padding from highlights */
mark.rbt-highlight-text {
    padding:0;
}