/**
 * Poll widget's cascading style sheets
 *
 * @author Hristo Drumev
 * @package poll-widget
 * @copyright Hristo Drumev [www.hdrumev.com]
 * @version 1.0 / 18.08.2011
 *
 */

#poll-widget {
  width: 200px;
  height: 335px;
  border: 1px solid #ccc;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  padding: 90px 5px 5px 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  background: url(images/bg-poll.jpg) center 5px no-repeat;
  margin: 50px auto;
}
 
#poll-question {
  background: #3d68a0;
  color: #fff;
  padding: 5px 8px;
  font-size: 1.11em;
  line-height: 1.3em;
  font-weight: bold;
  -webkit-border-top-left-radius: 4px;
  -webkit-border-top-right-radius: 4px;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-topright: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: 2px solid #ffd700;
  text-align: center;
  margin: 0 0 10px 0;
}

#poll-box {
  height: 250px;
  overflow: hidden;
  position: relative;
}

#poll-answers {
  font-size: 0.9em;
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fff;
}
 
#poll-answers ol {
  margin: 0 0 15px 0;
  padding: 0;
}
 
#poll-answers li {
  width: 163px;
  margin: 2px 0;
  padding: 5px 5px 5px 30px;
  list-style: none;
  cursor: pointer;
  background-image: url(images/bg-controls.png);
  background-repeat: no-repeat;
  border: 1px solid #fff;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
} 

#poll-answers li:hover {
  border: 1px solid #d8d8d8;
}

#poll-answers li {
  color: #777;
}

#poll-answers li.checked {
  color: #555;
}

#poll-answers ol.check-box li {
  background-position: 2px 5px;
} 

#poll-answers ol.check-box li.checked {
  background-position: 2px -95px;

}

#poll-answers ol.radio-button li {
  background-position: 2px -195px;
} 

#poll-answers ol.radio-button li.checked {
  background-position: 2px -295px;
}

#poll-vote-button a {
  display: block;
  background: #3d68a0;
  color: #fff;
  height: 24px;
  line-height: 24px;
  font-size: 0.9em;
  text-align: center;
  width: 90px;
  margin-right: 15px;
  float: left;
  text-decoration: none;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  border-radius: 12px;
}

#poll-vote-button a.disabled {
  background: #aaa;
  color: #eee;
  cursor: default;
}

#poll-vote-button a.disabled:hover {
  background: #aaa;
  color: #eee;
}

#poll-vote-button a:hover {
  background: #2d4f7a;
}

#poll-view-results a {
  height: 24px;
  line-height: 24px;
  font-size: 0.8em;
  text-decoration: none;
  color: #3d68a0;
}

#poll-view-results a:hover {
  text-decoration: underline;
}

#poll-credit {
  text-align: center;
  font-size: 0.8em;
  color: #ccc;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  margin-top: 12px;
}

#poll-credit a {
  color: #ccc;
  text-decoration: none;
}

#poll-credit a:hover {
  color: #999;
}

#poll-loading {
  background: #fff url(images/loading.gif) center center no-repeat;
  position: absolute;
  width: 100%;
  height: 100%;
}

#poll-results {
  width: 100%;
  height: 100%;
  position: absolute;
  background: #fff;
}

#poll-results div.item {
  overflow: hidden;
  margin-bottom: 8px;
}

#poll-results label {
  font-size: 0.9em;
  line-height: 1.1em;
  color: #777;
  display: block;
  width: 80%;
  padding: 0 0 2px 0;
}

#poll-results div.item div {
  width: 80%;
  height: 14px;
  background: #eee;
  float: left;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

#poll-results div.item div div {
  height: 100%;
  background: #3d68a0;
}

#poll-results div.item span {
  font-size: 0.8em;
  display: block;
  width: 30px;
  height: 14px;
  line-height: 14px;
  text-align: right;
  float: right;
  color: #3d68a0;
  padding-right: 5px;
}

#poll-back-link {
  margin-top: 5px;
  text-align: right;
  padding: 0 5px 0 0;
  font-size: 0.8em;
  text-decoration: none;
  color: #3d68a0;
  float: right;
}

#poll-back-link:hover {
  text-decoration: underline;
}