﻿html {
	height: 100%;
}

body {
	font: 16px sans-serif;
	line-height: 20px;
	margin: 0;
	background-color: lightgrey;
	height: 100%;
}

form {
	background-color: white;
	margin: 0 auto;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

h1 {
	display: block;
	font-size: 2em;
	line-height: 1em;
	margin: 0;
	margin-bottom: 12px;
	font-weight: bold;
}

.aural {
	position: absolute !important; /* Outside the DOM flow */
	height: 1px;
	width: 1px; /* Nearly collapsed */
	overflow: hidden;
	clip: rect(1px 1px 1px 1px); /* IE 7+ only support clip without commas */
	clip: rect(1px, 1px, 1px, 1px); /* All other browsers */
}

fieldset.frameless {
	border: 0;
	margin: 0;
	padding: 0;
}

.list {
	padding: 0;
	margin: 0;
}
	.list > li {
		list-style: none;
	}

.page-content {
	margin: 12px;
	flex-grow: 1;
}

.highlighted-text {
	background-color: #DAE699;
}

.small-text {
	font-size: .75em;
}

.hot-topic-icon {
	height: 16px;
	width: 16px;
}



/* ------------------------------------------------ */
/* Poll details */

.details-item {
	display: flex;
	background-color: whitesmoke;
	margin-bottom: 16px;
	padding: 8px 12px;
	border-radius: 2px;
}

.details-item:last-of-type {
	margin-bottom: 0;
}

@media screen and (max-width: 700px) {
	.details-item {
		flex-direction: column;
	}
}

.details-item-name {
	font-weight: bold;
	width: 200px;
}

.details-item-value {
	flex-grow: 1;
}

.details-item-iframe {
	border: 0;
	flex-grow: 1;
}



/* ------------------------------------------------ */
/* Comments */

.comment-item {
	border-bottom: thin solid grey;
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.comment-item:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 700px) {
	.comment-item {
		margin-top: 12px;
	}
}

.comment-item-row {
	display: flex;
}

.comment-item-row-name {
	min-width: 100px;
}



/* ------------------------------------------------ */
/* Poll information */

.poll-information-header {
	font-weight: bold;
	display: flex;
	padding: 12px;
	padding-bottom: 6px;
}

.poll-information-header-column {
	margin-right: 12px;
	min-width: 100px;
}

.poll-information-header-column.large {
	min-width: 200px;
	max-width: 200px;
}

@media screen and (max-width: 700px) {
	.poll-information-header-column.large {
		max-width: none;
	}
}

.poll-information-header-column:last-child {
	margin-right: 0;
}

@media screen and (max-width: 700px) {
	.poll-information-header {
		display: none;
	}
}

.poll-information {
	background-color: #2A4C65;
	border: thin solid #173850;
	border-bottom-color: transparent;
	color: white;
	padding: 12px;
	display: flex;
	align-items: center;
	cursor: pointer;
	text-decoration: none;
}

.poll-information:last-child {
	border-bottom-color: #173850;
}

.poll-information:hover, .poll-information:focus {
	background-color: #FFF5E8;
	color: black;
	border-color: #DBCAB4;
}

@media screen and (max-width: 700px) {
	.poll-information {
		flex-direction: column;
		margin-bottom: 16px;
		border-bottom-color: #173850;
		border-radius: 2px;
	}

	.poll-information:last-child {
		margin-bottom: 0px;
	}
}

.poll-information-item {
	margin-right: 12px;
	min-width: 100px;
	overflow-wrap: break-word;
}

.poll-information-item.large {
	min-width: 200px;
	max-width: 200px;
}

@media screen and (max-width: 700px) {
	.poll-information-item.large {
		max-width: none;
	}
}

.poll-information-item:last-child {
	margin-right: 0;
}

@media screen and (max-width: 700px) {
	.poll-information-item {
		margin-right: 0;
		margin-bottom: 12px;
		width: 100% !important;
	}

	.poll-information-item:last-child {
		margin-bottom: 0;
	}
}

.poll-information-item-name {
	display: none;
	font-weight: bold;
}

@media screen and (max-width: 700px) {
	.poll-information-item-name {
		display: block;
	}
}



/* ------------------------------------------------ */
/* Poll result */

.result-bars-container {
	display: flex;
	flex-direction: column;
}

.result-bar {
	background-color: #173850;
	margin-bottom: 6px;
	border: thin solid #062236;
	border-radius: 2px;
	height: 20px;
}

.result-bar:last-child {
	margin-bottom: 0;
}

.result-bar-text {
	color: white;
	padding: 0 4px;
	display: flex;
	position: relative;
	top: -20px;
}

.result-bar-text-alternative {
	margin-right: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.result-bar-text-votes {

}

.result-bar-percentage {
	height: 20px;
	background-color: #6A791C;
}



/* ------------------------------------------------ */
/* Buttons & inputs */

.textbox-container {
	display: flex;
	margin-bottom: 16px;
	flex-direction: column;
}

.textbox-container:last-child {
	margin-bottom: 0;
}

.buttons-container {
	display: flex;
	flex-direction: column;
	max-width: 480px;
}

.input-btn {
	background-color: #2A4C65;
	color: white;
	border: thin solid #173850;
	padding: 8px 12px;
	min-width: 50px;
	border-radius: 2px;
	box-sizing: border-box;
	font: 16px sans-serif;
	cursor: pointer;
	margin-bottom: 12px;
}

.input-btn:last-child {
	margin-bottom: 0;
}

.input-btn:hover, .input-btn:focus {
	color: black;
	background-color: #FFF5E8;
	border-color: #DBCAB4;
}

@media screen and (max-width: 700px) {
	.input-btn {
		padding: 16px 24px;
		margin-bottom: 32px;
	}
}

.input-txb {
	border: thin solid grey;
	border-radius: 2px;
	font: 16px sans-serif;
	padding: 4px;
	resize: none;
	width: 100%;
	box-sizing: border-box;
}

.input-txb:focus {
	border: thin solid black;
}

.checkbox-container {
	margin-bottom: 16px;
	display: flex;
	align-items: center;
}

.checkbox-container:last-child {
	margin-bottom: 0;
}

.input-cb {
	margin: 0;
	cursor: pointer;
}

input[type="checkbox"] + label {
	cursor: pointer;
	padding-left: 6px;
}



/* ------------------------------------------------ */
/* Navigation bar */

.navigation-bar {
	background-color: #2A4C65;
	display: flex;
	flex-direction: row;
}

@media screen and (max-width: 700px) {
	.navigation-bar {
		flex-direction: column;
	}
}

.navigation-bar-container {
	display: flex;
	flex-direction: row;
}

@media screen and (max-width: 700px) {
	.navigation-bar-container {
		display: none;
		flex-direction: column;
	}
}

.navigation-bar-item {
	padding: 12px 24px;
	color: white;
	text-decoration: none;
	border: thin solid transparent;
}

.navigation-bar-item:hover, .navigation-bar-item:focus {
	background-color: #FFF5E8;
	color: black;
	border-color: #DBCAB4;
}

.menu-button-container {
	display: none;
}

@media screen and (max-width: 700px) {
	.menu-button-container {
		display: flex;
		align-items: center;
	}
}

.menu-button {
	padding: 12px 24px;
	height: 46px;
	cursor: pointer;
	border: thin solid transparent;
	font-size: 16px;
	background-color: transparent;
	color: white;
	text-align: left;
	background-image: url("Images/menu-button-white.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
}

.menu-button::-moz-focus-inner {
	border: 0;
}

.menu-button:hover, .menu-button:focus {
	background-color: #FFF5E8;
	color: black;
	border-color: #DBCAB4;
	background-image: url("Images/menu-button-black.svg");
}



/* ------------------------------------------------ */
/* Custom header */

.custom-header {
	padding: 12px;
	display: flex;
}

@media screen and (max-width: 700px) {
	.custom-header {
		justify-content: center;
	}
}

.header-logo img {
	max-width: 300px;
	width: 100%;
	vertical-align: bottom;
}

@media screen and (max-width: 700px) {
	.header-logo {
		max-width: 200px;
	}
}



/* ------------------------------------------------ */
/* Custom footer */

.custom-footer {
	background-color: whitesmoke;
	padding: 12px;
	font-size: 12px;
	line-height: 16px;
	display: flex;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

@media screen and (max-width: 700px) {
	.custom-footer {
		flex-direction: column;
	}
}

.custom-link {
	color: blue;
}

.footer-logo {
	margin-right: 12px;
	width: 25%;
	max-width: 300px;
	flex-shrink: 0;
}

.footer-logo img {
	width: 100%;
	vertical-align: bottom;
}

@media screen and (max-width: 700px) {
	.footer-logo {
		margin-right: 0;
		margin-bottom: 12px;
		width: 100%;
		max-width: 200px;
	}
}

/* ------------------------------------------------ */
/* Validation error */

.validation-error {
	color: #e20000 !important; /* Contrast-friendly red */
}
