@media only screen and (max-width: 600px) {
	#navbar li {
		overflow-x: visible !important;
		/*float: none !important;*/
	}
	#loginstatus {
		display: none !important;
	}
	#content, #messages {
	padding:10px !important;
    }
}

@media only screen and (max-width: 960px) {
	#loginstatus {
		display: none !important;
	}
	#content, #messages {
	padding:10px 15px !important;
	}
	.leftcolumn, .rightcolumn {
		max-width:none !important;
	}
	.rightcolumn {
		float:none !important;
	}
}	

@media only print {
	#navbar {
		display:none !important;
	}
	#closedballots, #closedpolls {
		display:none !important;
	}
	#nominationresultshelp, #resultshelp, #pollresultshelp {
		display:none !important;
	}
	.leftcolumn, .rightcolumn {
		max-width:none !important;
	}
	.rightcolumn {
		float:none !important;
	}
}

/* MENU BAR */
#navbar {
	display: block;
	background-color: #197196;
	color: #ffffff;
	width: 100%;
	padding: 0px 10px;
}
#navbar ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
#navbar li {
	float: left;
}
#navbar li a {
	display: block;
	padding: 5px 10px;
}
#navbar a:link {
	color: inherit;
}
#navbar a:visited {
	color: inherit;
}
.adminmenu {
	background-color: #ffffff;
	color: #000000;
}
.electioncommitteemenu {
	background-color: antiquewhite;
	color: #000000;
}
#navbar td {
	padding: 5px;
}
#loginstatus {
	position: absolute;
	right: 10px;
	padding-top: 5px;
}

/* SITE WIDE */
body {
	margin:0;
	font-family: sans-serif;
}
#content, #messages {
	padding:10px 30px;
}
#messages {
	background-color: antiquewhite;
}
#page-title {
	font-size-adjust: 1.5;
	font-weight: bold;
}
td, th {
	padding: 0 1em 0 0;
}
.leftcolumn, .rightcolumn {
	max-width:48%;
}
.rightcolumn {
	float:right;
}

/* BUTTON TWEAKS */
input[type=submit] {
	float: right;
}
.deletebutton {
	color: red;
}

/* ELECTORS PAGE */
.regstatus {
	color: red;
}
.adminstatus {
	color: #197196;
}
#electorstable {
	border-spacing:0;
}
#electorstable td {
	padding-top:0.2em;
	padding-bottom:0.2em;
}
#electorstable tr:nth-child(odd) {
	background-color:#eee;
}
#electorstable tr:first-child {
	background-color:#bbb;
}
/* Superseded by flex layout below 
.columns {
	max-width: 60em;
	column-count: 2;
	column-width: 28em;
}
*/
#electorspagecolumns {
	display: flex;
	gap: 2em;
	max-width: none;
}
#addelectorsform {
	flex: 0 0 auto;
}
#electorshelp {
	flex: 1 1 auto;
}
.electorcontact {
	color: #666;
	font-size: 0.9em;
}


/* NOMINATION and VOTE */
#selectedballot {
	background-color: #8cb2c3;
	padding: 20px;
	width:fit-content;
	max-width:30em !important;
	box-shadow: 2px 2px 4px #111;
}
#selectedballot h2 {
	margin:0 !important;
}
#selectedballot td {
	padding-left:0.2em !important;
}
#voteform {
	width:fit-content;	
}
#nominateformcontainer {
	width:fit-content;
	margin:0 auto;
}
#voteform input, #nominateform input {
	margin:0.25em 0;
}
#voteform input[type="submit"], #nominateform input[type="submit"] {
	margin:0.9em 0 !important;
}

/* POLL (voting) */
#selectedpoll {
	background-color: #8cb2c3;
	padding: 20px;
	width:fit-content;
	max-width:30em !important;
	box-shadow: 2px 2px 4px #111;
}
#selectedpoll h2 {
	margin:0 !important;
}
#selectedpoll td {
	padding-left:0.2em !important;
}
#pollform {
	width:fit-content;
}
#pollform input {
	margin:0.25em 0;
}
#pollform input[type="submit"] {
	margin:0.9em 0 !important;
}

/* RESULTS */
#selectedballotresults, #verifyballot {
	background-color: #8cb2c3;
	padding: 20px;
	width:fit-content;
	max-width:30em !important;
	box-shadow: 2px 2px 4px #111;
	margin-top:1em;
}
#selectedballotresults {
	background-color: #8cb2c3;
}
#selectedballotresults h2 {
	margin-top:0 !important;
}
#selectedballotresults td {
	padding-left:0.2em !important;
}
#verifyballot {
	background-color: antiquewhite;
}
.verified p:first-of-type {
	color: green;
}
.unverified p:first-of-type {
	color: red;
}

/* POLL RESULTS */
#selectedpollresults {
	background-color: #8cb2c3;
	padding: 20px;
	width:fit-content;
	max-width:30em !important;
	box-shadow: 2px 2px 4px #111;
	margin-top:1em;
}
#selectedpollresults h2 {
	margin-top:0 !important;
}
#selectedpollresults td {
	padding-left:0.2em !important;
}

/* MANAGE BALLOTS and NOMINATIONS */
#selectballottable {
	border-spacing:0;
}
#selectballottable td {
	padding-top:0.2em;
	padding-bottom:0.2em;
}
#selectballottable tr:nth-child(odd) {
	background-color:#eee;
}
#newballotform table tr:nth-child(3) td:first-child {
	vertical-align:top !important;
}
#ballot_name {
	width:100%;
}
#newballotform {
	max-width:30em;
}
#newballotform table {
	width:100%;
}
#newballotform input[type="text"],
#newballotform input[type="number"],
#newballotform textarea {
	width:100%;
	box-sizing:border-box;
}

/* MANAGE POLLS */
#selectpolltable {
	border-spacing:0;
}
#selectpolltable td {
	padding-top:0.2em;
	padding-bottom:0.2em;
}
#selectpolltable tr:nth-child(odd) {
	background-color:#eee;
}
#newpollform {
	max-width:30em;
}
#newpollform table {
	width:100%;
}
#newpollform input[type="text"],
#newpollform textarea {
	width:100%;
	box-sizing:border-box;
}
#newpollform table tr:nth-child(2) td:first-child,
#newpollform table tr:nth-child(3) td:first-child {
	vertical-align:top !important;
}
#poll_title, #poll_question, #poll_options {
	width:100%;
	box-sizing:border-box;
}

/* HELP */
.help {
	max-width:30em;
}
.help p {
	font-style: italic;
}
hr {
	margin-top: 1em;
}