/*section related css*/
#dataviz-section {
  /* padding: 0 20px 0 20px; */
  /*max-width: 1600px;*/
  min-width: 100%;
}

/*sidebar related*/

#dataviz-section .alert {
  font-size: 0.9em;
  margin: 0;
  padding: 10px 15px;
}

#dataviz-section .label-red {
  background-color: #d85353;
}

#dataviz-section .label-default {
  /*background-color: #34353a;*/
  /*background-color: #2CA02C;*/
  /*background-color: #f5f5f5;
    color:black;*/
}

#dataviz-section #indicator-search-box-error {
  display: none;
  color: red;
  font-size: 0.8em;
  padding-left: 2px;
}

#searchmodal .modal-header {
  background: #e3f0ff;
  color: white;
}

#indinfomodal .modal-header {
  background: #e3f0ff;
  color: white;
}

#onetimehowto .modal-header {
  background: #337ab7;
  color: white;
}

#searchmodal .list-group {
  margin-bottom: 0;
}

#searchmodal .active {
  background-color: #f5f5f5;
  border-color: #f5f5f5;
  color: #555;
}

#searchmodal .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
#indinfomodal .modal-body {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

#indinfomodal .list-group {
  margin-bottom: 0;
}

/*collapsible list*/
#dataviz-section #section-list {
  padding: 0px;
}

#dataviz-section #accordion {
  height: auto;
  max-height: 650px;
  overflow-x: hidden;
}

#dataviz-section .indicator-list-group {
  font-size: 0.85em;

  height: auto;
  max-height: 400px;
  overflow-x: hidden;
}

#dataviz-section .subaccordion {
  height: auto;
  max-height: 500px;
  overflow-x: hidden;
}

/*    .subindicatoraccordion {
        height: auto;
        max-height: 300px;
        overflow-x: hidden;
    }
*/
#dataviz-section .subindicator-list-group {
  font-size: 0.9em;
  padding-left: 10px;
  height: auto;
  max-height: 200px;
  overflow-x: hidden;
}

#dataviz-section #menubox {
  position: relative;
  /*background-color:#f5f5f5;*/
  /*height:130px;*/
  border-top-right-radius: 1em;
}
#dataviz-section #guidebox {
  background-color: #f5f5f5;
  border-top-right-radius: 1em;
}

#dataviz-section #guideleft {
  padding-top: 10px;
}

#dataviz-section #guideleft table tbody tr > td:nth-child(2),
#dataviz-section #guideleft table tbody tr > td:nth-child(3) {
  width: 40%;
}
#dataviz-section #guideleft table tbody tr > td:first {
  width: 20%;
}

#dataviz-section #chooserlabel,
#dataviz-section .year-label {
  font-size: 12px;
  shape-rendering: crispEdges;
}
#dataviz-section .year-label {
  padding-bottom: 25px;
}

#dataviz-section #menubox > div:first-child {
  padding-top: 20px;
}

/*  #dataviz-section #menubox>div {
       top:59%;
       -webkit-transform:translateY(-60%);
       -moz-transform:translateY(-60%);
       -o-transform:translateY(-60%);
       transform:translateY(-60%);
   } */

/*  #dataviz-section #guidebox #info-heading {
        margin-bottom: 10px;
        font-weight: bold;
        font-color: #34353A;
    }

    #dataviz-section #guidebox .info-first span {
        font-color: #34353A;
    }

    #dataviz-section #guidebox .info-second span {
        font-color: #34353A;
    }

    #dataviz-section #guidebox>div {
        top:50%;
        -webkit-transform:translateY(-50%);
        -moz-transform:translateY(-50%);
        -o-transform:translateY(-50%);
        transform:translateY(-50%);
    }*/

#dataviz-section .noUi-pips {
  font-size: 10px;
}

#dataviz-section .noUi-marker-horizontal.noUi-marker {
  height: 4px;
}

#dataviz-section .noUi-marker-horizontal.noUi-marker-large {
  height: 9px;
}

