:root {
    --light-blue: #4776BF;
    --dark-blue: #004A8C;
    --red: #871517DB;
    --copper: #7E6B59;
}
.ao-red {
    background: var(--red);
    border: 0;
    color: #FFFFFF;
}
.ao-red:hover,
.ao-copper:hover {
    background: var(--light-blue);
}
.ao-red:active,
.ao-copper:active {
    background: var(--dark-blue);
}
.ao-blue {
    background: var(--light-blue);
    border: 0;
    color: #FFFFFF;
    background-color: #004A8C;
}
.ao-blue:hover {
    background: var(--light-blue);
}
.ao-blue:focus, .js-dialog-close:focus {
    outline: 2px solid #000;
}
.ao-copper {
    background: var(--copper);
    border: 0;
    color: #FFFFFF;
}
.js-dialog-close {
    background-color: var(--red);
    color: #FFF;
}
.js-dialog-close:hover {
    background-color: var(--red);
    opacity: 0.7;
}
.copper-border {
    border: 1px solid var(--copper);
}
body {
    width: calc(100vw - 1px);
    height: 100%;
    box-sizing: border-box;
    font-size: 16px;
    overflow-x: hidden;
}
header, main, footer {
    position: relative;
    zoom: 1;
}
main {
    padding-top: 30px;
    padding-bottom: 40px;
    background: #fefbf8 url(/static/images/bg_paper_pattern.png) repeat;
    min-height: calc(100vh - 140px);
}
footer {
    padding: 1.25em 15px;
    overflow: auto;
    border-top: 1px solid #871517;
    background-color: #F9F9F9;
}
.footer-seal {
    width: 100%;
    max-width: calc(80px + 20rem);
    margin-top:0.25rem;
}
.footer-seal td {
    padding: 0 0.4rem;
    vertical-align: top;
    font-size: 0.75rem;
}
.footer-seal td:first-child {
    width: calc(84px + 0.8rem);
    visibility: hidden;
}
.footer-seal img {
    width: 100%;
    max-width: 84px;
    margin-top: -.25rem;
    height: auto;
    visibility: visible;
}
header {
    background: #c9cecd url(/static/images/flatmosphere-no-star.jpg) left top no-repeat;
    border-bottom: 1px solid #C5AA63;
}

#intro_area_div {
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}
#intro_area_div h2 {
    font-size: 1.5rem;
    font-weight: 500;
}
@media (min-width: 1200px) {
    .header-wrapper, #main, #footer .block {
        width: 1170px;
        margin: 0 auto;
    }
    .search .input.input-large {
        width: calc(100% - 20px);
    }
}
.header-wrapper {
    padding: 0 15px 0.5em;
    display: flex;
}
a#logo {
    position: absolute;
    left: 0;
    background: url(/static/images/uscourts-logo.png) left -428px no-repeat;
    height: 75px;
    width: 155px;
    display: block;
    text-indent: -9999px;
    outline: none;
}
.req-legend {
    position: absolute;
    right: 24px;
    display:inline-block;
    font-size: 0.9em;
    width: auto;
    top: 0;
    font-style: italic;
}
.flag-req {
    color: #ce352c;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.25rem;
}
@media (min-width: 1058px) {
    #header-wrapper {
        position: relative;
    }
    a#logo {
        background: url(/static/images/uscourts-logo.png) left top no-repeat;
        height: 104px;
        width: 178px;
        top: 56px;
        transform: translateY(-50%);
    }
}
@media (min-width: 992px) and (max-width: 1199px){
    .header-h1 {
        font-size: 2em;
    }
}
@media only screen and (max-width: 991px) {
    a#logo {
        margin: 0 auto;
        position: relative;
    }
}
h1 {
    margin: 0;
    padding-top: 40px;
    flex-grow: 1;
    font-size: 2.5em;
    font-family: Ovo;
    font-weight: 400;
    font-style: normal;
}

#loading-icon {
    position: absolute;
    top: 50%;
    right: 40px;
    font-size: 1.25rem;
    transform: translateY(-50%);
    display: none;
}
#loading-icon.show {
    display: inline-block;
}
.new_filters_pane {
    display: flex;
    flex-wrap: wrap;
}
.newFacetGroup, .sort-wrapper {
    display: inline-block;
    min-width: 150px;
    max-width: 400px;
    padding-right: 1rem;
}
#no-results {
    padding: 30px 50px;
}
#sort-info-asc,#sort-info-desc {
    font-size: 0.9em;
    padding: 0.4rem 0.75rem;
    margin: 0 !important;
    cursor: pointer;
    display: none;
    transition: 0.15s color ease-in-out;
}
#sort-info-asc:hover,#sort-info-desc:hover {
    cursor: pointer;
    display: none;
    color: blue; 
}

summary {
    display: none;
}

section.registration {
    display: block;
}
section.registration h2 {
    color: #014B85;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}
section.registration.grid .card {
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin: 0;
}
section.registration.grid .card-header {
    position: relative;
    display: flex;
    color: #FFF;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background: #7e6b59;
    background-clip: border-box;
    /* background-color: #cadfea; */
}
section.registration.grid .card-body {
    position: relative;
    color: #212121;
    word-wrap: break-word;
    background: #F9F9F9 url(/static/images/deco_laurel.png) center bottom no-repeat;
    background-clip: border-box;
    /* background-color: #cadfea; */
}
#download-tip {
    display: none;
}
.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}
section.registration hr {
    height: 1px;
    background-color: black;
}
section.registration ul {
    list-style: none;
}
section.registration li {
    text-align: -webkit-match-parent;
}
footer .footer-contact {
    text-align: right;
    line-height: 1.35;
}

