/* @override 
	https://civicscience-css.s3.amazonaws.com/clients/pg/css/new_style.css
	https://civicscience-widgets.s3.amazonaws.com/pg/post-gazette-main-v3.css */

.ballotbox,
.ballotbox div,
.ballotbox span, 
.ballotbox form, 
.ballotbox label, 
.ballotbox input,
.ballotbox .poll_title,
.ballotbox .poll_body,
.ballotbox .question_text,
.ballotbox .answer,
.ballotbox .answer .control,
.ballotbox .answer .answer_text,
.ballotbox .result,
.ballotbox .result .percent,
.ballotbox .result .answer_text,
.ballotbox .buttons,
.ballotbox .detailed_results,
.ballotbox .wrap_up {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
	width: auto;
	color: #333; 
	text-decoration: auto;
	text-align: left;
}

.ballotbox {
	font-family: Arial, sans-serif;
	background-color: #f0f5f1;
	color: #333;
	margin: 10px 0 20px 0;
	width: 300px;
	font-size: 12px;
	min-height: 100px;
	display: table;
}

.civicscience.ballotbox .poll_body.loading {
    display: none;
}

.loading:before,
.loading:after,
.loading {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loading {
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loading:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loading:after {
  left: 3.5em;
}
.loading:before,
.loading:after {
  content: '';
  position: absolute;
  top: 0;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em #26283d;
  }
  40% {
    box-shadow: 0 2.5em 0 0 #26283d;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em #26283d;
  }
  40% {
    box-shadow: 0 2.5em 0 0 #26283d;
  }
}

.ballotbox .poll_body{
	padding: 10px;
}

.ballotbox .header {
  font-size: 18px;
  margin: 0;
  padding: 5px 10px;
  color: #fff;
  background-color: #00a85b;
  font-family: serif;
  background-repeat: no-repeat;
  background-position: right;
}

.ballotbox .question_text {
	font-size: 13px;
	  font-weight: 700;
	  line-height: 16px;
	  color: #555 !important;
	  padding: 6px 0 0 !important;  
}

.ballotbox ul.answer_options {
	margin: 4px 0 4px 0;
	list-style: none;
	padding: 1px 0;
}

/****************** @group Desktop Widget *******************/

.ballotbox.click ul.answer_options li {
	margin: 8px 0;
	color: #333333;
}

.ballotbox.click ul.answer_options li label {
	font-size: 13px;
	color: #666;
	font-weight: 400;
	cursor: pointer;
	display: table;
}

.ballotbox.click ul.answer_options li input[type="radio"] {
	display: table;
	float: left;
	width: 16px;
	margin: 1px 10px 0 0;
	font-size: 12px;
}

.ballotbox.click ul.answer_options li input[type="checkbox"] {
	margin: 0px 8px 0 0;
    float: left;
}


/*************** @group END Touch Widget ******************/

.ballotbox input.submit{
	  border: 1px solid #ddd;
	  -webkit-border-radius: 3px;
	  -moz-border-radius: 3px;
	  background-color: #eee;
	  background-image: -moz-linear-gradient(100% 100% 90deg, #ddd, #eee);
	  background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#fff), to(#eee));
	  background-position: 0 0;
	  height: 23px;
	  color: #666;
	  padding: 2px 10px;
}

.ballotbox input.submit:hover{
	cursor: pointer;
	opacity: .8;
}

/*************** @group Answer portion of the widget ******************/

.ballotbox .answer_results {
	display: table;
	width: 100%;
	font-weight: normal;
	margin: 8px 0 4px;
	font-size: 13px;
}

.ballotbox .answer_results .answer {
	padding: 4px 0;
}

.ballotbox .answer_percentage {
	width: 40px;
	float: left;
	color: #666 !important;
}

.ballotbox .answer_text {
	display: table;
	margin: 0 0 10px;
	border-bottom: 1px solid #ddd;
	color: #666 !important;
}

.ballotbox .progress_bar {
	font-size: 9px;
	color: #000;
	font-weight: normal;
	float: left;
	width: 140px;
	margin: 10px 0;
}

.ballotbox.question_1 .progress_bar::before {
	padding: 12px;
	font-size: 10px;
	color: grey;
	content: "Post-Gazette Question";
}

.ballotbox.question_2 .progress_bar::before {
	padding: 12px;
	font-size: 10px;
	color: grey;
	content: "Research Question";
}

.ballotbox.question_3 .progress_bar::before {
	padding: 12px;
	font-size: 10px;
	color: grey;
	content: "Research Question";
}

.ballotbox.question_4 .progress_bar::before {
	padding: 12px;
	font-size: 10px;
	color: grey;
	content: "Research Question";
}

.ballotbox .controls {
	height: 20px;
	margin: 8px 0 10px 0;
	display: table;
	width: 100%;
}

.ballotbox .controls .next {
	float: right !important;
	border: 1px solid #ddd;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	background-color: #eee;
	background-image: -moz-linear-gradient(100% 100% 90deg, #ddd, #eee);
	background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#fff), to(#eee));
	background-position: 0 0;
	height: 23px;
	color: #666;
	padding: 8px 14px 0;
	color: #333;
	cursor: pointer;
}

.ballotbox .controls .next::after {
	content: ">>";
}

.ballotbox .controls .previous {
	float: left;
	border: 1px solid #ddd;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	background-color: #eee;
	background-image: -moz-linear-gradient(100% 100% 90deg, #ddd, #eee);
	background-image: -webkit-gradient(linear, 0% 0, 0% 100%, from(#fff), to(#eee));
	background-position: 0 0;
	height: 23px;
	color: #666;
	padding: 8px 14px 0;
	color: #333;
	cursor: pointer;
}

.ballotbox .controls .previous::after {
	content: "<<";	
}

.ballotbox .detailed_results{
	margin: 6px 0 0;
	position: absolute;
	background: #f0f5f1;
	padding: 10px 0;	
	font-size: 11px;
	width: 150px;
}
.ballotbox .detailed_results a{
	color: #00a85b !important;
	text-decoration: none;
	font-size: 11px;
}

.ballotbox div.wrap_up{
	margin: 12px 0 16px;
}

.ballotbox div.wrap_up .end_title{
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 10px;
}

.ballotbox div.wrap_up .end{
	font-size: 12px;
}

.ballotbox div.wrap_up a{
	color: #2171b8;	
	text-decoration: none;
}

.ballotbox .footer {
	font-size: 9px;
	color: #000;
	font-weight: 300;
	float: right;
	padding: 0 0 10px;
}

.ballotbox .footer .footer_text{
	width: 70px;
	color: grey;
	font-size: 9px;
}
