body
{
	background-color: #213A8F;
	font-family: Open sans;
	color: #333;
}

h1, h2, h3, h4, h5, h6
{
	margin-top:0;
}

.padding-medium
{
	padding: 10px;
}

.phone-only
{
	display: none;
}

.spinner {
	height:16px;
	width:16px;
	background-image: url('../img/spinner.gif');
	display: inline-block;
}

.election-dot {
	display: inline-block;
	height: 17px;
	width: 15px;
	background-image: url('../img/favorite-dots.png');
	background-position: -6px -68px;
	position: relative;
	top: 4px;
	margin-right: 7px;
}

.election-bg {
	padding: 3px 5px;
	border-radius: 3px;
}

.election-bg a:hover {
	background: none !important;
	text-decoration: underline !important;
}

.election-bg.type-1 {
	background-color: #ebe98b;
}
.election-bg.type-2 {
	background-color: #bcecff;
}
.election-bg.type-3 {
	background-color: #fff;
}

.election-dot.type-2 {
	background-position: -6px -38px;
}

.election-dot.type-3 {
	background-position: -6px -98px;
}

/**
 * Header
 */

img.logo {
	margin-top: 28px;
}

#main-menu {
	margin-top: 32px;
}

#top-menu .nav li {
	float:right;
	margin-left: 8px;
}

#top-menu li a {
	float: left;
	color: white;
	text-decoration: none;
	text-shadow: 1px 1px 0px #6F2382;
	font-weight: bold;
	font-size: 13px;
	line-height: 22px;
	padding: 4px;
}

#top-menu li a:hover {
	background: #501E70;
	-moz-border-radius-topleft: 3px;
	-moz-border-radius-topright: 3px;
	-moz-border-radius-bottomright: 3px;
	-moz-border-radius-bottomleft: 3px;
	-webkit-border-radius: 3px 3px 3px 3px;
	border-radius: 3px 3px 3px 3px;
}

#top-menu .item-about {
	background: url('../img/moderaterna-sprite.png') 0 -612px;
	width:100px;
}

#top-menu .item-about a {
	color: #501E70;
	text-shadow: none;
	height: 31px;
	margin: 0px;
	padding: 3px 1px 3px 7px;
	float:none;
}

#top-menu .item-about a:hover {
	background: url('../img/moderaterna-sprite.png') -106px -612px;
	border: none;
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 0px;
	-moz-border-radius-bottomright: 0px;
	-moz-border-radius-bottomleft: 0px;
	-webkit-border-radius: 0px;
	border-radius: 0px;
}

#top-menu .item-organizations {
	background: url('../img/moderaterna-sprite.png') -1px -509px;
	height: 66px;
	width: 145px;
	margin: 0px;
	padding: 0px;
}

#top-menu .item-organizations:hover {
	background-position: -153px -509px;
}

#top-menu .item-organizations a {
	font-family: Open Sans;
	font-weight: normal;
	display: inline-block;
	font-size: 12px;
	color: #333;
	width: 87px;
	height: 48px;
	padding: 5px 0 0 52px;
	text-shadow: 1px 1px 0px white;
	filter: dropshadow(color=#FFFFFF,offx=1,offy=1);
	filter: alpha(opacity = 100)	9;
	line-height: 18px;
}

#top-menu .item-organizations a:hover {
	background: none;
}

