/* IMPORTS */

/* Base */
@import "base/colors.css";
@import "base/helpers/helpers.css";

/* Components */
@import "components/factor.css";
@import "components/heading.css";
@import "components/map.css";
@import "components/modal.css";
@import "components/pageimage.css";
@import "components/paragraph.css";
@import "components/section.css";

/* Pages */
@import "pages/fines-and-fees-state-profile.css";

/* TYPOGRAPHY */

li {
  text-align: left;
  font-size: 18px;
  font-weight: 300;
  margin: 0;
}

/* SECTION AND LAYOUT */
.container {
  max-width: 1140px;
  padding: 0 2rem;
}

.map-container {
  max-width: 1400px;
  margin: auto;
}

.full-width {
  width: 100%;
}

.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.row.tool-tip-style {
  background-color: #e0f5f4;
  color: black;
  margin-bottom: 1rem;
}

.row.tool-tip-style:hover {
  background-color: #63ccca;
  color: white;
}

.row.tool-tip-style > div {
  background-color: transparent;

  min-height: 200px;
}

.row.tool-tip-style .col-md-3 {
  align-items: center;
  display: flex;
  justify-content: center;
}

.row.tool-tip-style .factor-bg {
  height: auto;
}

/* TABLES */
table {
  margin-bottom: 50px !important;
}

tr {
  background: #fff;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fff;
}

.table td,
.table th {
  padding: 10px !important;
  border: 1px solid #63ccca;
  vertical-align: middle !important;
  font-size: 14px;
  color: #666;
}

.table th {
  color: #000;
  background: #e0f5f4;
}

.table-result {
  cursor: pointer;
}

td:first-of-type {
  font-weight: 700;
}

ul.download-buttons {
  padding: 0;
  margin: 0;
  text-align: center;
}

.download-buttons li {
  list-style-type: none;
  display: inline-block;
  padding: 0;
}

.download-buttons li:first-of-type {
  margin: 1rem 0 0.5rem;
}

.download-buttons li:last-of-type {
  margin: 0.5rem 0 1rem;
}

/* Category Ranks rank */
#category-ranks .rank-info {
  padding: 15px 10px 15px 0;
}

.rank .nav-pills .active {
  border-radius: 0px;
  background-color: #f6ca9a;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #62ccca;
}

a.nav-link.factor-data-category {
  min-width: 100%;
}

a.nav-link.factor-data-category.active {
  color: #fff !important;
}

.icon1 {
  background-image: url("/wp-content/uploads/2020/01/icon-1.svg");
}

#findings .icon1.active {
  background-image: url("/wp-content/uploads/2020/01/icon-1b.svg");
}

.icon2 {
  background-image: url("/wp-content/uploads/2020/01/icon-2.svg");
}

#findings .icon2.active {
  background-image: url("/wp-content/uploads/2020/01/icon-2b.svg");
}

.icon3 {
  background-image: url("/wp-content/uploads/2020/01/icon-3.svg");
}

#findings .icon3.active {
  background-image: url("/wp-content/uploads/2020/01/icon-3b.svg");
}

.icon4 {
  background-image: url("/wp-content/uploads/2020/01/icon-4.svg");
}

#findings .icon4.active {
  background-image: url("/wp-content/uploads/2020/01/icon-4b.svg");
}

.icon5 {
  background-image: url("/wp-content/uploads/2020/01/icon-5.svg");
}

#findings .icon5.active {
  background-image: url("/wp-content/uploads/2020/01/icon-5b.svg");
}

.icon6 {
  background-image: url("/wp-content/uploads/2020/01/icon-6.svg");
}

#findings .icon6.active {
  background-image: url("/wp-content/uploads/2020/01/icon-6b.svg");
}

.icon7 {
  background-image: url("/wp-content/uploads/2020/01/icon-7.svg");
}

#findings .icon7.active {
  background-image: url("/wp-content/uploads/2020/01/icon-7b.svg");
}

#pills-tab a {
  color: #000;
}

#pills-tab a:hover {
  color: #fff;
  background: #62ccca;
}

.light-blue .nav-link {
  background-color: #c1ebea;
}

.dark-orange .nav-link {
  background-color: #f6ca9a;
}

/* HEADER NAV */
.state-report-nav .navbar {
  margin-bottom: 0 !important;
  background: #006837 !important;
  border: 0 !important;
}

.state-report-nav ul.nav.navbar-nav {
  margin: 20px auto 0 auto;
}

.navbar-inverse {
  background-image: none !important;
  border: 0 !important;
}

.navbar {
  background-color: #006837 !important;
}

