@font-face {
    font-family: 'benton-sans-regular'; /*a name to be used later*/
    src: url('https://fonts.advance.net/fonts/v1/benton-sans-regular/166b5d40-3430-46a0-8fb2-43f30962dec7-3.woff'); /*URL to font*/
}

@font-face {
    font-family: 'benton-sans-medium'; /*a name to be used later*/
    src: url('https://fonts.advance.net/fonts/v1/benton-sans-medium/448c4642-c106-472f-9c6a-a4d7b5347b03-3.woff'); /*URL to font*/
}

@font-face {
    font-family: 'benton-sans-bold'; /*a name to be used later*/
    src: url('https://fonts.advance.net/fonts/v1/benton-sans-bold/a408f907-3ee4-4578-a3d1-4134558cb82a-3.woff'); /*URL to font*/
}

body {
  font-family: "Benton Sans",Arial,sans-serif;
  display: block;
  margin: 0 2px;

  line-height: 1.5;
/*margin: 20px;*/
font-size: 14px;


}
h2 {
  font-weight: 700;
  margin: 0 0 20px 0;
}

.credit {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

.explainer {
  padding: 10px 0;
}

.updated {
  font-weight: bold;
  margin-top: 7px;
  font-size: 12px;
}


span.refreshtext {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.refresh-icon {
  max-width: 400px;
}


a {
  color: #555;
  font-size: 15px;
  text-decoration: underline;
  margin: 0;
  padding: 0;
  
}

a:hover {
  color: #555;
  
  
}

a:active {
  text-decoration: none;

}

/* ---- button ---- */

.button {
  display: inline-block;
  padding: 0.5em 1.0em;
  background: #EEE;
  border: none;
  border-radius: 7px;
  background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
  color: #222;
  font-family: "Benton Sans",Arial,sans-serif;
  font-size: 15px;
  text-shadow: 0 1px white;
  cursor: pointer;
}

.button:hover {
  background-color: #8CF;
  text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
  color: #222;
}

.button:active,
.button.is-checked {
  background-color: #ED204C;
}
}

.button.is-checked {
  color: white;
  text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
  background-color: #ED204C;
}

.button:active {
  box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
  background-color: #ED204C;
}

.btn {
  font-size: 16px;
}

/* ---- button-group ---- */

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  float: left;
  border-radius: 0;
  margin-left: 0;
  margin-right: 1px;
}

.button-group .button:first-child { border-radius: 0.5em 0 0 0.5em; }
.button-group .button:last-child { border-radius: 0 0.5em 0.5em 0; }

/* ---- isotope ---- */


/* clear fix */
.isotope:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- #element-item ---- */

#element-item {
  position: relative;
  float: left;
  font-family: "Benton Sans",Arial,sans-serif;
  width: 100%;
  height: auto;
  margin: 15px 0 25px 0;
 /* margin: 2px;*/
/*  padding: 2px;*/
  /*border: 1px solid #616161;*/
  background: rgba( 253, 253, 253, 0.9);
  color: #5C564B;
  /*box-shadow: 1px 1px 1px #999999;*/
}

#element-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

table { 

  margin: 10px 0 15px 0;

  border-collapse: collapse; border-spacing: 0; }

th {

  text-transform: uppercase;
  color: #666;
  font-size: 12px;
  text-align: left;
}


td, th {

   padding: 0.5em 1em; 
    color: #333;
}

.magicbars {
  padding: 0.5em 3.7em 0.5em 0.3em; 
}

.chart div {
  font: 12px sans-serif;
  background-color: #B9CF41;
  text-align: right;
  padding: 3px;
  color: #000;
}

.question {
  margin: 10px 0;
  font-size: 16px;
  color: #666;
  text-transform: uppercase;
}

.label {
  margin-right: -47px;

}

.circle, .circlelegend {
    background: #B9CF41;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: table-cell;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  color: #333;
  margin-left: 3px;
  float: right;

}

.circlelegend { 
  float: left;
  margin-right: 3px;
  


}

