/* ~~~~~~~~~~~~~~~~~~~~~~~~~~FONTS~~~~~~~~~~~~~~~~~~~~~ */

/* font-family: 'Source Sans Pro', sans-serif; */

/* font-family: 'Raleway', sans-serif; */

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~COLORS~~~~~~~~~~~~~~~~~~~~~ */

/* 
--- Accent Colors ---
#20558a - medium blue (uses: site background, .card-title, mobile glossary btn bg)
#0d4379 - dark blue (uses: news cards titles and border, mobile glossary hover)
#f8d7da - light magenta (uses: attachment input bg)
#f8d7da66 - opaque light magenta (uses: red button focus)
#910d3f - magenta (uses: red button, headings, ribbon, footer bg)
#710a31 - dark magenta (uses: red button hover, attachment input)
#f95029 - orange (uses: menu hover accent, .placeholder)

--- Neutral Colors ---
#ffffff - white
#f7f7f7 - white gray (uses: callout box bg, menu bg)
#ececec - light gray (uses: table hover, menu hover, accordion hover)
#d2d2d2 - med/lgt gray (uses: borders)
#5f5f5f - medium gray (uses: about acknowledgement text color, breadcrumb current page)
#212529 - dark gray (uses: p tags, body text, accordion header)

--- OPACITY ---
rgba(255, 255, 255, 0.55) - opaque white
rgba(0, 0, 0, 0.75) - opaque black (uses: hp searchbox)
rgba(0, 0, 0, 0.5) - opaque dark gray (uses: shadow)
rgba(0, 0, 0, 0.15) - opaque light gray (uses: card shadow)
rgba(0, 0, 0, 0.1) - opaque lighter gray (uses: card focus/hover shadow)
*/

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ GENERAL ~~~~~~~~~~~~~~~~~~~~ */
html {
    scroll-behavior: smooth;
    font-size: 14px !important;
}
body,
.sm-clean a,
.sm-clean a:hover,
.sm-clean a:focus,
.sm-clean a:active {
    font-size: 18px;
    font-family: "Source Sans Pro", sans-serif;
    color: #212529;
    display: block;
}
header > div,
#main,
footer {
    border-left: 40px solid #20558a;
    border-right: 40px solid #20558a;
}
header #header,
#main {
    background-color: #ffffff;
}
body:not(.bioshare-home) #main {
    padding-bottom: 100px;
}
#header,
#main {
    padding: 0 40px;
}
@media (max-width: 768px) {
    a {
        word-break: break-all;
    }
}
@media (max-width: 500px) {
    header > div,
    #main,
    footer {
        border-left: 20px solid #20558a;
        border-right: 20px solid #20558a;
    }
}
legend {
    font-size: 18px;
}
.cursor-pointer {
    cursor: pointer;
}
a {
    color: #024ec0;
}

.youtube-iframe-container {
    position: relative;
    padding-top: 62.5%; /* 8:5 Aspect Ratio */
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.messages {
    margin-top: 0 !important;
}

.alert.message {
    margin-bottom: 0;
}

/* ~~~~~ FONTS ~~~~~ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Raleway, sans-serif;
    font-weight: bold;
    color: #910d3f;
    margin-top: 20px;
}
h1.req_header_h1 {
    color: #212529;
}
h2,
.h2 {
    font-size: 1.75rem;
}

small {
    color: #555555;
    line-height: 1;
    font-weight: normal;
}
.white {
    color: #ffffff;
}
hr.foot {
    display: none;
}
hr.foot:after {
    content: none;
}
.placeholder {
    color: #f95029;
    font-weight: bold;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUTTONS ~~~~~~~~~~~~~~~~~~~~ */

/* ~~~~~ PRIMARY BLUE BUTTON ~~~~~ */
.btn-primary {
    font-size: 1rem;
    background-color: #20558a;
    border-color: #20558a;
    color: #ffffff;
}
.btn-primary:hover,
.btn-primary:active {
    background-color: #0d4379 !important;
}

/* ~~~~~ SECONDARY RED BUTTON ~~~~~ */
.btn-secondary {
    background: #910d3f;
    border-color: #910d3f;
    color: #ffffff;
}
.btn-secondary:hover,
.btn-secondary:active {
    background: #710a31 !important;
}
.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem #f8d7da66;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ RIBBON ~~~~~~~~~~~~~~~~~~~~ */
#ribbon {
    background-color: #910d3f;
    color: #ffffff;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    padding: 10px 40px;
    line-height: 1.15em;
    text-align: center !important;
    clear: both;
}
body:not(.bioshare-home) #main #ribbon {
    margin: 0 -40px;
}
#ribbon p {
    margin: 0px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ HEADER/NAV/BREADCRUMB/RIBBON ~~~~~~~~~~~~~~~~~~~~ */
