/*
General HTML settings

#f1f2f2 – Fundo
#3f89af – Azul marca Estadão, botões, fundo / nome presidentes
#231f20 – Títulos
#5d5d5d – Linha fina
#00a79d – Verde Aliado
#c441c4 – Rosa Oposição
#8fa1b2 – Tag Mandato (ex: Dilma “1º Mandato”)
#8fa1b2 – Legenda / Atualizado em…
#e6eaeb – Fundo footer
#5d5d5d – Tooltip

#6c849a

*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Estado Fine', serif;
  background-color: #f1f2f2;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2b353e;
  line-height: 1.5;
}

hr {
  border-top: 1px solid rgba(143, 161, 178, .2);
  width: 100%;
  margin: 96px 0 96px 0;
}

a {
  color: #3f89af;
}

/*
Divs and page structures
*/

.lead, .dataviz, .small-multiples {
  width: 100%;
  max-width: 666px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  /* margin: 5px; */
}

.dataviz, .small-multiples, .last-update {
  font-family: "Lato", sans-serif;
  font-size: 14px;
}

.last-update {
  padding: 20px;
  margin-bottom: 25px;
}

img.face {
  height: 100px;
}

img.logo {
  height: 24px;
}

.estado-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 72px;
  background-color: #f1f2f2;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.title {
  font-family: 'Estado Fine', serif;
  font-size: 48px;
  width: 100%;
  max-width: 580px;
  line-height: 1.333;
}

@media (max-width: 640px) {
  .title {
    font-size: 32px;
  }
}

.linha-fina {
  font-family: "Lato", sans-serif;
  width: 100%;
  max-width: 400px;
  color: #6c849a;
}

.button-container {
  width: 100%;
  margin: 48px auto 96px;
  display: inline-flex;
  justify-content: center;
}

[data-page="deputado"] .button-container {
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .button-container {
    flex-wrap: wrap;
  }
}



.search-box-wrapper + .button-container {
  margin-bottom: 48px;
}

.search-box-wrapper {
  display: flex;
  flex-direction: column;
  font-family: "Lato", sans-serif;
  width: 260px;
  /* margin: 20px; */
  align-items: center;
}

.search-box {
  margin: 30px;
  /* text-transform: uppercase; */
  text-align: center;
  border-radius: 9999px;
  border: 0px;
  width: 280px;
  /* height: 30px; */
  outline: none;
  color: #231f20;

  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
}

.search-box::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #8fa1b2;
  opacity: 1; /* Firefox */
  /* text-transform: none; */
}

.search-box:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #8fa1b2;
  /* text-transform: none; */
}

.search-box::-ms-input-placeholder { /* Microsoft Edge */
  color: #8fa1b2;
  /* text-transform: none; */
}