.circlelegend:after { 
  
   clear: both;

}

.REP {
   background-color: #b71010;
  color: #fff;
  text-align: center;
  padding: 0.5em 0em;
/*  margin: 0 5px;*/
 

 /* display: inline-block;
    border-radius: 70%;*/

}

.DEM {

   background-color: #113791;
  color: #fff;
  text-align: center;
  padding: 0.5em 0em;

 /* display: inline-block;
    border-radius: 70%;*/

}

/*td.REP, td.DEM {
  width: 10px!important;
}*/

th.party {
  padding: 0;
  margin: 0;
}
th.votes, td.votes {
  padding: 0.5em 0.5em 0.5em 1em;
}
.REPUBLICAN {
   background-color: #b71010;
  color: #fff;
  text-align: center;
  padding: 0.5em 0em;
  font-size: 13px;
/*  margin: 0 5px;*/
 

 /* display: inline-block;
    border-radius: 70%;*/

}

.DEMOCRAT {

   background-color: #113791;
  color: #fff;
  text-align: center;
  padding: 0.5em 0em;
  font-size: 13px;

 /* display: inline-block;
    border-radius: 70%;*/

}

.precincts {/*
  border-style: solid;
  border-width: 0px 0 1px 0;*/
  color: #333;
  font-style: italic;
  font-size: 13px;
  padding: 10px 10px 10px 10px;
  margin-bottom: 10px;
}

.party_title {
  width: 50%;
  text-align: left!important;
  padding-left: 1.5em;
}

/*.winner_border {
  border: 0.5px solid rgba(198, 198, 198, 0.6);
  box-shadow: 0.5px 0.5px 0.5px #999999;

}*/

small {
  font-size: 13px;
  color: #333;
  font-weight: normal;
  text-transform: none;
}



#element-item .town {
  display: inline-block;
  font-size: 15px;
  background-color: #B9CF41;
  padding: 8px 18px;
  color: #4D4D4E;
  font-weight: bold;
  width: auto;
  font-family: "Benton Sans",Arial,sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;

}


#element-item img {
  border: 1px solid #333;
}


#element-item .readmore, #element-item .readmore a {
  font-weight: 700;
  color: #800000;
  font-size: 12px;
}

#element-item .description {
  padding-top: 10px;
  padding-bottom: 10px;
}


#element-item .term {
font-size: 12px;
font-weight: 700;
color: #888;

}
#element-item .race {
  color: #333;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  padding-top: 5px;

}

.is-checked {
  background-color: #ebebeb;
}


#element-item .seat {
  font-weight: 700;
  color: #9fb71b;

}

#element-item .location {
  font-weight: 700;
}

#element-item .date, #element-item .description  {
  font-size: 13px;

}

#database {
  margin-top: 15px;
}

.page-header {
  padding: 0px;
  margin: 0px;
}





@media screen and (min-width: 1000px) {
  body {
    width: 1000px;
  }
}

@media (max-width: 850px) {
   #element-item {
  width: 100%;
}

}

@media (max-width: 520px) {
   #element-item {
  width: 100%;
}

h2 {
  font-size: 1.6em
}
.btn-default  {
  font-size: 0.9em;
}

td, th {

   padding: 0.5em 0.5em; 
    color: #333;
}


.question {
  font-size: 12px;
}

.label {
  margin-right: -39px;
}

.chart div {
  font-size: 0.8em;
}


body {
  font-size: 1.2em;
}

#element-item .boldsubhed, #element-item .description {
font-size: 1.0em;

}
#element-item .category {
  font-size: 1.2em;
  padding: 5px 15px;
}
#element-item .name {

  font-size: 1.1em;

}
}

@media (max-width: 320px) {
   #element-item {
  width: 100%! important;
}


.btn-default {
  font-size: 1em;
}

body {
  font-size: 1.2em;
  margin: 5px;
}

h2 {
  font-size: 1.9em;
}

#element-item img {
  height: 120px;


}

}