header {
    clear: both;
}
#header {
    display: flex;
    flex-wrap: wrap;
}

/* ~~~~~ USA BANNER ~~~~~ */
header .usa-banner {
    border: none;
}
.usa-banner__text {
    max-width: unset;
}

/* ~~~~~ NIH BANNER ~~~~~ */
.page-top-banner {
    background-color: #20558a;
    padding: 15px 40px;
    float: left;
    width: 100%;
}
.page-top-banner .nih_banner {
    height: 20px;
    margin: 6px 0;
}
.page-top-banner .nih_banner img {
    display: block;
    height: 100%;
    width: auto;
}

/* ~~~~~ LOGIN LINKS ~~~~~ */
.login-links {
    color: #ffffff;
    float: right !important;
    transition: 0.5s ease all;
}
.login-links a {
    color: #ffffff;
    transition: 0.5s ease all;
    padding: 6px 12px;
}
.login-links .caret {
    border-top-color: #ffffff;
}
.login-links a:hover,
.login-links a:focus {
    color: #20558a;
    background-color: #ffffff;
    text-decoration: none;
}
.login-links a:hover .caret,
.login-links a:focus .caret {
    border-top-color: #20558a;
}
.login-links #user-menu a {
    width: 100%;
}

/* ~~~~~ NIA LOGO ~~~~~ */
span.h1.logo-header {
    float: left;
}
#header .logo-header {
    flex: 2;
    max-width: 100%;
    margin-right: 3rem;
}
.logo-img {
    width: 410.0577px;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    span.h1.logo-header {
        float: none;
    }
}

/* ~~~~~ BREADCRUMBS ~~~~~ */
.breadcrumb {
    padding-top: 20px;
}
.breadcrumb i,
.breadcrumb span {
    color: #5f5f5f;
}

/* ~~~~~ SEARCH BOX ~~~~~ */
#header #search_and_login {
    flex: 1;
    min-width: 250px;
}

/* ~~~~~ MENU BUTTON ~~~~~ */
#menu-button {
    background: #20558a;
    color: #ffffff;
    font-size: 1em;
    letter-spacing: 0.05em;
    font-weight: bold;
    border: none;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
#menu-button:before {
    content: "\2261  ";
    font-weight: normal;
}

