/************************ HEADER ****************************/
body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
}

h1, h2, h3 {
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}
h1:before, h2:before, h3:before {
    content: "";
    position: absolute;
    width: 75px;
    height: 1px;
    bottom: 0;
    border-bottom: 2px solid #00b7cb;
}

h1 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}
h1 .fa-info-circle {
  font-size: 20px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 18px;
}

.suptitle {
  padding-top: 10px;
  position: relative;
}

.suptitle:before {
  content: "";
  position: absolute;
  width: 75px;
  height: 1px;
  top: 0;
  border-top: 2px solid #00b7cb;
}

.suptitle a {
  text-decoration: underline;
  color: #00b7cb;
}

.container {
  padding-right: 0;
  padding-left: 0;
}

.ui-widget {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
  background-color: #fff;
  color: #00b7cb;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #d8dbdd;
  border-right: 1px solid #d8dbdd;
}

/************************ MENU ****************************/
#menu {
  color: #898789;
  font-size: 16px;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  background-color: #e9e9e9;
  background-image: url('../assets/FondoMenu.png');
  border-bottom: 2px solid #00b7cb;
}

/*#menu nav .collapse > ul ul {
  padding-top: 10px;
  padding-bottom: 10px;
}*/

/*#menu nav .collapse > ul > ul ul {
  margin-top: -10px;
}*/

#menu nav .collapse > ul > li {
    display: inline-block;
}

#menu nav .collapse > ul > li > a.nav-link {
    display: inline-block;
    color: #898789;
}
#menu nav .collapse > ul > li::after {
    content: "|";
    width: 1px;
    height: 23px;
    padding: 0 10px;
    color: #00b7cb;
}
#menu nav .collapse > ul > li:last-child::after {
    content: "";
}

#menu nav .collapse > ul > li > a.nav-link.active {
    color: #000;
}

li.search a.nav-link {
    padding-top: 10px;
    padding-bottom: 0;
}

#search {
    font-size: 12px;
}

.fa-search {
    padding-left: 5px;
}

.dropdown-menu {
    font-size: 14px;
    font-family: 'Roboto', serif;
    /*display: block;
    opacity: 0;*/
}

.dropdown-menu a {
    padding: 0 15px;
    margin-right: 20px;
    line-height: 1.4;
}

.icon::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.eixos .dropdown-toggle::after,
.evolucio .dropdown-toggle::after {
    display: none;
}

.nav-link:hover {
    color: #000 !important;
    cursor: pointer;
}

.navbar {
  height: 47px;
}

.navbar-nav {
  margin: 0 auto;
}

#breadcrumb {
  display: none;
}

/************************ HEADER & FOOTER ****************************/
#header {
  padding: 20px;
  height: 123px;
}

#header h1 {
  margin-bottom: 0;
  text-align: center;
}

#home h1 {
  margin-bottom: 15px;
}

#header h1 a,
#home h1 {
  font-family: 'Roboto', sans-serif;
  color: #3095B4;
}

#home h1 {
  font-size: 44px;
  font-weight: bold;
}

#header h1 a:hover {
  color: #54a1bc;
}

#header h1:before,
#home h1:before {
  border-bottom: none;
}

#header a, #header a:hover,
#footer a, #footer a:hover {
  text-decoration: none;
  color: #000;
}

#header i, #footer i {
    color: #3095B4;
}

#header_left {
  margin-top: 10px;
}

#header_right a {
  position: absolute;
  bottom: 0;
  right: 20px;
}

#footer {
  clear: both;
  background-color: #e5e6e7;
  font-size: 12px;
}

#footer_middle {
  margin: 40px 0 15px 0;
  color: #787879;
}

#footer_middle a {
  float: left;
}

#footer_middle .adr {
  padding-left: 75px;
}

.start #footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.footer2 {
  background-color: #000;
  color: #fff;
  text-align: center;
  line-height: 3;
}

#about {
    padding: 40px 120px;
}

#about.low {
    padding: 40px;
}

/************************ INFOVIZ ****************************/

#home {
  background-color: #f3f3f5;
}

#home.content {
  margin: 10px auto;
  padding: 30px 0;
}

.content {
  min-height: 500px;
  margin: 0 auto;
  padding: 40px 0;
  display: none;
}

.content .row {
  display: block;
}

