/* --------------------------------------------------------------------------
Sets up all the overrides or additional CSS that the site uses.
---------------------------------------------------------------------------*/

.navbar-brand {
    padding: 16px 15px;
}

/* Some good stuff from h4pl.com */
::-moz-selection { background: #AE0B0B; color: #fff; text-shadow: none; }
::selection { background: #AE0B0B; color: #fff; text-shadow: none; }

.alt {
  color: #666;
  font-family: "Warnock Pro", "Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: normal;
}

.caps { /* not used by courtlistener code, is this used by data*/
  font-variant: small-caps;
  letter-spacing: 1px;
  text-transform: lowercase;
  font-size:1.2em;
  line-height:1%;
  font-weight:bold;
  padding:0 2px;
}

a.button:active{
  background-color:#6299c5;
/* border:1px solid #6299c5; */
  color:#fff;
}

#homepage #main-query-box {
    /* margin: 0 auto; */
    -webkit-transition : all 0.5 s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    margin-bottom: 2em;
    margin-top: 2em;
}


@media(max-width:767px){
    #homepage #main-query-box #id_q {
        width: 250px;
    }
    #homepage #main-query-box.wide #id_q {
        width: 250px;
    }
    #homepage #main-query-box .input-group {
        display: inline-table;
        vertical-align: middle;
    }
    #homepage #main-query-box .input-group-btn {
        width: auto;
    }
    #homepage #main-query-box .form-group {
        display: inline-block;
        margin-bottom: 0;
        vertical-align: middle;
    }
    .headshot { /* shrink photos on about page for phone size*/
        height: 135px;
        width: 135px;
    }
    #court-picker-tabs {
        padding-top: 15px;
    }
    #donate-image {
        text-align: start;
    }
}
@media(min-width:768px){
    #id_q {
        width: 638px;
    }
    #homepage #main-query-box #id_q {
        width: 400px;
    }
    #homepage #main-query-box.wide #id_q {
        width: 580px;
    }
    #homepage #above-main-query {
        margin-top: 6em;
    }
    #homepage #advanced-search-starter {
        margin-bottom: 6em;
    }
    #homepage #advanced-search-starter p:not(:first-child) {
        margin-top: 0.75em;
    }
    #court-picker-tabs {
        text-align: right;
    }

}
@media(min-width:992px){
    #id_q {
        width: 860px;
    }
    #homepage #main-query-box #id_q {
        width: 600px;
    }
    #homepage #main-query-box.wide #id_q {
        width: 800px;
    }
    .lg-v-offset-below-3 {
        padding-bottom: 40px;
    }
}
@media(min-width:1200px){
    #id_q {
        width: 345px;
    }
    #homepage #main-query-box #id_q {
        width: 800px;
    }
    #homepage #main-query-box.wide #id_q {
        width: 1000px;
    }
}

.bottom {
    margin-bottom:0;
    padding-bottom:0;
}

.top {
    margin-top:0;
    padding-top:0;
}

.x-large {
    font-size: 25px;
}
.large {
    font-size: 21px;
}

#homepage #jurisdiction-count {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#type-switcher h3 {
    margin-bottom: 2px;
}
#type-switcher label{
    font-weight: normal;
}
#type-switcher .selected {
    border-bottom: 3px solid #ae0b0b;
    color: #111;
}
#type-switcher label {
    color: gray;
    text-decoration: none;
    border-bottom: none;
}

.container > footer {
    padding-top: 2em;
    margin-top: 4em;
    border-top: 1px solid #dddddd;
}

.footer-item {
    margin-bottom: 0.4em;
    font-size: 110%;
    line-height: 1.2em;
}

#by-line {
    margin: 1em 0;
}

#by-line a {
    color: gray;
    text-decoration: underline;
}

#social-container {
    display: block;
    background: none;
    /*width: 200px; */
    margin: 2em auto;
}

#social-container a {
    margin-right: 0.75em;
}

#social-container .fa-lg:hover i.fa-circle{
    color: #6683b7;
}

div.hopscotch-bubble .hopscotch-bubble-content {
    margin: 0;
}

