body {
	font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #2B2D44;
	background: white url('/assets/images/background.png') center top repeat-y;
}

a, a:link, a:visited, a:hover, a:active {
	color: #2B2D44;
}

a:hover {
	color: #CD0000;
}

table {
	table-layout: fixed;
	border-collapse: collapse;
	border: 1px solid #444;
	margin-bottom: 50px;
	overflow: hidden;
}

table thead, table tfoot {
	font-weight: bold;
	background: #D0D0D0;
}

table thead td {
	vertical-align: middle;
}

table td {
	border: 1px solid #444;
	padding: 6px 0;
	margin: 0;
	vertical-align: middle;
	box-sizing: border-box;
}

table.hor_pad td {
	padding: 6px;
}

.clear {
	height: 0;
	clear: both;
}

.center {
	text-align: center;
}

#content {
	margin: 0 10px;
}

#content #header {
	text-align: center;
}

#content h1 {
	font-family: Arial, Helvetica, sans-serif;
	text-align: center;
}

#content a#logout {
	float: right;
	text-align: right;
	margin-bottom: 20px;
	display: block;
}


/*************/
/* DASHBOARD */
/*************/
#content.dashboard form table {
	width: 100%;
	border: none;
}

#content.dashboard form table td {
	border: none;
}

#content.dashboard form table td.form_error p {
	margin: 0 0 20px 0;
	color: red;
}

#content.dashboard td.vtop {
	vertical-align: top;
}

#content.dashboard td.label {
	width: 100px;
}

#content.dashboard td.label.large {
	width: 400px;
}

#content.dashboard td.survey {
	width: 540px;
}

#content.dashboard td.status {
	width: 110px;
}

#content.dashboard td.type {
	width: 85px;
}

#content.dashboard td.type2 {
	width: 45px;
}

#content.dashboard td.config_survey {
	width: 75px;
	text-align: center;
}

#content.dashboard td.add_user {
	width: 60px;
	text-align: center;
}

#content.dashboard td.count_users {
	width: 65px;
	text-align: center;
}

#content.dashboard td.username {
	width: 730px;
}

#content.dashboard td.change_password {
	width: 75px;
}

#content.dashboard td.remove_user {
	width: 75px;
}

#content.dashboard td input[type='text'], #content.dashboard td input[type='password'], #content.dashboard td select {
	width: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

#content.dashboard td input[type='radio'] {
	margin-right: 3px;
}

#content.dashboard ul.menu {
	padding: 0;
	list-style-type: none;
	height: 16px;
}

#content.dashboard ul.menu li {
	float: left;
	margin-right: 6px;
}

#content.dashboard ul.menu.sub {
	margin-top: 4px;
}

#content.dashboard ul.surveys {
	padding: 0 0 0 20px;
}

#content.dashboard table {
	margin: 20px 0;
}

#content.dashboard table tr.odd {
}

#content.dashboard table tr.even {
	background-color: #E6E6E6;
}

#content.dashboard table td a.config {
	display: block;
}

#content.dashboard table td a.config img {
	height: 24px;
}

#content.dashboard form td.message {
	width: 300px;
	vertical-align: top;
}

#content.dashboard form td.message p {
	display: none;
	margin: 0;
}

#content.dashboard form td.message p.error {
	color: red;
}

#content.dashboard form td.message p.success {
	color: green;
}


/***********************/
/* LIVE / OPKOMSTMETER */
/***********************/
#content.voter_turnout {
	margin: 0;
}

#content.voter_turnout #header {
	margin: 0 10px;
}

#content.voter_turnout h1 {
	font-size: 36px;
	margin: 12px 0;
}

#content.voter_turnout h2 {
	text-align: center;
	font-size: 22px;
	margin: 20px 0 10px 0;
}

#content.voter_turnout div#chart_area {
	width: 100%;
	height: 100%;
	max-width: 400px;
	max-height: 400px;
	margin: 0 0 0 255px;
}

#content.voter_turnout div.square-box div.square-content div#chart_area {
	width: auto;
	height: auto;
	max-width: none;
	max-height: none;
	margin: 0;
}

#content.voter_turnout div.square-box div.square-content div.chart_area {
	width: 100% !important;
	height: 100% !important;
}

#content.voter_turnout div.square-box {
	position: relative;
	width: 100vw;
	height: 100vw;
	max-width: 400px;
	max-height: 400px;
}