.navbar-inverse .navbar-nav > li > a {
  color: #fff !important;
  font-size: 1.5rem;
}

.nav-container {
  background: #006837;
  width: 100%;
}

.state-container {
  display: block;
  padding: 20px 0 0 0;
  border: 0;
  max-width: 1100px;
  margin: auto;
}

.navbar-brand {
  font-size: 0;
  background-image: url("/wp-content/uploads/2020/02/ij-logo.png");
  background-repeat: none;
  width: 36px;
  height: 36px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 1);
}

.state-container {
  display: block;
  padding: 20px 0 0 0;
  border: 0;
  max-width: 1100px;
  margin: auto;
}

nav.navbar .dropdown-menu {
  background-color: #feebd1 !important;
}

/* RANK*/
.rank .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: black;
  background-color: white;
}

.rank a {
  color: black;
}

.rank .nav-link {
  display: block;
  padding: 30px 20px;
  margin: 15px 15px 0 15px;
  border-radius: 0px;
}

.rank .nav-link:last-of-type {
  margin-bottom: 15px;
}

.rank .image-box {
  display: inline-block;
  float: right;
  height: 50px;
  width: 50px;
  background-size: 50px !important;
}

.rank .tab-pane:after {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #fff;
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
}

#category-ranks .tab-pane:after {
  display: none;
}

.factor-data p {
  margin: 0 0 10px 0;
}

.tab-pane {
  margin: 0;
}

.rank .col-5 {
  position: relative;
  width: 100%;
  padding-right: 0px;
  padding-left: 0px;
}

.rank .col-7 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 0px;
  padding-top: 15px;
}

.rank .nav-pills .nav-link {
  border-radius: 0;
}

.rank .tab-content > .tab-pane {
  background-color: white;
  color: black;
  padding: 0.6rem;
  margin-top: 0.6rem;
}

.cat_rank .active {
  position: relative;
}

.cat_rank .active:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-left-color: white;
  border-right: 0;
  margin-top: -15px;
  margin-right: -15px;
}

.rank-icon-bkg {
  background-position: 95% 50%;
  background-repeat: no-repeat;
  background-size: 50px;
}

/* MAP */
.jvectormap-legend-cnt-v {
  top: 400px !important;
}

select#stateSelect {
  margin-bottom: 20px !important;
}

.green li {
  color: #fff;
}

a.download-btn {
  color: #fff;
  background: #000;
  padding: 20px;
  margin: auto;
  text-align: center;
  display: block;
  left: 0;
  right: 0;
  width: max-content;
}

.col,
.col-1,
.col-10,
.col-11,
.col-12,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-auto {
  position: relative;
  width: 100%;
  padding-right: 5px;
  padding-left: 5px;
}

/* Factor Scores */
.factor .nav-pills .active {
  border-radius: 0px;
  background-color: #f6ca9a;
}

.factor .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #62ccca;
  width: 500px;
}

.vertical-nav {
  background-color: #e0f4f4;
}

.factor .nav-pills .nav-link {
  border-radius: 0px;
}

/* 	Factor boxes   */
.free .factor-boxes:nth-of-type(odd) {
  background-color: #feebd1;
}

.free .factor-boxes:nth-of-type(even) {
  background-color: #dff4f3;
}

.free .factor-boxes {
  min-width: 110px;
  max-width: 110px;
  height: 110px;
  border-radius: 0px;
}

.free .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #007bff;
  height: 110px;
  border-radius: 0px;
}

.free a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
  height: 110px;
  color: black;
}

.free .nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #61ccca;
  height: 110px;
}

div#v-pills-tabContent {
  padding: 15px 10px 0 0;
}

#category-ranks div#v-pills-tabContent {
  padding: 0;
}

ul.nav-pills .nav-item {
  font-size: 0.9rem;
}

ul.nav-pills .nav-item:nth-child(even) {
  background-color: #feebd1;
}

ul.nav-pills .nav-item:nth-child(odd) {
  background-color: #e0f4f4;
}

ul.nav-pills .nav-item {
  max-width: 130px;
  margin: 2px 4px;
  margin-bottom: 1rem;
  text-align: left;
  font-weight: 600;
}

ul.nav-pills .nav-item:first-of-type {
  margin-left: 0;
}

ul.nav-pills .nav-item:last-of-type {
  margin-right: 0;
}