/*
div.hopscotch-bubble .hopscotch-bubble-close {
    background: none;
    text-indent: 0;
    top: -6px;
}
*/

.settings-nav-item a,
.settings-nav-item a:hover,
.settings-nav-item a:active,
.settings-nav-item a:focus {
    color: black;
}

.settings-nav-item {
    margin-right: 1em;
}

.settings-nav-item:last-child {
    margin-right: 0em;
}

.settings-nav-item.active {
    font-weight: bold;
}

/* General class shortcuts */
.inline {
    display: inline;
}

.bold {
    font-weight: bold;
}

.striken {
    text-decoration: line-through;
    color: gray;
}

.no-underline,
.no-underline:hover,
.no-underline:active,
.no-underline:focus {
    text-decoration: none;
}

.gray, .grey {
    color: gray;
}
.gold {
    color: gold;
}

.align-top {
    vertical-align: top;
}

.left {
    float: left;
}
.center {
    text-align: center;
}

.right {
    text-align: right;
}

.float-right { /* replace with text-right? */
    float: right;
}

.nowrap {
    white-space: nowrap;
}

.round-bottom {
    -webkit-border-bottom-right-radius: 6px;
    -webkit-border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
}

.pointer, .cursor {
    cursor: pointer;
    cursor: hand;
}

mark {
    /* Needs extra declarations for old browsers */
    background-color: #ffffbf;
}

.no-gutter {
    margin-left: -15px;
    margin-right: -15px;
}

/* For adding vertical whitespace */
.v-offset-above-1 { margin-top: 10px; }
.v-offset-above-2 { margin-top: 20px; }
.v-offset-above-3 { margin-top: 40px; }
.v-offset-above-4 { margin-top: 60px; }
.v-offset-above-5 { margin-top: 80px; }
.v-offset-above-6 { margin-top: 100px; }
.v-offset-above-7 { margin-top: 150px; }
.v-offset-below-1 { margin-bottom: 10px; }
.v-offset-below-2 { margin-bottom: 20px; }
.v-offset-below-3 { margin-bottom: 40px; }
.v-offset-below-4 { margin-bottom: 60px; }
.v-offset-below-5 { margin-bottom: 80px; }
.v-offset-below-6 { margin-bottom: 100px; }
.v-offset-below-7 { margin-bottom: 150px; }

.radio-list ul {
    /* Django creates radio items as a list, but they need to be wrapped in a
       div with class "radio-list" then this style will make them look normal */
    list-style-type: none;
    padding-left: 0;
}

.serif{ font-family: "Warnock Pro","Palatino","Book Antiqua",Georgia,serif; }
.meta-data-header{ font-weight: bold; }
.meta-data-value{ margin-right: 2em; }
.placeholder{ color: #aaa; }


/* layout */
body {
    background-color: #E9E8E8;
}

.container {
    background-color: white;
    border-left: 1px solid #c2c2c2;
    border-bottom: 1px solid #c2c2c2;
    border-right: 1px solid #c2c2c2;
}

#id_q {
    border-color: #a6a6a6 #a6a6a6 #a6a6a6 #a6a6a6;
    border-style: solid none solid solid;
    border-width: 1px 0px 1px 1px;
    margin: 0;
    font-size: 16px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
#searchform-navbar #search-container .input-group {
    padding: 14px 0 0 0;
}

#advanced {
    color: black;
}

#scrollable-jurisdictions {
    overflow-y: scroll;
    height: 500px;
}

/* New case view styling, including citations */
#default-text pre, .citation {
    background-color: transparent;
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: "andale mono","lucida console",monospace;
    vertical-align: baseline;
    white-space: pre;
}

/* cited by sidebar list styling */
div.shown {
    padding-top: 5px;
}

div.shown ul {
    margin: 0;
    padding: 0 0 0 17px;
}

/* cited by and authorities styling */
#cited-by-viewer hr,
#authorities hr,
#cited-by hr {
    margin-bottom: 2px;
}

#cited-by-viewer ul,
#authorities ul,
#cited-by ul {
    padding: 0;
    margin: 0 0 1.5em 0;
}