#dataviz-section .noUi-pips-horizontal {
  height: 20px;
}

#dataviz-section .noUi-tooltip {
  background: #fff;
  border: none;
  padding: 0 10px;
}
/*#year-range>div{
        margin:0 -10px;
    }*/

#dataviz-section #menubox {
  z-index: unset;
}

#dataviz-section #year-range {
  /*z-index: 5;*/
}

#dataviz-section #option-section {
  z-index: 3;
}

#dataviz-section #chooser .bs-select-all {
  display: none;
}

#dataviz-section #chooser .bs-deselect-all,
#dataviz-section #chooser .bs-select-all {
  width: 100% !important;
}

/*slider related*/
#dataviz-section .noUi-tooltip,
#dataviz-section .noUi-pips {
  -webkit-font-smoothing: antialiased;
  color: black;
  text-shadow: none !important;
  text-decoration: none !important;
}

#dataviz-section .noUi-connect {
  background: #337ab7;
}
/*Option Section*/
#dataviz-section #option-section {
  background-color: #1c77b9;
  /* height: 32px; */
  color: white;
  line-height: 30px;
  vertical-align: center;
}

#dataviz-section #option-section button {
  background: #34353a;
  height: 40px;
  width: 40px;
  color: white;
  border-color: #f5f5f5;
  border-top: none;
  border-bottom: none;
  border: 1px solid #e6e6e6;
}
#dataviz-section #option-section button span {
  font-size: 20px;
}
#dataviz-section #option-section button span::before {
  margin: 0;
}
#dataviz-section #option-section button.active-sel {
  background: white;
  color: #34353a;
  border: 1px solid #306dad;
  box-shadow: inset 0 0 10px #cecece;
  -moz-box-shadow: inset 0 0 10px #cecece;
  -webkit-box-shadow: inset 0 0 10px #cecece;
}

#dataviz-section #option-section button.inactive-sel {
  background: #dd5638;
  color: white;
}
.indicator-search-box .btn.btn-default {
  height: 40px;
}

#dataviz-section #option-section button.inactive-sel:hover {
  background: #54565f;
  /*border-color: #34353a;*/

  color: white;
}

#dataviz-section #message-bar {
  overflow: hidden;
  width: auto;
}

#dataviz-section #option-section .info-box {
  width: 100%;
  margin-top: 35px;
  /*height: 50px;*/
  border-radius: 0px 0px 4px 4px;
  color: black;
  padding: 2px 10px;
  background: #f5b048;
}

#dataviz-section #option-section .dropdown-menu:before {
  position: absolute;
  top: -7px;
  left: 9px;
  display: inline-block;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #f5f5f5;
  border-left: 7px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  content: "";
}

#dataviz-section #option-section .dropdown-menu:after {
  position: absolute;
  top: -6px;
  left: 10px;
  display: inline-block;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #f5b048;
  border-left: 6px solid transparent;
  content: "";
}
/*Visualization section*/
#dataviz-section #containerSVG {
  height: 700px;
  background-color: #fffffa;
  box-shadow: 0 6px 10px 0 rgb(0 0 0 / 3%), 0 1px 18px rgb(0 0 0 / 7%),
    0 5px 26px 0 rgb(67 94 131 / 15%);
  min-height: 600px;
}

/*Downloads section*/

/*custom css*/
#dataviz-section .nomargin {
  margin: 0px !important;
}

/********* SIDE NAV BAR ***********/
#dataviz-section a {
  color: #fff;
}

#dataviz-section li {
  list-style: none;
}

#dataviz-section .clearfix {
  clear: both;
  height: 1px;
  overflow: hidden;
  font-size: 0pt;
  margin-top: -1px;
}

#dataviz-section .panel {
  border-radius: 0px !important;
  margin-bottom: 1px !important;
}

#dataviz-section .panel-group {
  margin-bottom: 0px;
}

