/* party */

.arte-members-party {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.arte-members-party[data-collapsed="true"] section[data-collapsed="true"] {
  display: none;
}

.arte-members-party[data-collapsed="false"] .arte-expand-parties {
  display: none;
}

.arte-members-party section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 72px;
}

.arte-members-party header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.arte-members-party section h4 {
  font-size: 21px !important;
  margin: 0 !important;
  text-transform: none;
}

.arte-members-party header p {
  margin: 0 !important;
  text-transform: uppercase;
  font-weight: bold;
  font-family: 'LatoBlack';
  font-size: 12px;
  line-height: 1.666;
  color: #777;
}

.arte-members-party header .freshmen {
  /* color: #8CD1A8; */
  color: #70bec8; /* 2 shades down from colorhexa.com */
}

.arte-members-party .mural {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.arte-members-party figure {
  width: 48px;
  height: 48px;
  margin: 8px;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
}

.arte-members-party figure.freshman {
  box-shadow: 0 0 0 6px #8ccbd3;
}

.arte-members-party figure img {
  display: block;
  margin: 0 auto;
  width: 90%;
  opacity: .8;
  user-select: none;
}

.arte-content .loading {
  background: none;
}

/* tooltip */

.tippy-tooltip.lalala-theme {
  background: #393b41;
}

.tippy-tooltip.lalala-theme .tippy-roundarrow {
  fill: #393b41;
}

.tippy-member-name {
  font-weight: bold;
  opacity: .75;
}
.tippy-member-party,
.tippy-member-occupation,
.tippy-member-cost {
  font-size: 75%;
  line-height: 1.5;
  opacity: .75;
}

.tippy-member-party {
  margin-bottom: 8px;
}

.tippy-member-party span:last-child::before {
  content: ' - '
}

.tippy-member-occupation::before {
  content: 'Profissão: '
}

.tippy-member-cost::before {
  content: 'Campanha: '
}

.tippy-tooltip.lalala-theme figure {
  width: 48px;
  height: 48px;
  margin: 8px auto;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
}

.tippy-tooltip.lalala-theme figure img {
  display: block;
  margin: 0 auto;
  width: 90%;
  opacity: .8;
  user-select: none;
}

.arte-members-categories .dot[aria-describedby^="tippy"]::before {
  border: 2px solid #333;
}

/* categories */

.scrolly {
	position: relative;
}

.scrolly .graphic {
	position: -webkit-sticky;
	position: sticky;
	float: right;
	top: 0;
	right: 0;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
          justify-content: flex-end;
  z-index: 1;
}

.scrolly .chart {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 500px;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.scrolly .text {
  position: relative;
  padding: 0 1rem;
  width: calc(100% - 378px);
}

.scrolly .step {
  width: 100%;
	margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.scrolly .step p {

}

.arte-members-categories {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 96px 0;
}

.arte-members-categories .dot-container {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  width: 378px;
  height: 266px;
}

.arte-members-categories .dot {
  width: 14px;
  height: 14px;
  position: relative;
}

.arte-members-categories .dot::before {
  content: '';
  position: absolute;
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 1px;
  background: #e0e0e0;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background-color .4s, border-color .2s;
}

@media (max-width: 640px) {

  .scrolly .text {
    width: calc(100% - 190px);
  }

  .arte-members-categories .dot-container {
    width: 189px;
    height: 133px;
  }

  .arte-members-categories .dot {
    width: 7px;
    height: 7px;
  }

}

/* coloring */

.dot-container[data-category="Militar?"] .dot[data-value="SIM"]::before {
  background: #8CD1A8;
}

.dot-container[data-category="Sexo"] .dot[data-value="Masculino"]::before {
  background: #CCA6E0;
}

.dot-container[data-category="Sexo"] .dot[data-value="Feminino"]::before {
  background: #EDD096;
}

.dot-container[data-category="Nº mandatos"] .dot::before {
  /* background: #8ccbd3; */
}

.dot-container[data-category="Nº mandatos"] .dot[data-value="1"]::before {
  background: #8ccbd3;
}

.dot-container[data-category="Apoio governo"] .dot[data-value="Governo"]::before {
  background: #8CD1A8;
}

.dot-container[data-category="Apoio governo"] .dot[data-value="Em negociação"]::before {
  background: #8ccbd3;
}

.dot-container[data-category="Apoio governo"] .dot[data-value="Oposição"]::before {
  background: #FE9191;
}

.dot-container[data-category="Apoio governo"] .dot[data-value="Independente"]::before {
  background: #EDD096;
}

.dot-container[data-category="Apoio governo"] .dot[data-value="Neutro"]::before,
.dot-container[data-category="Apoio governo"] .dot[data-value="Independente ou Neutro"]::before {
  /* background: #ccc; */
}

/* for texts */

.arte-content .category[data-category="militar"] {
  color: #70c693;
}

.arte-content .category[data-category="masculino"] {
  color: #CCA6E0;
}

.arte-content .category[data-category="feminino"] {
  color: #E2B968;
}

.arte-content .category[data-category="veterano"] {
  /* color: #8ccbd3; */
}

.arte-content .category[data-category="novato"] {
  color: #8ccbd3;
}

.arte-content .category[data-category="Governo"] {
  color: #70c693;
}

.arte-content .category[data-category="Em negociação"] {
  color: #8ccbd3;
}

.arte-content .category[data-category="Oposição"] {
  color: #FE9191;
}

.arte-content .category[data-category="Independente"] {
  color: #EDD096;
}

.arte-content .category[data-category="Neutro"],
.arte-content .category[data-category="Independente ou Neutro"] {
  /* color: #ccc; */
}