.party-selector, .page-selector, .dep-selector,
.party-selector-this-party, .page-selector-this-page,
.dep-selector-this-dep {
  text-transform: uppercase;
  font-family: "Lato", sans-serif;
  background-color: #d5e1e7;
  border: none;
  color: #3f89af;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
  font-size: 12px;
  border-radius: 9999px;
  text-decoration: none;
  margin: 2px;
  outline: none;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 640px) {
  .party-selector, .page-selector, .dep-selector,
  .party-selector-this-party, .page-selector-this-page,
  .dep-selector-this-dep {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.page-selector-this-page,
.party-selector-this-party,
.dep-selector-this-dep {
  background-color: #3f89af;
  color: #ffffff;
  pointer-events: none;
  /* cursor: crosshair; */
}

span.button-party {
  margin: 5px;
  font-weight: bold;
}

.swiper-container {
  width: 100%;
  max-width: 666px;
  margin-bottom: 48px;
}

.swiper-container::before {
  content: '';
  display: block;
  position: absolute;
  width: 100px;
  background: linear-gradient(
    to right,
    rgba(241, 242, 242,0),
    rgba(241, 242, 242,1)
  );
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.swiper-container::after {
  content: '';
  display: block;
  position: absolute;
  width: 100px;
  background: linear-gradient(
    to right,
    rgba(241, 242, 242,1),
    rgba(241, 242, 242,0)
  );
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.swiper-container::after,
.swiper-container::before {
  pointer-events: none;
}

.swiper-slide {
  font-family: "Lato", sans-serif;
  color: #3f89af;
  width: initial;
}

.swiper-slide-active p.governo,
.swiper-slide-active p.info-governo {
  opacity: 1;
  transform: translateY( 0 );
}

.swiper-slide {
  opacity: .3;
  transition: opacity .4s;
  cursor: pointer;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper-button-container {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 32px;
  width: 288px;
  margin: 0 auto;
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
  /* max-width: 150px; */
}

.next,
.prev {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  border-radius: 999px;
  background-color: #d5e1e7;
  z-index: 9999;
  /* position: absolute;
  top: 120px;
  height: 20px;
  border-radius: 9999px; */
}

.next::before,
.prev::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #3f89af;
  border-bottom: 2px solid #3f89af;
  transform: rotate(45deg);
}

.prev::after {
  transform: rotate(225deg);
}

.next {
  left: 0;
}

.prev {
  right: 0;
}

.swiper-button-disabled {
  display: none;
}

p.governo {
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  margin-top: 12px;
  transition: all .4s;
}

p.info-governo {
  font-weight: lighter;
  white-space: nowrap;
  opacity: 0;
  transition: all .4s;
}


.title-secondary {
  max-width: 400px;
  padding-bottom: 50px;
}

.big-legend {
  min-width: 300px;
  max-width: 400px;
  padding-bottom: 24px;
  line-height: 1.333;
  font-family: 'Estado Fine';
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .big-legend {
    font-size: 24px;
  }
}


span.support-count {
  border-radius: 9999px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;
  text-transform: uppercase;
  font-size: 12px;
  font-family: "Lato", sans-serif;
  white-space: nowrap;
}

/* Chart div configuration */

.container, .small-multiple {
  width: 100%;
  max-width: 666px;
  font-family: 'Lato', sans-serif;
  padding: 16px 0;
  /* margin: 5px; */
}

.container {
  /* min-height: 600px; */
  min-width: 300px;
}


.bar-container {
  max-width: 650px;
}

.small-multiple {
  position: relative;
  width: 100%;
  margin-bottom: 48px;
}

.small-legend {
  max-width: 500px;
  font-family: 'Lato', sans-serif;
  color: #8fa1b2;
}

.small-legend-narrow {
  max-width: 350px;
  margin-bottom: 48px;
}

.small-multiple-title {
  padding-bottom: 24px;
}

/* Footer */

footer {

}

.footer-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #e6eaeb;
  padding: 48px 0;
  font-family: "Lato", sans-serif;
}

.rodape {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  /* margin: 5px; */
}

.analise, .metodologia {
  padding-top: 10px;
  padding-bottom: 10px;
}

.title-footer {
  text-transform: uppercase;
  color: #3f89af;
  /* padding: 5px; */
  font-size: 14px;
  margin: 32px 0 16px;
}

.footer-text {
  color: #6c849a;
  /* padding: 5px; */
  /* padding-bottom: 12px; */
  font-size: 14px;
}

.footer-text + .footer-text {
  margin-top: 16px;
}

.expediente-container {
  line-height: 1.333;
}

.expediente-cargo {
  text-transform: uppercase;
  font-weight: bold;
  color: #6c849a;
  font-size: 10px;
  padding-right: 3px;
  /* white-space: nowrap; */

}

.expediente-nome {
  font-weight: normal;
  color: #6c849a;
  font-size: 12px;
  padding-right: 3px;
}

/*
Bar chart and histogram elements
*/
.chart-container, .outer-container {
  width: 100%;
  /* max-width: 600px; */
  margin-bottom: 50px;
}

.bar-container .chart-container {
  margin-top: 48px;
}

.chart-container + .chart-container {
  margin-top: 144px;
}

rect.bar-leftward, rect.bar-rightward {
  stroke-width: 1px;
  stroke: #f1f2f2;
}

.chart-title {
  font-size: 18px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -6px;
  align-items: center;
  padding: 5px;
}

.bar-container .chart-title {
  margin-top: -16px;
}



.chart-spine {
  /* stroke-width: .25px; */
  /* stroke: #f1f2f2; */
  /* opacity: 0 */
}

.chart-support-count {
  text-transform: uppercase;
  position: relative;
  top: -16px;
}

@media (max-width: 640px) {
  .bar-container .chart-title {
    margin-top: -54px;
  }
  .chart-support-count {
    top: -54px;
  }
}

.gov-name {
  font-weight: bolder;
  margin-right: 10px;
  font-size: 20px;
  text-transform: capitalize;
  /* padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px; */
}

.mandato {
  border-radius: 9999px;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 12px;
  padding-right: 12px;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
  color: rgb(159, 174, 187);
  background-color: rgb(226, 229, 232);
}

.label-container {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 24px;
}

.label-container-bar {
  margin-left: 10%;
  margin-right: 10%;
}

.label-container-bottom {
  margin-left: 25%;
  margin-right: 25%;
}


.label-oposicao {
  color: #c441c4;

}

.label-aliado {
  color: #00a79d;
}

.scale-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  font-size: 12px;
  padding: 5px 0;
  color: #8fa1b2;
  border-bottom: 1px solid rgba(143, 161, 178, .2);
  margin-bottom: 12px;
}

.scale-container span:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hist {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 48px;
}

.group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 100%;
  /* max-width: 6px;
  min-width: 6px; */
  height: auto;
}


.block {
  width: 100%;
  padding-top: 100%;
  background-color: #fe4a49;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(241, 242, 242, 1);
}

@media (max-width: 640px) {
  .block {
    box-shadow: inset 0 0 0 0.25px rgba(241, 242, 242, 1);
  }
}

.viz-titles {
  max-width: 300px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.viz-main-title {
  text-transform: none;
  margin-bottom: 7px;
}

.viz-subtitle {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: lighter;
  margin-bottom: 7px;
}

.domain {
  visibility: hidden;
}

.tick {
  stroke-dasharray: 1,2;
}

.x-axis > .tick > line {
  visibility: hidden;
}

.tick > line {
  stroke: rgb(188, 199, 207);
}

.axis-label {
  font-size: 14px;
  fill: rgb(188, 199, 207);
  font-family: 'Lato', sans-serif;
}
.x-axis-label {
  font-size: 10px;
  font-weight: bold;
}

.count-container {
  text-transform: uppercase;
  font-size: 14px;
}

text.count-container-support {
  fill: #00a79d
}

text.count-container-opposition {
  fill: #c441c4;
}

/* Overrides awesomplete CSS */
.awesomplete > ul {
  position: absolute;
  top: 70px;
  /* border-radius: 9999px; */
}

.awesomplete > ul::before {
  top: 0;
  left: 0;
  padding: 0;
}

.awesomplete>ul {
  border: none;
  overflow: hidden;
}


.awesomplete>ul>li>mark {
  background-color: #d5e1e7;
}

.awesomplete>ul>li[aria-selected=true]>mark {
  background-color: #d5e1e7;
}

.awesomplete>ul>li[aria-selected=true],
.awesomplete>ul>li:hover {
  background-color: #d5e1e7;
  color: black;
}

.awesomplete>ul>li[aria-selected=true]>mark,
.awesomplete>ul>li:hover>mark {
  background-color: #3f89af;
}

/*
Tippy-tooltip configuration
*/
.tippy-tooltip.basometro-theme {
  /* background-color: #d5e1e7; */
  background-color: #d8e0e4;
  /* color: #fff; */
  color: #6c849a;
  font-family: "Lato", sans-serif;
}

.tippy-popper[x-placement^=top] .tippy-arrow {
  /* border-top: 8px solid #d5e1e7; */
  border-top: 8px solid #d8e0e4;
  border-top: transparent;
}

.tooltip-name {
  font-weight: bolder;
}

.tooltip-info {
  font-size: 11px;
  font-weight: 100;
  margin-left: 2px;
}

.tooltip-date {
  font-weight: lighter;
}

strong.pro {
  color: #00a79d;
  font-weight: bold;
}

strong.against {
  color: #c441c4;
  font-weight: bold;
}

/*
Loading animation
*/

.lds-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
  display: none;
  margin: 20px;
}

.loading {
  opacity: 1;
  display: inline-block;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 46px;
  height: 46px;
  margin: 1px;
  border-radius: 50%;
  border: 5px solid #d5e1e7;
  border-color: #d5e1e7 transparent #d5e1e7 transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