.navbar-inner {
	background: #F6F6F6;
	background: -moz-linear-gradient(top,white 0%,#F6F6F6 21%,lightGrey 100%);
	background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,white),color-stop(21%,#F6F6F6),color-stop(100%,lightGrey));
	background: -webkit-linear-gradient(top,white 0%,#F6F6F6 21%,lightGrey 100%);
	background: -o-linear-gradient(top,white 0%,#F6F6F6 21%,lightGrey 100%);
	background: -ms-linear-gradient(top,white 0%,#F6F6F6 21%,lightGrey 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',endColorstr='#d3d3d3',GradientType=0);
	background: linear-gradient(top,white 0%,#F6F6F6 21%,lightGrey 100%);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border-style: solid solid none;
	border-color: #E2E2E2 #E2E2E2;
	border-width: 1px 1px 0;
	box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.25);
}

.navbar-inner a.brand {
	padding: 19px 17px;
	font-family: Open Sans;
}

.navbar-inner .nav li {
	line-height: 40px;
}

.navbar-search .search-query {
	margin-top:8px;
	height: 20px;
	font-family: Open Sans;
	font-size: 15px;
	color: #999;
	padding: 5px 39px 5px 15px;
	border-top-left-radius: 15px;
	border-bottom-left-radius: 15px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	width: 140px;
}

.navbar-search.input-append .btn {
	border: none;
	background: url('../img/moderaterna-sprite.png') 0 0;
	box-shadow: none;
	text-indent: -9999px;
	width: 34px;
	height: 31px;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0px;
	margin: 8px 0 0;
	padding: 0px;
}

.navbar-search.input-append .btn:hover {
	background: url('../img/moderaterna-sprite.png') 0 -44px;
	-webkit-transition: none;
	-moz-transition: none;
	-o-transition: none;
	transition: none;
}
/**
 * Content
 */
.box {
	background-color: #F8F8F8;
	border-radius: 2px;
	-webkit-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.25);
	-moz-box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.25);
	box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.25);
	padding:17px;
	margin-bottom: 10px;
	position:relative;
}

.tt img {
	display: block;
	margin:0 auto;
	max-width: 60%;
}

.videoWrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
	margin-bottom:15px;
}

.videoWrapper object,
.videoWrapper embed,
.videoWrapper iframe   {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.image.box {
	background-color: #fff;
	padding:6px;
	height:234px;
}

.image.box img {
	display:block;
	margin: 0 auto;
	max-height: 100%;
}

h1 {
	font-family: Open Sans;
	font-size: 28px;
	line-height: 43px;
}

.sort-candidates {
	text-align: right;
}

.span4.candidate {
	text-align: center;
}

.social-share {
	position:absolute;
	bottom: 14px;
	right: 20px;
}

.social-share > div {
	float:left;
}

ul.elections {
	list-style-type: none;
	margin-left: 0;
}

	ul.elections > li
	{
		margin-bottom: 7px
	}

		.elections > li h3
		{
			margin-bottom: .2em;
		}

		.elections > li p
		{
			font-size: .9em;
			margin: 0 0 .2em;
		}

		ul.elections > li.type-1 > *
		{
			background-color: #ebe98b;
		}

		ul.elections > li.type-2 > *
		{
			background-color: #bcecff;
		}

		ul.elections > li.type-3 > *
		{
			background-color: #fff;
		}

		ul.elections > li > *, .voting-info
		{
			padding: 5px 10px;
			border: 1px solid #ccc;
			background-color: #fff;
			display: block;
			color: #333;
		}

			ul.elections > li > div:hover, ul.elections > li > a:hover
			{
				text-decoration: none;
				background-color: #dedede;
			}

.candidates-list {
	list-style-type: none;
}

.ui-droppable {
	padding: 10px 0;
}
.ui-draggable {
	cursor: move; 
}

/**
 * Sidebar
 */
.typeahead.candidate {
	width:93%;
	background-repeat: no-repeat;
	background-position: 97% 50%;
}

.quick-facts {
	list-style-type: none;
	margin-left: 0;
}

.quick-facts b {
	width:140px;
	display: inline-block;
}

.twitter-candidate ul {
	list-style-type: none;
	margin-left: 0;
}

.twitter-candidate ul li {
	background: #fff;
	padding:5px 8px;
	border:1px solid #ccc;
	margin-bottom: 7px;
}

.twitter-user-description {
	background: #fff;
	padding:10px 15px;
	border:1px solid #ccc;
	margin-bottom: 10px;
}

.twitter-link {
	display: block;
	color:black;
	text-decoration: none;
}

/**
 * Footer
 */
footer {
	text-align: center;
}

@media(max-width:768px)
{
	body
	{
		padding:0;
	}

	#wrapper
	{
		padding:10px;
	}

	.navbar .brand,
	.navbar .nav,
	.navbar .nav>li {
		float: none;
	}

	.phone-only {
		display: block;
	}

	.navbar-search .search-query {
		width:80px;
	}

	#top-menu {
		display: none;
	}

	.image.box img {
		max-width: 200px;
	}

	.navbar-search {
		display: none;
	}

	h1 {
		font-size: 20px;
	}
}