/* ~~~~~ MAIN NAV ~~~~~ */
@media (min-width: 48em) {
    .sm-clean {
        border-bottom: 1px solid #d2d2d2;
        display: flex !important;
        flex-wrap: wrap;
        background: #f7f7f7;
        border-radius: 0px;
    }
}
.sm-clean ul {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    margin-top: 0px !important;
    margin-left: 0px !important;
}
.sm-clean ul a:hover {
    background-color: #ececec !important;
}
.sm-clean > li {
    background-color: transparent;
    border-right: 1px solid #d2d2d2;
    flex: 1;
    min-width: 150px;
    border-top: 1px solid #d2d2d2 !important;
}
.sm-clean > li:last-child {
    border-right: none;
}
.sm-clean a {
    color: #212529;
    text-transform: uppercase;
    font-weight: bold;
    background: none !important;
    border-top: 10px solid transparent;
    padding: 10px 20px 20px;
    position: relative;
    display: block;
    white-space: normal;
}
.sm-clean a:hover,
body.bioshare-resources .nav-resources,
body.bioshare-studies .nav-studies,
body.bioshare-new-collection .nav-new-collection,
body.bioshare-requests .nav-requests {
    border-top-color: #f95029;
    display: block;
    padding: 10px 20px 20px;
}
.sm-clean a.has-submenu {
    padding: 10px 20px 20px;
}
.sm-clean span {
    border: none !important;
}
.sm-clean a:hover,
.sm-clean a:focus,
.sm-clean a:active,
.sm-clean a.highlighted {
    background: none;
    font-weight: bold;
    color: currentcolor;
}
.sm-clean .sm-nowrap > li > a,
.sm-clean .sm-nowrap > li > :not(ul) a {
    white-space: unset !important;
}
@media (max-width: 47.99em) {
    .navBar {
        padding: 0;
    }
    .sm-clean {
        display: block !important;
        text-align: left !important;
    }
    .sm-clean li {
        text-align: left !important;
    }
    .sm-clean a {
        border-top: 5px solid transparent;
    }
    .sm-clean a,
    .sm-clean a:hover,
    .sm-clean a.has-submenu {
        padding: 5px 10px 10px;
    }
    .sm-clean a:hover,
    body.bioshare-resources .nav-resources,
    body.bioshare-studies .nav-studies,
    body.submit .nav-new-collection,
    body.bioshare-requests .nav-requests {
        border-top: none;
        padding-top: 10px;
        border-left: 8px solid #f95029;
        border-radius: 0px !important;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ HP HERO ~~~~~~~~~~~~~~~~~~~~ */
.hp-hero {
    background-image: url("../../static/img/about-section-bg-photo.9bf3bc504277.jpg");
    height: 600px;
    background-position-y: -180px;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.hp-hero .content {
    background-color: rgba(0, 0, 0, 0.75);
    width: 60%;
    margin: 0 auto;
    top: 15%;
    position: relative;
    text-align: center;
    padding: 2.5%;
}
.hp-hero .content h2 {
    font-size: 2.1em;
    margin-bottom: 0.8em;
    line-height: 0.9em;
}
span.hp-hero-keyword .searchbox {
    width: 100%;
    display: flex;
}
span.hp-hero-keyword .searchbox input {
    background: none;
    flex: 9;
    padding: 10px 15px;
    border: 2px solid #ffffff;
    border-right: none;
    -webkit-border-radius: 13px 0 0 13px;
    -moz-border-radius: 13px 0 0 13px;
    border-radius: 13px 0 0 13px;
    background-color: rgba(255, 255, 255, 0.55);
}
span.hp-hero-keyword .searchbox button {
    border: none;
    -webkit-border-radius: 0 13px 13px 0;
    -moz-border-radius: 0 13px 13px 0;
    border-radius: 0 13px 13px 0;
    flex: 1;
    padding: 10px 15px;
    min-width: 120px;
}
/* stylelint-disable selector-no-vendor-prefix */
span.hp-hero-keyword .searchbox input::-webkit-input-placeholder,
span.hp-hero-keyword .searchbox input::-moz-placeholder,
/* stylelint-enable selector-no-vendor-prefix */
span.hp-hero-keyword .searchbox input::-ms-placeholder,
span.hp-hero-keyword .searchbox input::placeholder {
    color: #212529;
}
span.hp-hero-keyword .search-site-search input {
    border: 2px solid black;
    border-right: none;
}
@media (max-width: 768px) {
    .hp-hero .content {
        width: 96%;
    }
    .hp-hero {
        height: auto;
        padding: 50px 0;
        background-position-y: 0;
    }
}
@media (max-width: 500px) {
    .hp-hero .content h2 {
        font-size: 1.5em;
    }
    span.hp-hero-keyword .searchbox {
        display: block;
    }
    span.hp-hero-keyword .searchbox input {
        border-right: 2px solid #ffffff;
        width: 100%;
        -webkit-border-radius: 13px 13px 0 0;
        -moz-border-radius: 13px 13px 0 0;
        border-radius: 13px 13px 0 0;
    }
    span.hp-hero-keyword .searchbox button {
        width: 100%;
        -webkit-border-radius: 0 0 13px 13px;
        -moz-border-radius: 0 0 13px 13px;
        border-radius: 0 0 13px 13px;
    }
    span.hp-hero-keyword .search-site-search input {
        border-right: 2px solid black;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ HIGHLIGHTS ~~~~~~~~~~~~~~~~~~~~ */
.highlights {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 75%;
    margin: 0 auto;
    float: none;
    margin-top: -80px;
    padding-left: 15px;
    padding-right: 15px;
}
.highlights div[class*="highlight-"] {
    padding: 20px;
    flex: 1;
    min-width: 300px;
}
.highlights div[class*="highlight-"] .content {
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    background-color: #ffffff;
    position: relative;
    height: 100%;
}
.highlights div[class*="highlight-"] .content .subtitle {
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    margin: 0;
}
.highlights div[class*="highlight-"] .content h2 {
    margin-top: 10px;
    margin-bottom: -2px;
}

.highlights div[class*="highlight-"] .content .HL-header {
    margin-bottom: 10px;
}
.highlights div[class*="highlight-"] .content p {
    line-height: 1.2em;
}
@media (max-width: 768px) {
    .highlights {
        margin: 0;
        width: 100%;
    }
}
@media (max-width: 580px) {
    .highlights div[class*="highlight-"] {
        padding: 10px 0;
        min-width: 0px;
        flex-basis: 100%;
    }
}
@media (max-width: 500px) {
    .highlights div[class*="highlight-"] {
        padding: 20px 0 0;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ TEXTAREA ~~~~~~~~~~~~~~~~~~~~ */
.textarea-vertical-resize textarea {
    resize: vertical;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ BOLD LABEL ~~~~~~~~~~~~~~~~~~~~ */
.font-weight-bold-label .checkbox-inline {
    font-weight: bold !important;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~ PUBLICATION DETAILS ~~~~~~~~~~~~~~~~~ */
.publication_group_block {
    border: 1px solid d2d2d2;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #f7f7f7;
    padding: 10px;
    margin: 0;
}
.publication-info-heading {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 20px;
}
#publication_main_content {
    padding: 10px 0;
    margin-bottom: 15px;
}
@media only screen and (max-width: 991px) {
    #publication_header {
        padding-left: 0;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ STUDY DETAILS ~~~~~~~~~~~~~~~~~~~~ */
.shaded-box,
.study_group_block {
    border: 1px solid #d2d2d2;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    border-radius: 1em;
    padding: 1em;
    background-color: #f7f7f7;
    margin: 0;
}
span.highlight {
    background-color: yellow;
}
.study-header-button-container {
    text-align: right;
}
.study-header-button-container > * {
    margin-bottom: 5px;
}
.study-info-heading {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 20px;
}
#study_main_content {
    padding: 10px 0;
    margin-bottom: 15px;
}
.informed-consent-container {
    margin: 10px 0;
}
.informed-consent-attachments {
    padding-top: 15px;
}
#publications {
    font-size: 18px;
    margin-bottom: initial;
}

@media only screen and (max-width: 991px) {
    #study_header {
        padding-left: 0;
    }
    .study_header_item:not(:first-child) {
        padding-top: 5px;
    }
    .study-header-button-container {
        text-align: left;
    }
}
@media only screen and (min-width: 992px) {
    .non_first_row {
        padding-top: 10px;
    }
    .study-header-button-container .dropdown-menu {
        right: 0;
        left: auto;
        float: none !important;
    }
}

.study_header_item a {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ GLOSSARY ~~~~~~~~~~~~~~~~~~~~ */
.glossary-section,
#glossary-anchors,
#glossary-intro {
    margin-bottom: 20px;
}
.glossary-section-letter {
    text-decoration: underline;
}
@media (min-width: 769px) {
    #glossary-anchors a.btn-primary {
        background: none !important;
        color: #024ec0 !important;
        border: none !important;
        padding: 0px !important;
    }
    #glossary-anchors a.btn-primary:hover,
    #glossary-anchors a.btn-primary:active {
        text-decoration: underline !important;
    }
}
@media (max-width: 768px) {
    #glossary-anchors * {
        min-width: 30px;
        margin-bottom: 10px;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ REQUEST HEADER ~~~~~~~~~~~~~~~~~~~~ */
@media only screen and (min-width: 768px) {
    .request-header.affix {
        width: 100%;
        left: 0;
        right: 0;
        padding: 0 2% 1em;
        box-shadow: 0px 10px 20px #d2d2d2;
    }
}
.nav-link {
    color: #024ec0;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ AUTHORIZED USER FORMSET ~~~~~~~~~~~~~~~~~~~~ */
.formset-form {
    border: none;
    background-color: #f7f7f7;
    margin-bottom: 20px;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ SPECIMEN COSTS ~~~~~~~~~~~~~~~~~~~~ */
.specimen-cost-tables {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.specimen-cost-tables .description {
    font-size: 0.75em;
    line-height: 1.2em;
    margin: 0.25em 0 0.5em;
    padding-top: 0.25em;
}
.specimen-cost-tables table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}
.specimen-cost-tables table td,
.specimen-cost-tables table th {
    border: 1px solid #d2d2d2;
    line-height: 1.2em;
    vertical-align: middle;
}
.specimen-cost-tables table tr:hover {
    background-color: #ececec;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ PROGRESS ~~~~~~~~~~~~~~~~~~~~ */
.progress-attachments {
    background: #910d3f;
    color: white;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ ABOUT ~~~~~~~~~~~~~~~~~~~~ */
.about-acknowledgment {
    background-color: #f7f7f7;
    border: 1px solid #d2d2d2;
    padding: 1em 1em 0.5em;
    border-radius: 5px;
    margin-top: 2em;
    color: #5f5f5f;
    font-size: 0.9em;
}

/* ~~~~~~~~~~~~~~~~~~~~ CONTACT ~~~~~~~~~~~~~~~~~~~~ */
.contact-instructions {
    margin-bottom: 2em;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ TOGGLE ACCORDION ~~~~~~~~~~~~~~~~~~~~ */
a.accordions {
    display: block;
    border-radius: 5px;
    padding: 5px;
}
.accordion-content {
    padding: 5px 20px 20px;
    height: auto !important;
}
a.accordions h3 {
    color: #212529;
    font-weight: normal;
    font-size: 18px;
    margin: 0;
    display: inline-block;
}
a.accordions:link {
    text-decoration: none;
}
a.accordions:hover {
    background-color: #ececec;
    text-decoration: none;
}
a.accordions:after {
    font-family: FontAwesome, sans-serif;
    content: "\f0d7";
    color: #212529;
    font-size: 0.9em;
    display: inline-block;
    border-width: 5.5px;
}
a.accordions.collapsed:after {
    content: "\f0da";
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~FOOTER~~~~~~~~~~~~~~~~~~~~~ */
footer {
    z-index: 1;
    position: relative;
    background-color: #910d3f;
    text-align: left !important;
    margin-top: 0;
}
#footer ul {
    margin: 0;
    text-align: left !important;
    list-style-type: none;
    columns: 261px 2;
    display: inline-block !important;
}
#footer ul li {
    padding: 0;
    display: block !important;
}
footer .affiliated_sites {
    display: flex;
    width: 100%;
    max-width: 300px;
    align-items: center;
    float: right;
}
footer .affiliated_sites .logo.logo_dhhhs {
    flex: 1;
    flex-basis: 33%;
}
footer .affiliated_sites .logo.logo_nia {
    flex: 1;
    flex-basis: 66%;
    margin-left: 5%;
}
footer .affiliated_sites .logo a {
    display: block;
}

footer .container-fluid a {
    color: #ffffff;
}

#footer.container-fluid {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-top: 15px;
    padding-bottom: 15px;
}

@media (max-width: 992px) {
    #footer ul {
        margin-left: 0px;
    }
}
@media (max-width: 768px) {
    footer .affiliated_sites {
        text-align: center;
        margin: 30px 0 0;
    }
    #footer ul {
        margin-left: 0px;
        text-align: center;
    }
}
@media (max-width: 550px) {
    #footer ul {
        column-count: 1;
    }
}
@media (max-width: 300px) {
    #footer ul {
        columns: auto 1;
        display: block;
    }
}
div#footer ul li::after {
    content: none !important;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~BACK TO TOP~~~~~~~~~~~~~~~~~~~~~ */
p.totop {
    z-index: 500;
    position: fixed;
    bottom: 10px;
    right: 10px;
    text-align: center;
    padding: 0;
    margin: 0;
}
p.totop a {
    color: #212529 !important;
    background-color: #ffffff;
    padding: 8px;
    line-height: 1em;
    font-size: 0.75em;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    overflow: hidden;
}
p.totop a:hover {
    -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
p.totop a[style*="inline"] {
    display: block !important;
}
p.totop i {
    font-size: 2em;
    -webkit-text-stroke: 6px #20558a;
    line-height: 0.5em;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~REMOVE BIOSHARE CSS~~~~~~~~~~~~~~~~~~~~~ */
.container-fluid {
    padding-left: 0%;
    padding-right: 0%;
    position: relative;
    max-width: initial;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~BOOTSTRAP OVERRIDE~~~~~~~~~~~~~~~~~~~~~ */
.btn {
    font-size: inherit;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~Review Tab~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.review-instruction-documents {
    padding-top: 3px;
}

/** Links in dropdowns. Pulled from BS3 styles */
.dropdown-menu > li > a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: normal;
    line-height: 1.4286;
    color: #212529;
    white-space: nowrap;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #212529;
    background-color: #f7f7f7;
}

a.no-underline:hover {
    text-decoration: none;
}

.tab-content.style-tab-view label,
.tab-content.style-tab-edit label,
.tab-content.style-tab-review label,
.tab-content.style-tab-incoming-collection label {
    font-weight: unset;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ HOMEPAGE NEWS ~~~~~~~~~~~~~~~~~~~~ */
.bioshare-home .page-key {
    display: block;
}
.bioshare-home #main {
    padding: 0;
}
.bioshare-home .breadcrumb {
    display: none;
}

/* ~~~~~ BLUE SECTION ~~~~~ */
.blue-section {
    background-color: #20558a;
    color: #ffffff;
    padding: 40px;
    z-index: 2;
    text-align: center;
}
.blue-section h2,
.blue-section a {
    color: #ffffff;
}
.blue-section a {
    text-decoration: underline;
}
.blue-section .content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .blue-section {
        text-align: left;
        margin-top: 10px;
        padding: 20px;
    }
}

/* ~~~~~ BLOG SECTION ~~~~~ */
.blog-section {
    background-color: #f7f7f7;
    padding: 40px;
    z-index: 2;
    margin-top: 160px;
}
.blog-section .circle-img {
    border-radius: 500px;
}
.blog-section .content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .blog-section {
        margin-top: 10px;
        padding: 20px;
    }
}
.blog-btn {
    margin-top: 1.75em;
    transition: 0.5s ease all;
}
.blog-btn a {
    display: flex;
    word-break: break-word;
}
.blog-btn a .blog-btn-text,
.blog-btn a .blog-btn-link {
    transition: 0.5s ease all;
}
.blog-btn .blog-btn-text {
    font-weight: bold;
    background: #ffffff;
    color: #910d3f;
    border: 1px solid #910d3f;
    -webkit-border-radius: 13px 0 0 13px;
    -moz-border-radius: 13px 0 0 13px;
    border-radius: 13px 0 0 13px;
    flex: 1;
    padding: 10px 10px 10px 15px;
}
.blog-btn .blog-btn-link {
    font-weight: bold;
    background: #910d3f;
    color: #ffffff;
    border: 1px solid #910d3f;
    -webkit-border-radius: 0 13px 13px 0;
    -moz-border-radius: 0 13px 13px 0;
    border-radius: 0 13px 13px 0;
    flex: 3;
    padding: 10px 15px;
}
.blog-btn a:hover {
    text-decoration: none;
    background: #710a31;
}
.blog-btn a:hover .blog-btn-link {
    background: #710a31;
}
.blog-btn:hover {
    transform: translate(0, -3px);
}
.blog-btn a:hover .blog-btn-text,
.blog-btn a:hover .blog-btn-link {
    box-shadow: 0 0 0 0.2rem #f8d7da;
    border: 1px solid #710a31;
}

/* ~~~~~ NEWS SECTION ~~~~~ */
.news-section {
    background: #f7f7f7;
}
.bioshare-news {
    word-break: break-word;
}

/* News Slider */
.news-carousel.flickity-enabled {
    padding: 0 4rem;
}
.news-carousel .flickity-prev-next-button {
    height: calc(100% - 2rem);
    border-radius: 0;
}
.news-carousel .flickity-prev-next-button.previous {
    left: 0;
    border-radius: 0 4px 4px 0;
}
.news-carousel .flickity-prev-next-button.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}
.news-carousel .carousel-cell {
    width: 33.3333%;
    display: none;
    padding: 0 1rem;
    line-height: 1.2;
    margin: 1rem 1px;
} /* hide all cells on page load */
.news-carousel .carousel-cell:first-child {
    display: block;
} /* unhide first cell on page load */
.news-carousel.flickity-enabled .carousel-cell {
    display: block;
} /* show all cells when plugin is loaded */
.news-carousel .flickity-page-dots {
    width: calc(100% - 8rem);
}

/* change cell widths down to mobile to show less cards in slider */
@media (max-width: 1199px) {
    .news-carousel .carousel-cell {
        width: 50%;
    }
}
@media (max-width: 899px) {
    .news-carousel .carousel-cell {
        width: 100%;
    }
}
@media (max-width: 575px) {
    /* reduce button size, expand single card */
    .news-carousel.flickity-enabled {
        padding: 0 1rem;
    }
    .news-carousel .flickity-prev-next-button {
        width: 24px;
    }

    /* remove accent and icon to maximize space for content on mobile */
    .news-carousel.flickity-enabled .card-accent {
        border-left: none;
    }
    .news-carousel.flickity-enabled .card-accent:before {
        display: none;
    }
    .news-carousel .flickity-page-dots {
        width: calc(100% - 2rem);
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ CARDS ~~~~~~~~~~~~~~~~~~~~ */
.card-accent {
    display: block;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    border-left: 50px solid #20558a;
    text-decoration: none;
    position: relative;
    top: 0;
    transition: all 0.3s ease-in-out;
    word-break: break-word;
}
.card-accent:before {
    display: block;
    width: 30px;
    height: 32px;
    position: absolute;
    top: 1.1rem;
    left: -40px;
    content: "";
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* the SVG icon below is encoded so background image with an SVG works in IE 11 */

/* fill%3D%22%23fff is the string to change the color hex code, fff at the end is white, edit that for new color */

/* future encoding: http://pressbin.com/tools/urlencode_urldecode/, encodeURIComponent() */
.card-news:before {
    background-image: url("data:image/svg+xml,%3Csvg%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%23fff%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M0%202A1.5%201.5%200%200%201%201.5.5h11A1.5%201.5%200%200%201%2014%202v12a1.5%201.5%200%200%201-1.5%201.5h-11A1.5%201.5%200%200%201%200%2014V2zm1.5-.5A.5.5%200%200%200%201%202v12a.5.5%200%200%200%20.5.5h11a.5.5%200%200%200%20.5-.5V2a.5.5%200%200%200-.5-.5h-11z%22%2F%3E%0A%20%20%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M15.5%203a.5.5%200%200%201%20.5.5V14a1.5%201.5%200%200%201-1.5%201.5h-3v-1h3a.5.5%200%200%200%20.5-.5V3.5a.5.5%200%200%201%20.5-.5z%22%2F%3E%0A%20%20%3Cpath%20d%3D%22M2%203h10v2H2V3zm0%203h4v3H2V6zm0%204h4v1H2v-1zm0%202h4v1H2v-1zm5-6h2v1H7V6zm3%200h2v1h-2V6zM7%208h2v1H7V8zm3%200h2v1h-2V8zm-3%202h2v1H7v-1zm3%200h2v1h-2v-1zm-3%202h2v1H7v-1zm3%200h2v1h-2v-1z%22%2F%3E%0A%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: 2rem 2rem;
}

.card-accent .card-title {
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
    color: #20558a;
}
.card-accent .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-accent .card-content p {
    color: #212529;
}
.card-accent .card-content p:last-of-type {
    margin-bottom: 2rem;
}
.card-accent .card-date {
    margin-top: auto;
    color: #212529;
}
.card-accent .card-date strong {
    font-variant: all-small-caps;
}

/* hover/focus states */
.card-accent:hover,
.card-accent:focus {
    border-left-color: #0d4379;
    top: -0.25rem;
    box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}
.card-accent:hover .card-title,
.card-accent:focus .card-title {
    color: #0d4379;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~ UNORGANIZED ~~~~~~~~~~~~~~~~~~~~~ */
.manual-required:after {
    content: " *";
    color: #999999;
}

.nia-card .card-header {
    background: #910d3f;
    color: white;
}

.other-resources-plans ul {
    list-style-type: none;
}

.other-resources-plans h1 {
    font-size: 2.2rem;
}

.other-resources-plans h2 {
    font-size: 1.5rem;
}

.other-resources-plans h3 {
    font-size: 1.3rem;
    color: black;
    text-decoration: underline;
}

/* Incoming_collection */
div.radio-questions fieldset.form-check {
    display: inline;
}
div.radio-questions label {
    font-weight: normal;
}
.radio-questions {
    margin-left: 1em;
}

.subquestions,
.attachments-container,
.previous-attachments {
    margin-left: 1em;
}
.subquestions label,
.attachments-container label,
.previous-attachments label,
.attachments-container th,
.previous-attachments th {
    font-weight: normal;
}

.attachments-container,
.previous-attachments {
    margin-left: 1em;
}
.attachment-block.attachment-error .attachment-input {
    background-color: #f8d7da;
    color: #710a31;
}
.attach-files-header::after,
#id_collection_schema-label::after {
    content: " *";
    color: #999999;
}

textarea.form-control {
    min-height: 0;
    height: min-content;
    resize: vertical;
}

/* datapackages */
.package-form-body label {
    font-weight: normal;
}

.package-form-body .bioshare-form-group {
    margin-bottom: 0 !important;
}

.process-button {
    display: grid;
    grid-template-areas: "stack";

    .process-button-text {
        grid-area: stack;
        visibility: visible;
    }

    .process-button-indicator {
        grid-area: stack;
        visibility: hidden;
    }
}

.htmx-request .process-button {
    .process-button-text {
        visibility: hidden !important;
    }
    .process-button-indicator {
        visibility: visible !important;
    }
}
