/**
 * Estilos Módulo Apuração Eleições
 * 
 * Outubro 2020
 * 
 */
/*

   VARIABLES

*/
@font-face {
  font-display: swap;
  font-family: "BentonSansCondensed";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/BentonSansCondensed-Bold.woff") format("woff");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  background-size: cover;
  height: auto;
  max-width: 100%;
}
body {
  font-family: Arial, 'Liberation Sans', sans-serif;
  font-size: 11px;
  line-height: 1.2em;
}
a {
  text-decoration: none;
  color: inherit;
}
.show_mobi,
#bluebox_mobi {
  display: block;
}
.hide_mobi,
#bluebox {
  display: none;
}
.blur {
  filter: blur(10px);
}
#erro_fetch {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 44px;
  width: 100%;
  height: 208px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#erro_fetch p {
  font-family: "BentonSansCondensed";
  font-size: 1.6em;
  font-weight: bold;
}
#erro_fetch a {
  margin-top: 1em;
  padding: 0.5em 1em;
  background-color: #2FA4FF;
  border-radius: 6px;
  display: block;
  color: #fff;
}
main {
  width: 100%;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #838383;
  padding: 12px 20px;
}
header div#header__container {
  display: flex;
  align-items: center;
  width: 100%;
}
header div#header__container h1 {
  width: 110px;
  line-height: 0;
}
header div#header__container span:last-child {
  margin-left: auto;
  color: #414142;
}
/**
 * Wrapper Municipios 
 *
 * - No mobile terá o comportamento de swipe, por isso o overflow auto e o flex-wrap
 */
#municipios_apuracao {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  height: 208px;
  padding: 4px 10px;
}
section.municipios {
  border-radius: 6px;
  box-shadow: 0 0 8px #00000038;
  padding: 15px;
  flex-basis: 240px;
  flex-shrink: 0;
  min-height: 200px;
  margin-right: 10px;
}
section.municipios h3 {
  margin: 0;
  font-family: "BentonSansCondensed";
  font-size: 16px;
  line-height: 15px;
  color: #414142;
}
section.municipios h3 span {
  font-size: 13px;
  color: #B8B8B8;
}
section.municipios h3 + p {
  color: #6D6F71;
  margin: 5px auto;
  line-height: 12px;
}
section.municipios .bar {
  margin-top: 4px;
  position: relative;
  line-height: 0;
  width: 100%;
  height: 3px;
  background-color: #E7E7E7;
}
section.municipios .bar span {
  position: absolute;
  display: inline-block;
  width: 50%;
  height: 3px;
  background-color: #414142;
}
section.municipios article {
  display: flex;
  margin-top: 10px;
}
section.municipios article figure {
  margin: 0 10px 0 0;
  flex-shrink: 0;
}
section.municipios article figure img {
  height: 35px;
  width: 35px;
}
section.municipios article .info {
  flex-grow: 1;
}
section.municipios article .info h4 {
  font-size: 12px;
  line-height: 12px;
}
section.municipios article .info h4 + p {
  font-size: 10px;
  color: #6D6F71;
  font-weight: normal;
}
section.municipios article .info .info__percent {
  display: flex;
  color: #0090FF;
  font-size: 13px;
  font-weight: bold;
}
section.municipios article .info .info__percent .info__percent__votos {
  font-weight: normal;
  font-size: 11px;
  color: #6D6F71;
  display: none;
}
section.municipios article .info .info__percent .info__percent__status {
  display: inline-block;
  background-color: #ECECEC;
  color: #6D6F71;
  font-size: 10px;
  margin-left: auto;
  line-height: 1em;
  border-radius: 3px;
  padding: 3px;
}
section.municipios article .info .info__percent .info__percent__status--st {
  background-color: #ECECEC;
  font-weight: bold;
  color: #6D6F71;
}
section.municipios article .info .info__percent .info__percent__status--e {
  background-color: #414142;
  font-weight: bold;
  color: #fff;
}
section.municipios article .info .info__bar {
  position: relative;
  line-height: 0;
  width: 100%;
  height: 2px;
  background-color: #E7E7E7;
  margin-top: 2px;
}
section.municipios article .info .info__bar span {
  position: absolute;
  display: inline-block;
  width: 50%;
  height: 2px;
  background-color: #0090FF;
}
section.municipios article .info .info__votos {
  font-size: 11px;
  line-height: 12px;
  color: #6D6F71;
}
section.municipios article + article {
  margin-top: 16px;
}
section#filler {
  padding: 15px;
  min-width: 20px;
  height: 200px;
}
/**
 * #bluebox_mobi -> só aparece ABAIXO do @SM-DESK-BREAKPOINT
 * #bluebox (quadrado lateral com display flex) -> só aparece ACIMA do @SM-DESK-BREAKPOINT
 * 
 */
