/* <!-- */
/* General styles */
body {
	margin:0;
	padding:0;
	border:0;			/* This removes the border around the viewport in old versions of IE */
	width:100%;
	background:#fff;
	min-width:350px;    	/* Minimum width of layout - remove line if not required */
					/* The min-width property does not work in old versions of Internet Explorer */
	font-size:90%;
}
a {
	color:#369;
}
a:hover {
	color:#fff;
	background:#369;
	text-decoration:none;
}
h1, h2, h3 {
	margin:.8em 0 .2em 0;
	padding:0;
}
p {
	margin:.4em 0 .8em 0;
	padding:0;
}
img {
	margin:10px 0 5px;
}
/* Header styles */
#header {
	clear:both;
	float:left;
	width:100%;
}
#header {
	border-bottom:1px solid #000;
}
#header p,
#header h1,
#header h2 {
	padding:.4em 15px 0 15px;
	margin:0;
}

/* 
#header ul {
	clear:left;
	float:left;
	width:100%;
	list-style:none;
	margin:10px 0 0 0;
	padding:0;
}
#header ul li {
	display:inline;
	list-style:none;
	margin:0;
	padding:0;
}
#header ul li a {
	display:block;
	float:left;
	margin:0 0 0 1px;
	padding:3px 10px;
	text-align:center;
	background:#eee;
	color:#000;
	text-decoration:none;
	position:relative;
	left:15px;
	line-height:1.3em;
}
#header ul li a:hover {
	background:#369;
	color:#fff;
}
#header ul li a.active,
#header ul li a.active:hover {
	color:#fff;
	background:#000;
	font-weight:bold;
}
#header ul li a span {
	display:block;
}
*/

/* 'widths' sub menu */
#layoutdims {
	clear:both;
	background:#eee;
	border-top:4px solid #000;
	margin:0;
	padding:6px 15px !important;
	text-align:right;
}
/* column container */
.colmask {
	position:relative;	/* This fixes the IE7 overflow hidden bug */
	clear:both;
	float:left;
	width:100%;			/* width of whole page */
	overflow:hidden;		/* This chops off any overhanging divs */
	margin-top: 20px;
	min-height: 500px;
}
/* common column settings */
.colright,
.colmid,
.colleft {
	float:left;
	width:100%;
	position:relative;
}
.col1,
.col2,
.col3 {
	float:left;
	position:relative;
	padding:0 0 1em 0;
	overflow:hidden;
}
/* Full page settings */
.fullpage {
	background:#fff;		/* page background colour */
}
.fullpage .col1 {
	width:96%;			/* page width minus left and right padding */
	left:2%;			/* page left padding */
}
/* 2 Column (double page) settings */
.doublepage {
	/* background:#eee; */		/* right column background colour */
}
.doublepage .colleft {
	right:50%;			/* right column width */
	background:#fff;		/* left column background colour */
}
.doublepage .col1 {
	width:46%;			/* left column content width (column width minus left and right padding) */
	left:52%;			/* right column width plus left column left padding */
}
.doublepage .col2 {
	width:46%;			/* right column content width (column width minus left and right padding) */
	left:56%;			/* (right column width) plus (left column left and right padding) plus (right column left padding) */
}
/* Footer styles */
#footer {
	clear:both;
	float:left;
	width:100%;
	border-top:1px solid #000;
}
#footer p {
	padding:10px;
	margin:0;
}
/* --> */


/*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

#map {
	margin-left: .5em;
	width: 100%;
	height: 480px;
}

.map-header {
	margin-bottom: 1em;
	font-size: 1em;
}

/* .page_info_div {
 	padding: 1em;
	width: 48%;
	margin-left: 2%; 
 	border-left: 1px solid silver;
	border-right: 1px solid silver; 
} */

/* .postcode_district_div {
	margin-top: 1em;
	padding: 1em;
	width: 48%;
	border-left: 1px solid silver;
	border-right: 1px solid silver;
	margin-left: 2%;
} */

/* .postcode_district_list {
	margin-top: 1em;
}
 */