#cited-by-viewer ul li,
#authorities ul li,
#cited-by ul li {
    list-style-type: none;
    padding: 3px 0 2px 0;
    border-bottom: 1pt solid #DDD;
}

.citation-name {
    font-size: 1.2em;
}

input.bottom {
    margin-bottom: 0;
}

#sidebar {
    margin-top: 6px;
}

.sidebar-section {
    margin-bottom: 3em;
}

.sidebar-section h3 {
    margin-bottom: 0.6em;
}

.sidebar-section h3 > span {
    padding: 0.5em 0em 0.1em;
    border-bottom: 1px solid #ddd;
    line-height: 1.4em;
}

div.sidebar-checkbox {
    padding-top: 2px;
    padding-bottom: 2px;
}

div.sidebar-checkbox label {
    display: block;
    padding-left: 22px;
}

div.sidebar-checkbox input {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0 0 0 5px;
    vertical-align: bottom;
    position: relative;
    top: 1px;
    overflow: hidden;
}

input.court-checkbox, input.status-checkbox {
    top: 0;
}

#citation-count {
    float: right;
}

#slider-range {
    margin: 0.5em;
}

/* Results page */
#id_q:focus{
    outline-style: none;
}
#new-search-chooser {
    float: right;
}
/*
#result-count {
    float: left;
}
*/
.search-page #id_order_by {
    float: right;
}
.nojs #sidebar-search-form {
    display: none;
}
#pagination-left {
    float: left;
    width: 200px;
}
#pagination-center {
    margin: auto;
    text-align: center;
}
#pagination-right {
    float: right;
    width: 200px;
    text-align: right;
}

/* Donations page */
#id_amount_other {
    float: none;
    margin-top: 0;
}

#how-much-donate-choices {
    padding-left: 2em;
}

/*
#payment-provider-radio input[type="radio"] {
    position: absolute;
    top: auto;
}
*/
/*
#cc-month-field {
    width: 29px;
}
#cc-year-field {
    width: 67px;
}
*/
#unconfirmed-email-warning{
    margin-top: 9px;
    margin-left: 5px;
}

/* Special case for Oregon, which has a name attr with a value of TOP on
   content that isn't a link. See example here:
   http://www.publications.ojd.state.or.us/docs/S054822.htm#TOP

   Idea here is to simply ignore the anchor element.
*/
a[name="TOP"]:focus, a[name="TOP"]:hover, a[name="TOP"] {
    text-decoration: none;
    color: #333;
}

a:focus, a:hover {
    color: #009;
}

a {
    color: #009;
}
a:visited.visitable {
    color: #9d11b3;
}
a.gray:hover, a.gray:focus, a.grey:hover, a.grey:focus {
    color: gray;
}
#share-links a:hover {
    text-decoration: none;
}

/* errors - replaced with bg-danger, bg-warning, bg-success*/
/*.error a, .notice a, .success a {
    text-decoration: underline;
}
.error a:focus, .error a:hover {
    color: #8A1F11;
}
.notice a:focus, .notice a:hover, .success a:focus, .success a:hover {
    color: #514721;
}
*/


/* Display cases from Resources.org neatly */
#resource-org-text span.num {
    position: absolute;
    color: #999999;
}
#resource-org-text p.indent {
    position: relative;
    margin-left: 2em;
    margin-top: 1.5em;
}
#resource-org-text div.footnotes {
    border-top: 1px dotted black;
    padding-top: 1em;
}
#resource-org-text div.footnote > p {
    margin-left: 2em;
}
#resource-org-text div.prelims {
    background: none repeat scroll 0 0 #eeeeee;
    border: 1px solid #dddddd;
    padding-top: 1.5em;
}
#resource-org-text div.prelims p {
    position: relative;
    margin-left: 2em;
    margin-right: 2em;
    margin-top: 0;
}
#resource-org-text p.parties {
    text-align: center;
    font-size: 1.25em;
    font-weight: bold;
}

#resource-org-text div.footnote a.footnote {
    /* Needs proper color use */
    color: #000099;
    position: absolute;
}
#resource-org-text p a.footnote {
    /* make footnotes superscript */
    vertical-align: text-top;
    font-size: 70%;
    color: #000099;
}
/* End Resource.org display CSS */