#dataviz-section .panel-default {
  border-color: white;
}
#dataviz-section .panel-group .panel + .panel {
  margin-top: 0px;
}

#dataviz-section #accordion > .panel-default > .panel-heading {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border-left: 8px solid #337ab7;
}

#dataviz-section
  #accordion
  > .panel-default
  > .panel-heading
  > .panel-title
  > a {
  font-size: 0.9em;
}

#dataviz-section .subaccordion > .panel-default > .panel-heading {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  /*border-left: 8px solid #d85353;*/
}
#dataviz-section .subaccordion > .panel-default {
  padding-left: 3px;
}

#dataviz-section
  .subaccordion
  > .panel-default
  > .panel-heading
  > .panel-title
  > a {
  font-size: 0.8em;
}

#dataviz-section .subindicatoraccordion > .panel-default > .panel-heading {
  background: white;
  padding: 7px 5px;
}
#dataviz-section .subindicatoraccordion > .panel-default {
  padding-left: 3px;
  /*line-height: 1.2;*/
  background: white;
}

#dataviz-section
  .subindicatoraccordion
  > .panel-default
  > .panel-heading
  > .panel-title
  > a {
  font-size: 0.72em;
  color: #555555;
}

#dataviz-section .panel-collapse {
  background-color: rgba(241, 241, 241, 0.18);
}

#dataviz-section .subindicatoraccordion .panel-collapse {
  background-color: transparent;
}

#dataviz-section .list-group {
  margin: 0px;
}

#dataviz-section .indicator,
#dataviz-section button.list-group-item:focus {
  background-color: #fff;
  padding: 5px 10px;
}

#dataviz-section .indicator-selected {
  background-color: #d9edf7 !important;
}

#dataviz-section .panel-title a:hover,
#dataviz-section .panel-title a:active,
#dataviz-section .panel-title a:focus,
#dataviz-section .panel-title .open a:hover,
#dataviz-section .panel-title .open a:active,
#dataviz-section .panel-title .open a:focus {
  text-decoration: none;
}

#dataviz-section .panel-title > .small,
#dataviz-section .panel-title > .small > a,
#dataviz-section .panel-title > a,
#dataviz-section .panel-title > small,
#dataviz-section .panel-title > small > a {
  display: block;
}

#onetimehowto .modal-lg {
  width: 80%;
}

/*Custom Media Queries*/
@media screen and (max-width: 768px) {
  #dataviz-section #containerSVG {
    min-height: 600px;
  }
  .motion_chart_ {
    left: 30px;
    bottom: 75px;
  }
  #dataviz-section #menubox {
    border-top-right-radius: 0em;
    /* margin-top:20px; */
  }

  #dataviz-section #menubox .col-sm-1,
  #dataviz-section #menubox .col-sm-10,
  #dataviz-section #menubox .col-sm-11,
  #dataviz-section #menubox .col-sm-12,
  #dataviz-section #menubox .col-sm-2,
  #dataviz-section #menubox .col-sm-3,
  #dataviz-section #menubox .col-sm-4,
  #dataviz-section #menubox .col-sm-5,
  #dataviz-section #menubox .col-sm-6,
  #dataviz-section #guidebox .col-sm-6,
  #dataviz-section #menubox .col-sm-7,
  #dataviz-section #menubox .col-sm-8,
  #dataviz-section #menubox .col-sm-9 {
    float: left;
  }

  #dataviz-section #menubox .col-sm-1 {
    width: 8.33333333%;
  }

  #dataviz-section #menubox .col-sm-2 {
    width: 16.66666667%;
  }

  #dataviz-section #menubox .col-sm-3 {
    width: 25%;
  }

  #dataviz-section #menubox .col-sm-4 {
    width: 33.33333333%;
  }

  #dataviz-section #menubox .col-sm-5 {
    width: 41.66666667%;
  }

  #dataviz-section #menubox .col-sm-10 {
    width: 83.33333333%;
  }

  #dataviz-section #menubox .col-sm-11 {
    width: 91.66666667%;
  }

  #dataviz-section #menubox .col-sm-12 {
    width: 100%;
  }

  #dataviz-section #menubox .col-sm-6,
  #dataviz-section #guidebox .col-sm-6 {
    width: 50%;
  }

  #onetimehowto .modal-lg {
    width: 100%;
  }
}