.postcode_district_list ul li{
	margin-top: .25em;
}

/* .post_town_list {
	margin-top: 1em;
} */

.post_town_list ul {
    column-width: 11.5em; /* Firefox */
    -moz-column-width: 11.5em; /* Firefox */
    -webkit-column-width: 11.5em; /* webkit, Safari, Chrome */	
}

.post_town_list ul li{
	margin-top: .25em;
}

#header {
	background-color: RED;
	position: relative;
}

#footer p {
	text-align: center;
}

h1.page-desc {
	position: absolute;
	bottom: 5px;
	right: 5px;
	font-size: 1em;
	font-weight: normal;
}

h1.page-desc:before {
	content:"This page: ";
}

div#search-container {
	position: absolute;
	bottom: 13px;
	right: 10px;
	font-size: 1em;
	font-weight: normal;	
}

/* post towns list */

#post-towns-nav, #postcode-districts-nav {
    border:solid #ccc;
    border-width:1px 0;
    text-align:center;
}
#post-towns-nav li, #postcode-districts-nav li{
    display:inline;
}
#post-towns-nav  a, #postcode-districts-nav  a{
    display:inline-block;
    padding:10px;
}

#post-towns-alphabetical-nav, #postcode-districts-alphabetical-nav {
    border:solid #ccc;
    border-width:1px 0;
    text-align:center;
}
#post-towns-alphabetical-nav li, #postcode-districts-alphabetical-nav li{
    display:inline;
}
#post-towns-alphabetical-nav  a, #postcode-districts-alphabetical-nav  a{
    display:inline-block;
    padding:10px;
}

/* locator */

#postcode-locator-default-span, span#character-message, span#empty-string-message, span#invalid-postcode-message {
	display: block;
	margin: auto;
	text-align: center;
	margin-top: 20px;
}

span#character-message, span#empty-string-message, span#invalid-postcode-message {
	color: red;
}

form#locator-form {
	width: 100%;
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

form#locator-form input {
	border: 1px solid silver;
	padding: 5px;
	border-radius: 5px;
}

.postcode_data_div .postcode_locator_message{
	text-align: center;
	margin-top: 20px;
}

/* glossary */

.glossary-term {
	font-size: 1.1em;
}

.glossary-definition {
	margin-bottom: 2em;
}

hr {
    background-color: #D4D4D4;
    border: 0 none;
    clear: both;
    color: silver;
    height: 1px;
}

#glossary_div {
	margin-top: 1em;
	padding: 1em;
/* 	background-color: green; */
	width: 96%;
	border-left: 1px solid silver;
	border-right: 1px solid silver;
	margin-left: 1%;
	margin-right: 1%;
}

b {
	font-weight: bold;
}

/* postcode areas list */

.postcode_areas_div {
	margin-top: 20px;
}

.postcode_areas_list {
	margin-top: 1em;
}

.postcode_areas_list ul li{
	margin-top: .25em;
}

/* contact form */

.contact-form {
	margin: auto;
	margin-top: 50px;
	width: 50%;
	text-align: center;
}

.contact-form .form-field {
	margin-bottom: 20px;
}

.contact-form .message {
	display: inline-block;
	margin-top: 40px;	
	margin-bottom: 50px;	
}

#map-request-form {
	margin: auto;
}

#map-request-form textarea{
	display: block;
	margin: auto;
	margin-top: 20px;
/* 	width: 200px; */
	height: 200px;
	width: 40%;
	min-width: 400px;	
}

#map-request-form input {
	display: block;
	margin: auto;
	margin-top: 20px;
}

div#map-top {
	margin-top: 20px;
	margin-bottom: 20px;
}

div#map-top .postcode-map-link{
	float: right;
	position: relative;
	bottom: 20px;
}

div#map-generator-instructions {
	width: 70%;
	min-width: 500px;
	margin: auto;
	margin-bottom: 30px;
}

div#map-generator-instructions p {
	margin-left: 1em;
}

div#map-generator-instructions h1 {
	font-size: 1.5em;
	margin-bottom: 20px;
}