#home button {
  margin-top: 30px;
  border: none;
  background: linear-gradient(90deg, rgba(164,139,160,1) 0%, rgba(91,204,246,1) 100%);
  color: #ffffff;
  font-size: 16px;
  padding: 10px 30px;
}

#home .download {
  color: #212529;
  font-size: 14px;
}

#home .download:hover {
  text-decoration: none;
}

#gui {
  padding-right: 15px;
  padding-left: 15px;
}

.covid {
  float: right;
  position: relative;
  z-index: 1;
  background: #e9a326;
  color: white;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  font-family: 'Roboto Slab', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 14px;
  border: none;
}
.covid:hover {
  color: black;
}

.suptitle {
  color: #00b7cb;
  font-size: 14px;
}

.vismenu {
  margin-bottom: 20px;
}

.vismenu .btntitle {
  font-size: 12px;
  text-transform: uppercase;
}

.vismenu .btn,
.opcions_mapa .btn {
  font-size: 12px;
  text-transform: uppercase;
  color: #4a4a4a;
  border-radius: 0;
  background-color: #e9e9e9;
  padding: 4px 10px;
}

.vismenu .btn.active, .vismenu .btn:hover {
  color: #fff;
  background-color: #00b7cb;
}

.infovis .btn.active, .infovis .btn:hover,
.opcions_mapa .btn.active, .opcions_mapa .btn:hover {
  color: #fff;
  background-color: #4a4a4a;
}

.opcions_mapa .btn {
  margin-right: 5px;
}

.vismenu .infovis {
  float: right;
}

.vismenu .infovis .btntitle {
  float: left;
  width: 100px;
  text-align: right;
  padding-right: 10px;
  line-height: 1.2;
}

.socialmenu {
  border-top: 1px solid #d8dbdd;
  font-size: 12px;
  color: #656565;
  margin-top: 10px;
}

.socialmenu .btn {
  padding: 3px;
  color: #656565;
}

.opcions_mapa {
  font-size: 12px;
  text-transform: uppercase;
}

.btn.focus, .btn:focus {
  box-shadow: none !important;
}

.fa-15x {
  font-size: 1.2em;
}

.vismenu p {
  padding: 5px;
}

.plotDiv {
	display: none;
  overflow: auto;
}

.plotDiv.active {
	display: block;
}

.plotDiv .grafic,
.plotDiv .data,
.plotDiv .map,
.plotDiv .evolution_data,
.plotDiv .evolution_grafic {
	display: none;
}

.plotDiv.active .grafic.active,
.plotDiv.active .data.active,
.plotDiv.active .map.active,
.plotDiv.active .evolution_grafic.active,
.plotDiv.active .evolution_data.active {
	display: block;
}

.plotDiv .data,
.plotDiv .evolution_data {
  font-size: 12px;
}

.plotDiv .map {
  float: left;
}

.hidden {
  display: none;
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}
 
.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 400px;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 3px solid #ccc;
  border-top-color: #333;
  animation: spinner .6s linear infinite;
}

/*path.district {
  cursor: pointer;
}*/

.axis text {
  font: 10px sans-serif;
}

.axis line, .axis path {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.ttip {
  position: absolute;
  height: 25px;
  color: #fff;
  background-color: #4a4a4a;
  /*border: solid thin #fff;*/
  padding: 2px;
  pointer-events: none;
  font-size: 14px;
}

.labelname {
  display: inline-block;
  float: right;
  margin: -25px 0px 0px 40px;
  font-size: 1em;
  font-weight: bold;
  position: absolute;
}

.embed #menu {
  display: none;
}

.embed_iframe textarea {
  width: 100%;
  height: 50px;
  vertical-align: top;
  font-size: 12px;
  font-family: monospace;
}

.graficYaxis .svg-container,
.graficDones .svg-container,
.graficHomes .svg-container,
.graficTotal .svg-container {
  float: left;
}

.graficYaxis .legend {
  display: none;
}

/************************ DATATABLE ****************************/
.datatable {
  display: inline-block;
}

.datatable h2 {
  margin-top: 20px;
}

.datatable button.dt-button,
.datatable button.dt-button:focus, 
.datatable button.dt-button:hover {
  line-height: 1;
  width: 30px;
  padding: 3px 6px;
  text-shadow: none;
  background-color: #e9e9e9;
  background-image: none;
  border: none;
  border-radius: 0;
  color: #4a4a4a;
  font-size: 12px;
}