#content.voter_turnout div.square-box, #content.voter_turnout div.sub_chart {
	margin: 0 auto;
}

#content.voter_turnout div.square-box.sub {
	width: 80vw;
	height: 80vw;
	max-width: 300px;
	max-height: 300px;
}

#content.voter_turnout div.square-box::before {
	content: '';
	display: block;
	padding-top: 100%;
}

#content.voter_turnout div.square-box div.square-content {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

#content #header .logo img.mobile {
	width: 100%;
	max-width: 426px;
}


/************************/
/* AFGESLOTEN / UITSLAG */
/************************/
#content.end_results h1 {
	font-size: 24px;
	margin: 20px 0 10px 0;
}

#content.end_results h2 {
	font-size: 13px;
	margin: 20px 0 10px 0;
	line-height: 20px;
}

#content.end_results dl {
	width: 49%;
	margin: 10px 0;
	line-height: 20px;
}

#content.end_results dl.left {
	float: left;
	margin-right: 1%;
}

#content.end_results dl.right {
	float: right;
}

#content.end_results dl dt {
	float: left;
	clear: left;
	width: 45%;
	font-weight: bold;
}

#content.end_results dl dd {
	float: left;
	width: 55%;
	margin: 0;
}

#content.end_results dl.right dt {
	width: 55%;
}

#content.end_results dl.right dd {
	width: 45%;
}

#content.end_results table thead td.answer {
	width: 623px;
}

#content.end_results table thead td.total {
	width: 56px;
}

#content.end_results table thead td.percentage_bar {
	width: 200px;
}

#content.end_results table thead td.percentage {
	width: 40px;
}

#content.end_results table div.bar {
	width: 0;
	height: 20px;
	box-shadow: inset  0px 1px 0px rgba(255, 255, 255, .5);
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#content.end_results table .odd div.bar {
	border: 1px solid #CD0000;
	background: #CD0000;
  background: -webkit-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: -moz-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: -o-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: linear-gradient(to bottom, #CD0000 0%, #FF1A00 100%);
}