div#map-generator-instructions h2 {
	font-size: 1.2em;
	margin-bottom: 20px;
	margin-top: 20px;
}

.postcode-map-input-data-type, .postcode-map-input-data-type li {
	list-style-type: none;
}

div.format-example-list {
	margin-top: 10px;
	margin-bottom: 10px;
	background: CYAN;
	border: 1px dotted;
	padding: 5px;
	width: 90%;
}

div#map-top .current-page-link{
	float: right;
	position: relative;
	bottom: 20px;
}

form#api-form {
	width: 100%;
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

#api-message-span {
	margin: 0;
	color: red;
	text-align: center;
	display: block;
}

table#api-form-table {
	border: 1px solid silver;
	margin:auto;
	border-collapse: collapse;
}

table#api-form-table th,
table#api-form-table td {
	border-left: 1px solid silver;
	border-right: 1px solid silver;
	padding: 10px;
}


div#api-query-result {
	margin: auto;
	width: 350px;
	font-size: 1.2em;
}

div#api-instructions {
	margin: auto;
	margin-top: 50px;
	width: 50%;
}

h2.place-local-places, h2.place-key-data {
	font-size: 1em;
}

div.places-list ul{
    column-width: 11.5em; /* Firefox */
    -moz-column-width: 11.5em; /* Firefox */
    -webkit-column-width: 11.5em; /* webkit, Safari, Chrome */
}
#logo-container {
	width: 100%;
	height: 85px;
}

/* Responsive layout 640px */
@media (max-width: 640px) {
	#header {
		height: 90px;
	}
	#logo {
		padding: 5px 10px;
		width: 400px;
	}
	div#search-container {
		display: none;
		position: static;
		padding: 10px;
	}
	.page-desc {
		display: none;
	}
	.doublepage .colleft {
		box-sizing: border-box;
		width: 100%;
		position: static;
		padding: 0 10px;
	}
	.doublepage .col1 {
		width: 100%;
		position: static;
	}
	.doublepage .col2 {
		width: 100%;
		left: 0;
	}
	.fullpage {
		box-sizing: border-box;
		width: 100%;
		padding: 0 10px;
	}
	/* overwrite style from pl-styles.css */
	#map {
		width: 100% !important;
		margin: 0;
	}
	#post-towns-nav, #post-towns-alphabetical-nav {
		padding: 0;
	}
	#post-towns-nav li:first-child, #post-towns-alphabetical-nav li:first-child {
		display: block;
		width: 100%;
		padding: 10px 0;
	}
	#postcode-districts-nav, #postcode-districts-alphabetical-nav {
		padding: 0;
	}
	#postcode-districts-nav li:first-child, #postcode-districts-alphabetical-nav li:first-child {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	/* overwrite style from pl-styles.css */
	#floating-panel, #results-panel {
		padding: 0 !important;
		width: 100% !important;
	}
	/* overwrite style from pl-styles.css */
	#floating-panel #address {
		min-width: 15em !important;
	}
	#floating-panel input {
		margin: 10px;
	}
	#results-panel span {
		padding: 0 10px;
	}
	.contact-form {
		width: 90%;
	}
	/* overwrite style from leaflet.css */
	.leaflet-top {
		z-index: 1 !important;
	}
	div#map-generator-instructions {
		width: 100%;
		min-width: auto;
	}
	#map-request-form textarea {
		min-width: 300px;
	}
	div#map-top {
		margin-top: 0;
	}
	div#map-top .current-page-link {
		float: left;
		position: static;
		margin-top: 20px;
	}
	div#map-top .postcode-map-link {
		float: left;
		position: static;
		margin: 10px 0;
	}
}
@media (max-width: 500px) {
	#logo-container {
	}
	#logo {
		width: 300px;
		margin-top: 15px;
	}
}

@media (max-width: 400px) {
	#logo {
		width: 250px;
	}
}

.responsive_1 { width: 320px; height: 100px; text-align: center; margin: auto }
@media(min-width: 500px) { .responsive_1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .responsive_1 { width: 728px; height: 90px !important; } }