.datatable button.dt-button:focus, 
.datatable button.dt-button:hover {
  color: #fff;
  background-color: #00b7cb;
}

.datatable button.dt-button:focus, .datatable button.dt-button:hover {
  background-color: #4a4a4a;
  color: #fff;
}

.datatable .dt-buttons span {
  visibility: hidden;
}

.datatable .dt-buttons span::before {
  visibility: visible;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.5em;
}

.datatable .dt-buttons button:first-child span::before {
  content: "\f6dd";
}

.datatable .dt-buttons button:nth-child(2) span::before {
  content: "\f1c3";
}

.datatable .dt-buttons button:nth-child(3) span::before {
  content: "\f1c1";
}

.datatable table {
  text-align: right;
}

.datatable tr:last-of-type td {
  border-top: 1px solid #111 !important;
}

.tablefooter {
  margin-top: 10px;
}

.datatable .center {
  text-align: center;
}

/************************ EVOLUTION ****************************/
.evolution_grafic .js-plotly-plot {
  width: 300px;
  float: left;
}

.datatableEvolution tr:last-of-type td {
  border-top: 1px solid #ddd !important;
}

/************************ SLIDER ****************************/
#slideWrap {
    width: 1110px;
    text-align: center;
    margin: 0 auto;
}
#slideWrap .textonly {
  padding: 0 100px;
  /*height: 400px;*/
  font-size: 23px;
  line-height: 30px;
  display: table-cell;
  vertical-align: middle;
}

#slideWrap .spacer {
  height: 50px;
}

#slideWrap .textonly.low {
  font-size: 18px;
  line-height: 24px;
}
#slideWrap .textonly.low h1 {
  font-size: 32px;
}

.sss {
  height: 0;
  margin: 0; 
  padding: 0;
  position: relative;
  display: block;
  overflow: hidden;
}

.slide {
  display: table;
}

.ssslide {
  width: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  overflow: hidden;
  cursor: pointer;
}

.ssslide img {
  max-width: 80%;
  height: auto;
  margin: 10%;
  padding: 0;
  position: relative;
  display: block;
}

.sssnext, .sssprev {
  width: 50px;
  height: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  background: url('../assets/arrows.png') no-repeat;
}

.sssprev {
  left: 3%;
  background-position: 0 50%;
}

.sssnext {
  right: 3%;
  background-position: -50px 50%;
}

.sssprev:hover, .sssnext:hover {
  cursor: pointer;
}

a.seguir {
  color: #3595b4;
}

#home .stripe {
  margin: 0;
  width: 100%;
  height: 10px;
}

#home .stripe3, #home .stripe6 {
  height: 3px;
}

#home .stripe1 {
  background: linear-gradient(90deg, rgba(241,187,87,1) 0%, rgba(80,208,247,1) 100%);
}
#home .stripe2 {
  background: linear-gradient(90deg, rgba(241,187,87,1) 0%, rgba(80,208,247,1) 100%);
}
#home .stripe3 {
  background: linear-gradient(90deg, rgba(241,187,87,1) 0%, rgba(123,220,252,1) 100%);
}
#home .stripe4 {
  background: linear-gradient(90deg, rgba(152,142,179,1) 0%, rgba(220,200,137,1) 100%);
}
#home .stripe5 {
  background: linear-gradient(90deg, rgba(152,142,179,1) 0%, rgba(220,200,137,1) 100%);
}
#home .stripe6 {
  background: linear-gradient(90deg, rgba(152,142,179,1) 0%, rgba(246,193,99,1) 100%);
}

/************************ RESPONSIVE ****************************/

@media only screen and (max-width: 1160px) {
  #about {
      padding: 40px 100px;
  }
}

/************************** 2020 **************************/

#btn6 {
  display: none;
}

.nav-item.search {
  display: none;
}

.year-selector {
  padding-right: .5rem;
  padding-left: .5rem;
  padding-top: 12px;
  padding-bottom: 11px;
  cursor: pointer;
}

.year {
  color: #000;
}

.anys {
  min-width: auto;
}

.btco-hover-menu .collapse ul li:hover .anys::before {
  margin-top: 0;
}

.anys li:first-of-type {
  display: none;
}

.anys .dropdown-li {
  padding: 0;
  color: #000;
}

.anys .dropdown-li:hover {
  background-color: #fff;
}

.anys .dropdown-li:hover a {
  color: #00b7cb;
}