#bluebox,
#bluebox_mobi {
  padding: 10px;
}
#bluebox a,
#bluebox_mobi a {
  text-decoration: none;
}
#bluebox #box,
#bluebox_mobi #box {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #2FA4FF;
  color: #fff;
  font-family: "BentonSansCondensed";
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
  border-radius: 6px;
  width: 300px;
  height: 50px;
}
#bluebox #box #icon_list,
#bluebox_mobi #box #icon_list {
  width: 27px;
  height: 21px;
  margin-right: 10px;
}
#bluebox #box p,
#bluebox_mobi #box p {
  width: 230px;
}
#bluebox_mobi {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 661px) {
  #erro_fetch p {
    font-size: 2em;
  }
  section#filler {
    display: none;
  }
}
@media (min-width: 769px) {
  .show_mobi {
    display: none;
  }
  .hide_mobi {
    display: block;
  }
  header {
    padding: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  }
  header div#header__container {
    width: 620px;
    height: 44px;
    justify-content: space-between;
  }
  header div#header__container h1 {
    width: 135px;
  }
  header div#header__container span#apuracao {
    font-family: "BentonSansCondensed";
    font-size: 17px;
    color: #414142;
  }
  header div#header__container span:last-child {
    margin-left: 0;
  }
  #municipios_apuracao {
    width: 620px;
    margin: 0 auto;
    flex-wrap: wrap;
    flex-shrink: 0;
    height: auto;
    padding: 0 0;
  }
  section.municipios {
    border-radius: unset;
    box-shadow: unset;
    flex-basis: 200px;
    flex-grow: 1;
    margin-right: 0;
    border-right: 1px solid #0000001A;
    padding: 15px 10px 0;
  }
  section.municipios:first-child {
    padding-left: 0;
  }
  section.municipios article .info h4 {
    line-height: 14px;
  }
  section.municipios article .info h4 + p {
    margin-top: 2px;
  }
  section.municipios article .info .info__percent {
    justify-content: space-between;
    align-items: center;
  }
  section.municipios article .info .info__percent .info__percent__status {
    margin-left: 0;
  }
  #bluebox_mobi {
    border-top: 1px solid #0000001A;
  }
}
@media (min-width: 1025px) {
  #erro_fetch {
    top: 80px;
  }
  #bluebox_mobi {
    display: none;
  }
  main {
    border-bottom: 1px solid #0000001A;
  }
  main header {
    height: 80px;
    align-items: flex-end;
  }
  main header div#header__container {
    width: 940px;
    height: 49px;
    border-top: 1px solid #0000001A;
  }
  main header div#header__container #apuracao {
    font-size: 18px;
  }
  main #municipios_apuracao {
    width: 940px;
  }
  main section.municipios {
    flex-basis: 230px;
    height: 230px;
  }
  main section.municipios h3 {
    font-size: 16px;
  }
  main section.municipios h3 span {
    font-size: 11px;
  }
  main section.municipios article {
    margin-top: 15px;
  }
  main section.municipios article figure img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
  }
  main section.municipios article .info .info__percent {
    font-size: 14px;
  }
  main section.municipios article .info .info__percent .info__percent__votos {
    display: none;
  }
  main section.municipios article .info .info__percent .info__percent__status {
    margin-left: auto;
  }
  main section.municipios article .info .info__votos {
    display: block;
  }
  main section.municipios article + article {
    margin-top: 23px;
  }
  main #bluebox {
    flex-basis: 230px;
    flex-grow: 1;
    height: 230px;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  main #bluebox #box {
    align-items: flex-start;
    width: 200px;
    height: 100px;
    font-size: 17px;
    line-height: 20px;
    padding: 25px 20px;
    margin-left: 20px;
  }
  main #bluebox #box #icon_list {
    min-width: 37px;
    height: 27px;
  }
}
@media (min-width: 1240px) {
  main header div#header__container {
    width: 1240px;
  }
  main header div#header__container #apuracao {
    font-size: 19px;
  }
  main #municipios_apuracao {
    padding: 0 0;
    width: 1240px;
  }
  main section.municipios {
    flex-basis: 310px;
    height: 210px;
    margin-right: 0;
  }
  main section.municipios h3 span {
    font-size: 12px;
  }
  main section.municipios article .info h4 {
    font-size: 13px;
  }
  main section.municipios article .info .info__percent .info__percent__votos {
    display: block;
  }
  main section.municipios article .info .info__percent .info__percent__status {
    margin-left: 0;
  }
  main section.municipios article .info .info__votos {
    display: none;
  }
  main section.municipios article + article {
    margin-top: 14px;
  }
  main #bluebox {
    height: 200px;
    margin-right: 0;
  }
  main #bluebox #box {
    width: 240px;
  }
  main #bluebox #box #icon_list {
    margin-right: 18px;
  }
}