/* table related */
#dataviz-section #containerSVG table {
  font-size: 0.8em;
}

.tooltip-for-chart {
  position: absolute;
  z-index: 50;
  font-size: 0.85em;
  /*width: 300px;
    height: 50px;*/
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  background-color: white;
  /*text-align: center;*/
}

.tooltip-for-chart .year {
  text-align: center;
}

.tooltip-for-chart .inner-title {
  font-weight: bold;
}

.tooltip-for-chart .na {
  color: red;
}

.tooltip-for-chart hr {
  /*height: 5px;*/
  width: 80%;
  margin: 4px auto;
}

.bootstrap-select.btn-group .dropdown-menu.inner {
  max-height: 170px !important;
}

.bootstrap-select.btn-group .dropdown-menu.open {
  max-width: 80vw;
  overflow: scroll;
  max-height: 315px !important;
}

#eventDropdown {
  display: none; /* Hide the dropdown by default */
}

#dropdown-container.collapsed #eventDropdown {
  display: block; /* Display the dropdown when the container is not collapsed */
}

/* #dropdown-container.collapsed #toggleDropdown::after {
  content: "▼"; 
} */

#dev-home {
  display: flex;
  justify-content: center;
  padding-top: 2em;
  padding-bottom: 3em;
}

.main-article-devnote {
  position: relative;
  width: 75%;
  margin-right: 20px;
  margin-bottom: auto;
}

.main-article-devnote img {
  width: 100%;
  height: 600px; /* Fixed height */
  object-fit: cover; /* Ensures the image covers the entire box */
  border-radius: 5px;
  background-color: #ccc; /* Fallback color if the image is not loaded */
}

.main-article-text-devnote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2); /* Full overlay with semi-transparent black */
  color: #fff;
  border-radius: 5px;
}

.main-article-text-devnote h1 {
  margin: 0;
  font-size: 2em;
  font-weight: bold;
}

.main-article-text-devnote p {
  margin: 10px 0 0;
}

.side-articles-devnotes {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-article-devnotes {
  position: relative;
}

.side-article-devnotes img {
  width: 100%;
  height: 190px; /* Fixed height */
  object-fit: cover; /* Ensures the image covers the entire box */
  border-radius: 5px;
  background-color: #ccc;
}

.side-article-text-devnotes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2); /* Full overlay with semi-transparent black */
  color: #fff;
  border-radius: 5px;
}

.side-article-text-devnotes h2 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.side-article-text-devnotes p {
  margin: 5px 0 0;
}
a.side-article-devnotes {
  border-radius: 8px;
  overflow: hidden;
}
.main-article-devnote img,
.side-article-devnotes img {
  transition: transform 0.2s ease-in-out;
}
.main-article-devnote:hover img,
.side-article-devnotes:hover img {
  transform: scale(1.1); /* Slight zoom effect on hover */
}

@media (max-width: 1120px) {
  #dev-home {
    flex-direction: column;
    align-items: center;
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .main-article-devnote {
    width: 90%;
    max-width: 600px; /* Set a max-width for better scaling */
    margin-bottom: 20px; /* Add margin between stacked articles */
    margin: 0 auto 200px auto !important;
  }

  .side-articles-devnotes {
    width: 100%; /* Ensure side articles take full width */
    gap: 20px; /* Keep the gap between stacked side articles */
  }

  .main-article-devnote img,
  .side-article-devnotes img {
    height: auto; /* Adjust height to fit the content */
  }
  .main-article-text-devnote,
  .side-article-text-devnotes {
    padding: 20px; /* Adjust padding to scale with the smaller boxes */
  }
}