ul.nav-pills .nav-item .scales-note {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.factor-bg:hover {
  background-color: #63ccca !important;
  color: #fff;
}

.factor-bg {
  display: inline-block;
  margin-top: 0;
  min-height: 120px;
  padding: 1.5rem;
  width: 100%;
  vertical-align: baseline;
}

.factor-bg .factor-explanation-title,
.factor-legend-link {
  font-weight: 600;
  padding-top: 0.5rem;
}

.overall-rank {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  margin-top: 30px;
}
.overall-rank small {
  font-size: .8em;
}

#category-ranks .tab-content,
#category-ranks .tab-content > .tab-pane {
  height: 100%;
}

.rank .tab-content > .tab-pane {
  margin: 0 0 20px 0;
  padding: 20px;
}

.short {
  min-height: 675px;
}

.tall {
  min-height: 805px;
}

.nopadding {
  padding: 0 !important;
  margin: 0 !important;
}

div#copyright_privacy {
  text-align: right;
}

div#copyright_privacy p,
div#copyright_privacy a {
  color: #b3b3b3;
  line-height: 2em;
  font-size: 13px;
}

div#copyright_address p,
div#copyright_address a {
  color: #b3b3b3;
  line-height: 2em;
  padding-left: 0;
  font-size: 13px;
  text-align: left;
}

.footer_main li {
  color: #b3b3b3;
  font-size: 13px;
  padding: 5px;
  margin: 0 0 10px 0;
}

.footer_main .btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 0;
}

.footer_main ul {
  list-style-type: none;
  margin-top: 0;
}

/* Lex - Dropdown Fix & Show All Button Implementation */

.navbar li.nav-item {
  font-size: 0.875em;
  margin: 0 0.875em;
}

#states-dropdown.show {
  display: flex;
  flex-direction: row;
}

#states-dropdown.show .dropdown-item {
  font-size: 0.9em;
}

.dropdown-col {
  width: 100%;
}

.header {
  background-color: #006837;
  padding: 0 1em;
  z-index: 10;
}

.header > .navbar {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.navbar-nav {
  margin: 1em 0;
}

.header .navbar-collapse {
  flex-grow: 0;
}

#pills-tab {
  margin-bottom: 2.5rem !important;
}

.factor-data {
  padding: 0 !important;
}

.factor-data .row {
  justify-content: center;
}

/* Talley Row Data Item */
.tally {
  padding: 5px;
  font-size: 12px;
}
.tally .code {
  display: none;
}

.tally:not(:last-of-type) {
  border-bottom: 1px solid lightgrey;
  padding-bottom: 0.75rem;
}

/* Responsive styles */
@media only screen and (min-width: 1920px) {
  .navbar li.nav-item {
    font-size: 1em;
  }

  section.factors > .container {
    max-width: 1500px;
  }
}

@media only screen and (min-width: 1024px) {
  .footer-social-icons {
    text-align: right;
  }
}

@media only screen and (max-width: 1024px) {
  #states-dropdown.show {
    flex-wrap: wrap;
    height: 300px;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  .navbar li.nav-item {
    font-size: 0.8em;
  }
}

@media only screen and (max-width: 1023px) {
  .footer_main ul {
    padding: 0;
  }

  .footer_main .donate-section {
    clear: both;
  }

  .footer_main .donate-button-col .btn {
    width: 70%;
    max-width: 320px;
    margin: 15px;
  }

  .footer_main .footer-menu-1 li {
    text-align: right;
  }

  .footer_main .footer-menu-3 li {
    text-align: center;
  }
}

@media only screen and (max-width: 992px) {
  .rank .tab-pane:after,
  div#v-pills-tabContent {
    display: none;
  }
}

@media only screen and (max-width: 980px) {
  li.nav-item {
    font-size: 0.75em;
    margin: 0 0.5em;
  }

  ul.nav-pills .nav-item {
    min-width: 100%;
    max-width: 100%;
  }

  .tall {
    min-height: auto;
  }

  .cat_rank .active:after {
    visibility: hidden;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    align-items: center;
    padding: 1em;
  }

  .header > .row {
    padding: 0.5rem 1rem 0 2rem;
  }

  li.nav-item {
    font-size: 1em;
  }

  #footer_logo {
    padding-bottom: 25px;
  }

  .factor-data {
    padding: 0 0 0 35px;
  }

  td,
  .table td {
    /* background-color: #63ccca; */
    border: none;
  }

  td:first-of-type {
    background-color: #63ccca;
    color: white !important;
  }

  .tally:first-of-type .code {
    display: block;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 0.25rem;
  }
}

@media only screen and (max-width: 600px) {
  .footer_main .footer-menu-1 li {
    text-align: center;
  }

  .footer_main li {
    text-align: center;
  }
}

@media only screen and (max-width: 480px) {
  #states-dropdown.show .dropdown-item {
    font-size: 0.8em;
  }
}
