/* =============================================================================
   Peilingen
   ========================================================================== */
#peilingen {
  margin: 0 0 18px 0;
}
li.partij,
li.coalitie,
li.uitslag {
  width: 30%;
  float: left;
  display: block;
  margin: 10px 10px 0 0;
  padding: 0;
  text-align: center;
  margin-bottom: 0 !important;
  border: 1px solid #ababab;
}
li.partij ul,
li.coalitie ul,
li.uitslag ul {
  clear: both;
  height: 200px;
  display: block;
  margin-bottom: 0 !important;
  background-color: #efefef;
}
li.partij ul li,
li.coalitie ul li,
li.uitslag ul li {
  position: relative;
  /*
  3 kolommen: 45px
  4 kolommen: 33px
  5 kolommen: 25px
  */
  width: 16.66%;
  height: 200px;
  list-style: none;
  float: left;
  margin: 0;
  margin-bottom: 0 !important;
}
li.coalitie ul li {
  width: 20%;
}
li.uitslag ul li {
  width: 50%;
}
li.partij ul li .bar,
li.coalitie ul li .bar,
li.uitslag ul li .bar {
  display: block;
  /*
  3 kolommen: 45px
  4 kolommen: 33px
  5 kolommen: 25px
  */
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  text-align: center;
  margin-bottom: 0 !important;
}

li.partij img,
li.coalitie img,
li.uitslag img {
  margin-bottom: 0 !important;
}

li.partij ul span,
li.coalitie ul span,
li.uitslag ul span {
  font-weight: bold;
}
li.partij ul span i,
li.coalitie ul span i,
li.uitslag ul span i {
  color: #0a88ca;
}
#legenda li.tk2012,
ul li.tk2012 .bar,
#legenda li.tk2017,
ul li.tk2017 .bar {
  background-color: #bebebe;
}
#legenda li.synovate,
li.partij ul li.synovate .bar,
li.coalitie ul li.synovate .bar{
  background-color: #efd94f;
}
#legenda li.io-research,
li.partij ul li.io-research .bar,
li.coalitie ul li.io-research .bar{
  background-color: #A36CC8;
}
#legenda li.kantar-public,
li.partij ul li.kantar-public .bar,
li.coalitie ul li.kantar-public .bar {
  background-color: #4bafe4;
}
#legenda li.dehond,
li.partij ul li.dehond .bar,
li.coalitie ul li.dehond .bar {
  background-color: #8bbf00;
}
#legenda li.destemming,
li.partij ul li.destemming .bar,
li.coalitie ul li.destemming .bar {
  background-color: #ec570d;
}
h2 {
  margin-top: 36px;
  clear: both;
}
ul {
  margin: 0;
  clear: both;
}
ul li {
  border: 0;
}
#legenda {
  list-style: none;
  margin: 20px 0 0 0;
  display: block;
}
#legenda li {
  display: block;
  float: left;
  margin: 0 4px 4px 0;
  padding: 2px 4px;
  font-weight: bold;
  text-align: center;
  font-size: 12px;
  margin-bottom: 0 !important;
}
#legenda li img {
  width: 140px;
  height: 36px;
}
#legenda li span {
  display: block;
  font-weight: normal;
  font-size: 11px;
  margin-bottom: 0 !important;
}
.widget li.partij,
.widget li.coalitie {
  margin: 10px 10px 0 0;
  width: 45%;
}
.widget #legenda,
.widget #legenda li {
  margin: 0;
  font-size: 12px;
}

body.uitslag #legenda li.tk2012,
body.uitslag ul li.tk2012 .bar {
  background-color: #BEBEBE;
}

@media screen and (max-width: 640px) {

  /* Size peilingen */
  li.partij,
  li.coalitie,
  li.uitslag {
      width: 45% !important;
  }
  .widget li.partij,
  .widget li.coalitie {
      width: 45% !important;
  }

}