.registration_form .row {
    margin-bottom: 4px;
    margin-top: 3px;
}

.search {
    margin-bottom: 0.75rem;
}
.searchHelps {
    text-align: right;
    padding-right: 1rem;
}
.searchHelps a {
    display: inline-block;
}
.mif-expand-more,
.mif-expand-less {
    display: none;
}
.search .append {
    display: none;
}
.search .mif-search,
.search .mif-filter {
    font-size: 1.1em;
}
.mobile_dialog .dialog-title {
    display: none;
}
.facets_dialog_pane {
    margin: 4px;
    overflow-y: auto;
}
.facets .info-button,
.facets_dialog_pane .info-button {
    max-width: calc(100% -10px);
}
.facets .info-button .button,
.facets_dialog_pane .info-button .button {
    max-width: calc(100% - 45px);
}
.info-button .info {
    float: right;
}
.download_buttons {
    max-width: 225px;
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 99;
}
.download_buttons div {
    width: 100%;
    margin-top: 3px;
    display: flex;
}
.download_buttons div .button {
    flex-grow: 1;
}
.download_buttons a:focus, .load-more-btn:focus {
    background-color: var(--light-blue) !important;
}
.checkbox .disc-chkbox.focused, .checkbox .reg-chkbox.focused  {
    outline: 0.5px solid #123252 !important;
    border-color: #123252 !important;
    transition: 0.1s all ease-in-out;
}
#registration-form .invalid_feedback {
    position: absolute;
    font-weight: 500;
}
.result {
    width: 500px;
    width: auto;
    display: inline-block;
    display: block;
    border: 1px solid var(--copper);
}
.result.remark {
    font-size: 1rem;
}
.result .result-name {
    margin-right: 5px;
    display: inline-block;
}
.result .result-metadata {
    width: 200px;
    width: auto;
    margin-left: 50px;
    margin-left: 5px;
    margin-left: 0;
    display: inline;
    display: inline-block;
    display: block;
}
.result .result-filings {
    display: block;
}
.result .result-filing {
    margin-right: 15px;
}
.result .result-filing .checkbox .caption {
    margin: 0;
}
/* Research Request Dialog Box */
#request-content:focus, #dialog-search-tips:focus, #autologout-content{
    outline:none !important;
}
.research-request-dialog .dialog-content{
    overflow: auto;
}
#delivery-msg {
    font-style: italic;
}
/* filters */
.option-list .option:active, .option-list .option:focus, 
.option-list li:active, .option-list li:focus,
#request-content .option-list li:active, #request-content .option-list li:focus {
    background-color:rgba(29,29,29,.1);
}
.tag.short-tag:focus .remover {
    background-color: #871517;
    color: #FFF;
}
/* for sm and md sizes */
@media only screen and (max-width: 767px) {
    section.registration h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    section.registration h2 {
        font-size: 1.4rem;
        text-align: center;
        margin-top: 1rem;
    }
    section.registration h3 {
        font-size: 1.25rem;
    }
    .searchHelps {
        text-align: center;
        margin-right: 0;
        padding-right: 0;
        padding-left: 0;
    }
    .newFacetGroup {
        width: 100%;
        margin: 0;
        display: block;
    }
    
    .result {
        width: 100%;
        display: block;
    }
    
    .result .result-filing {
        display: block;
    }
    h1 {
        font-size: 2em;
    }

}
@media only screen and (max-width: 991px) {
    #no-results {
        padding: 30px 15px;
    }
    .mobile_dialog .dialog-title {
        display: initial;
    }
    header {
        display: block;
        margin-bottom: 0;
    }
    .header-wrapper {
        display: block;
    }
    .download_buttons {
        bottom: 5px;
        top: initial;
    }
    .info-button .button {
        max-width: 225px;
    }
    main {
        margin: 0;
        padding: 30px 10px 40px 10px;
    }
    main aside {
        display: none;
    }
    summary {
        display: initial;
        font-size: 1.5em;
    }
    summary::after {
        margin-left: 20px;
        content: '>';
    }
    details[open] summary::after {
        content: 'V';
    }
    
    .registration_form .row {
        margin-bottom: 0;
        margin-top: 0;
    }

    .mobile_sticky {
        padding-bottom: 5px;
        padding-top: 5px;
        top: 0;
        position: sticky;
        background-color: white;
        box-sizing: border-box;
        z-index: 99;
    }
    .search .append {
        display: inline-block;
    }
    .intro_area,
    .search {
        margin-bottom: 5px;
    }
    .search div {
        margin: 0 auto;
        text-align: center;
    }
        
    .lg-right-sm-center {
        text-align: center;
    }
    .mobileCentered {
        margin: 0 auto 0 auto;
        padding: 0 30px;
        text-align: center;
    }
    
    .facet_block .mif-expand-more {
        display: initial;
    }
    .facet_block.active-toggle .mif-expand-more {
        display: none;
    }
    .facet_block .mif-expand-less {
        display: none;
    }
    .facet_block.active-toggle .mif-expand-less {
        display: initial;
    }
    #intro_area_div {
        text-align:center;
        padding-bottom: 0.25rem;
    }
} /* media max 600px */
@media(max-width: 576px){
    #nf {
        text-align:center;
    }
    footer .footer-contact {
        text-align: center;
    }
}
@media(max-width: 480px){
    .hidden-sm {
        display: none;
    }
}

.dialog {
    width: 800px;
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
}
.lg-right-sm-center {
    text-align: right;
}

.select .option-list a {
    min-width: 300px;
    padding: 0 0.5rem 0 0.5rem;
}