#content.end_results table .even div.bar {
	border: 1px solid #2B2D44;
	background: #2B2D44;
  background: -webkit-linear-gradient(top, #2B2D44 0%, #103987 100%);
  background: -moz-linear-gradient(top, #2B2D44 0%, #103987 100%);
  background: -o-linear-gradient(top, #2B2D44 0%, #103987 100%);
  background: linear-gradient(to bottom, #2B2D44 0%, #103987 100%);
}

#content.end_results table .color_1 div.bar {
	border: 1px solid #7DBE0A;
	background: #7DBE0A;
  background: -webkit-linear-gradient(top, #7DBE0A 0%, #A2D93F 100%);
  background: -moz-linear-gradient(top, #7DBE0A 0%, #A2D93F 100%);
  background: -o-linear-gradient(top, #7DBE0A 0%, #A2D93F 100%);
  background: linear-gradient(to bottom, #7DBE0A 0%, #A2D93F 100%);
}

#content.end_results table .color_2 div.bar {
	border: 1px solid #00A9E0;
	background: #00A9E0;
  background: -webkit-linear-gradient(top, #00A9E0 0%, #7ADEFF 100%);
  background: -moz-linear-gradient(top, #00A9E0 0%, #7ADEFF 100%);
  background: -o-linear-gradient(top, #00A9E0 0%, #7ADEFF 100%);
  background: linear-gradient(to bottom, #00A9E0 0%, #7ADEFF 100%);
}

#content.end_results table .color_3 div.bar {
	border: 1px solid #EB3DEE;
	background: #EB3DEE;
  background: -webkit-linear-gradient(top, #EB3DEE 0%, #FC85FB 100%);
  background: -moz-linear-gradient(top, #EB3DEE 0%, #FC85FB 100%);
  background: -o-linear-gradient(top, #EB3DEE 0%, #FC85FB 100%);
  background: linear-gradient(to bottom, #EB3DEE 0%, #FC85FB 100%);
}

#content.end_results table .color_4 div.bar {
	border: 1px solid #1A62DB;
	background: #1A62DB;
  background: -webkit-linear-gradient(top, #1A62DB 0%, #70B6F2 100%);
  background: -moz-linear-gradient(top, #1A62DB 0%, #70B6F2 100%);
  background: -o-linear-gradient(top, #1A62DB 0%, #70B6F2 100%);
  background: linear-gradient(to bottom, #1A62DB 0%, #70B6F2 100%);
}

#content.end_results table .color_5 div.bar {
	border: 1px solid #CD0000;
	background: #CD0000;
  background: -webkit-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: -moz-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: -o-linear-gradient(top, #CD0000 0%, #FF1A00 100%);
  background: linear-gradient(to bottom, #CD0000 0%, #FF1A00 100%);
}

#content.end_results table .color_6 div.bar {
	border: 1px solid #FF7D00;
	background: #FF7D00;
  background: -webkit-linear-gradient(top, #FF7D00 0%, #FFA03C 100%);
  background: -moz-linear-gradient(top, #FF7D00 0%, #FFA03C 100%);
  background: -o-linear-gradient(top, #FF7D00 0%, #FFA03C 100%);
  background: linear-gradient(to bottom, #FF7D00 0%, #FFA03C 100%);
}

#content.end_results table .color_7 div.bar {
	border: 1px solid #E5CD05;
	background: #E5CD05;
  background: -webkit-linear-gradient(top, #E5CD05 0%, #FFFA7B 100%);
  background: -moz-linear-gradient(top, #E5CD05 0%, #FFFA7B 100%);
  background: -o-linear-gradient(top, #E5CD05 0%, #FFFA7B 100%);
  background: linear-gradient(to bottom, #E5CD05 0%, #FFFA7B 100%);
}

#content.end_results table .color_8 div.bar {
	border: 1px solid #651E1E;
	background: #651E1E;
  background: -webkit-linear-gradient(top, #651E1E 0%, #A66565 100%);
  background: -moz-linear-gradient(top, #651E1E 0%, #A66565 100%);
  background: -o-linear-gradient(top, #651E1E 0%, #A66565 100%);
  background: linear-gradient(to bottom, #651E1E 0%, #A66565 100%);
}

#content.end_results table .color_9 div.bar {
	border: 1px solid #7202AC;
	background: #7202AC;
  background: -webkit-linear-gradient(top, #7202AC 0%, #AD7BFF 100%);
  background: -moz-linear-gradient(top, #7202AC 0%, #AD7BFF 100%);
  background: -o-linear-gradient(top, #7202AC 0%, #AD7BFF 100%);
  background: linear-gradient(to bottom, #7202AC 0%, #AD7BFF 100%);
}

#content.end_results table .color_10 div.bar {
	border: 1px solid #088602;
	background: #088602;
  background: -webkit-linear-gradient(top, #088602 0%, #27F306 100%);
  background: -moz-linear-gradient(top, #088602 0%, #27F306 100%);
  background: -o-linear-gradient(top, #088602 0%, #27F306 100%);
  background: linear-gradient(to bottom, #088602 0%, #27F306 100%);
}


/************************/
/* RESPONSIVE           */
/************************/
@media only screen and (max-width: 1000px) {
	.non-mobile {
		display: none !important;
	}
}

@media only screen and (min-width: 1001px) {
	.mobile {
		display: none !important;
	}

	#content {
		position: relative;
		left: 50%;
		width: 920px;
		height: 747px;
		margin: 20px 0 0 -460px !important;
	}

	#content.voter_turnout h1 {
		font-size: 48px;
		margin: 20px 0;
	}

	#content.voter_turnout h2 {
		font-size: 24px;
	}

	/* DASHBOARD */
	#content.dashboard td.label {
		width: 175px;
	}

	#content.dashboard td.label.large {
		width: 400px;
	}

	#content.dashboard td input[type='text'], #content.dashboard td input[type='password'], #content.dashboard td select {
		width: 100%;
	}

	/* LIVE / OPKOMSTMETER */
	#content.voter_turnout div.sub_chart {
		float: left;
	}

	#content.voter_turnout div.sub_chart.col-1 {
		width: 100%;
	}

	#content.voter_turnout div.sub_chart.col-2 {
		width: 50%;
	}

	#content.voter_turnout div.sub_chart.col-3 {
		width: 33%;
	}

	#content.voter_turnout div.square-box {
		width: 100%;
		height: 100%;
		max-width: 400px;
		max-height: 400px;
	}
}