/* Start lawbox display CSS */
#lawbox-text h1 {
    font-size: 1.25em;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
    font-weight: bold;
}
#lawbox-text h2 {
    font-size: 1.25em;
    font-weight: bold;
}
span.star-pagination {
    color: #999999;
}
span.star-pagination::after {
    display: inline;
    position: relative;
    content: "•";
    float: left;
    left: -1em;
    font-size: 1em;
    color: #8a1f11;
    width: 0;
}

blockquote span.star-pagination::after {
    left: -2.5em;
}


/* End lawbox display CSS */

/*
input.wide-title {
    width: 390px;
    padding: 5px;
    font-size:1.5em;
}
*/

/* Disabled button formatting */
button[disabled]:active, button[disabled]:hover, button[disabled] {
    color: #bdbdbd;
    background-color: #F5F5F5;
    -moz-border-bottom-colors: none;
    -moz-border-image: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: #F5F5F5;
    border-color: #EEEEEE #DEDEDE #DEDEDE #EEEEEE;
    border-right: 1px solid #DEDEDE;
    border-style: solid;
    border-width: 1px;
    cursor: default;
}

/* Save favorites and modal box configs */
.modal {
    box-shadow: 2px 2px 5px #000000;
    border: 1px solid #dddddd;
}

.modal-content {
    padding: 1em;
}

#modal-court-picker {
    width: 95%;
    max-width: 950px;
}
#modal-court-picker p.inline {
    margin-left: 10px;
}
#modal-court-picker a.close {
    font-size: 2em;
    position: relative;
    top: -0.45em;
    padding: 0.3em 0.7em 0.1em;
    left: 0.4em;
}

#modal-court-picker label {
    font-weight: normal;
}

#modal-court-picker #tab-state .appeals-court {
    /* Indent appeals courts in the state tab. */
    margin-left: 15px;
}

#court-filter {
    float: left;
    width: 218px;
}

#modal-court-picker #court-picker-tabs li {
    /* Has very specific selector to beat specific one in Bootstrap */
    float: none;
    display: inline-block;
}
.nav-tabs a {
    text-transform: uppercase;
}
#modal-save-favorite .modal-dialog {
    width: 430px;
}
#modal-logged-out .modal-dialog {
    width: 270px;
}
#modal-save-favorite textarea, #modal-save-favorite input {
    width: 404px !important;
}
#save-favorite-text-area {
    height: auto;
}

#modal-save-favorite .save-favorite-button {
    margin-right: 0;
}

#favorites-bottom-section {
    margin-top: 5.5em;
}
#save-favorite-delete {
    margin-bottom: 0.3em;
}
#favorites-buttons {
    position: absolute;
    right: 1em;
    bottom: 0.3em;
}

/* Tables on settings pages */
.settings-table {
    border-collapse: collapse;
}
.settings-table th {
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    border-color: gray;
}
.settings-table tr {
    border-width: 0px 0px 1px 0px;
    border-style: dotted;
    border-color: gray;
}
.settings-table tr:last-child {
    border-width: 0;
}
.settings-table tbody tr:hover {
    background-color: #f0f0f0;
}
#copy-input {
    width: 118px;
}
#favorites-star {
    font-size: 1.5em;
    margin-right: 0.5em;
}

.badge-red {
    background-color: #8a1f11;
}

.help-block {
    color: #8a1f11;
}

/* Charts */
#charts {
    display: inline-block;
    margin: 0px 5px 5px 5px;
}
#graph {
    height: 100%;
    width: 100%;
}
#graph table {
    width: 20%;
}

/* Hide hopscotch number in tour */
div.hopscotch-bubble .hopscotch-bubble-number {
    display: none;
    padding: 0;
}

div.hopscotch-bubble .hopscotch-nav-button.next,
div.hopscotch-bubble .hopscotch-nav-button.next:hover,
div.hopscotch-bubble .hopscotch-nav-button.prev,
div.hopscotch-bubble .hopscotch-nav-button.prev:hover {
    background-image: none;
}

/* Highlights images that need height/width */
img:not([width]):not([height]) {
  border: 2px solid red !important;
}
