html {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	overflow-x: hidden;
	overflow-y: scroll;
	background-image: url('../img/bg_maya.png');/* COLOUR_THEME */
	background-repeat: repeat;
	background-attachment: scroll;
	background-color: #0B234F;/* COLOUR_THEME */
	font-size: 100%;
	font-family: "Times New Roman", "Times";
}

a:link {
	color: #125382;/* COLOUR_THEME */
	/*text-decoration: none;*/
}

a:visited {
	color: #1B7EC5;/* COLOUR_THEME */
}

.container {
	width: auto;
	max-width: 900px;/* SITEWIDTH */
	height: auto;
	min-height: 100%;
	padding: 0;
	margin: auto;
	position: relative;
	background-image: url('../img/bg_paper.jpg');/* COLOUR_THEME */
	background-repeat: repeat;
	background-color: #EDD9B0;/* COLOUR_THEME */
	word-wrap: break-word;
	display: flex;
    flex-direction: column;
	/*outline: #00FF00 dotted 1px;*/
}

.menu {
	list-style-type: none;
	margin: 0;
	padding: 10px 40px 10px 40px;/* SITEBORDER */
	border: none
}
.menu li {
	display: inline;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-color: #176AA6;/* COLOUR_THEME */
	border-width: 2px;
	padding: 10px 0px 10px 0px;
	margin-right: 10px;
}

.menu li a {
	display: inline-block;
	padding: 10px 20px 10px 10px;
	font-size: 2em;
	font-family: "Courier New", "Courier";
	font-weight: bold;
	text-decoration: none;
}

.menu_current {
}
.menu_current:link {
	color: #176AA6;/* COLOUR_THEME */
}
.menu_current:visited {
	color: #176AA6;/* COLOUR_THEME */
}

.menu_other {
}
.menu_other:link {
	color: #000000;/* COLOUR_THEME */
}
.menu_other:visited {
	color: #000000;/* COLOUR_THEME */
}

.content {
	padding: 0px 40px 5.7em 40px;/* SITEBORDER */
	overflow: hidden;
	color: #000000;/* COLOUR_THEME */
	/*background-color: #CCCCCC;*/
}

.submenu {
	list-style-type: none;
	margin: 0;
	padding: 0px 0px 0px 0px;
	border: none
}
.submenu li {
	display: inline-block;
}

.submenu_li_first {
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: none;
	border-color: #176AA6;/* COLOUR_THEME */
	border-width: 2px;
	
	padding-right: 1em;
}

.submenu_li_notfirst {
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: none;
	border-color: #176AA6;/* COLOUR_THEME */
	border-width: 2px;
	
	padding-left: 1em;
	padding-right: 1em;
}

.submenu li a{
	font-size: 1em;
	font-family: "Courier New", "Courier";
	font-weight: bold;
	text-decoration: none;
}

.submenu_current {
}
.submenu_current:link {
	color: #176AA6;/* COLOUR_THEME */
}
.submenu_current:visited {
	color: #176AA6;/* COLOUR_THEME */
}

.submenu_other {
}
.submenu_other:link {
	color: #000000;/* COLOUR_THEME */
}
.submenu_other:visited {
	color: #000000;/* COLOUR_THEME */
}

.submenu {
	list-style-type: none;
	margin: 0;
	padding: 0px 0px 0px 0px;
	border: none
}

/* Post formatting*/
.post_list_ul {
	list-style-type: none;
	margin: 0;
	padding: 0px 0px 0px 0px;
	border: none
}

.post_list_ul li{
	padding-bottom: 1em;
}

.post_list_title {
}

.post_title {
	word-wrap: normal;
}

.post_date {
	float: right;
	padding-left: 30px;
	padding-right: 10px;
}

.post_bevel_image {
	max-width: 100%;
	border-right: 2px solid #F8F1E7;/* COLOUR_THEME */
	border-bottom: 2px solid #F8F1E7;/* COLOUR_THEME */
	border-left: 2px solid #222222;/* COLOUR_THEME */
	border-top: 2px solid #222222;/* COLOUR_THEME */
	/*display: block;
	margin: 1em auto 0em auto;*/
	margin: 1em 0em 0em 0em;
}

.post_image {
	max-width:100%;
	margin: 1em 0em 0em 0em;
}

/* Comment-posting formatting*/
.personal_field{
	width: 175px;
}

.comment_field{
	width: 315px;
	height: 70px;
}

.submit_msg{
	width: 315px;
}

.submit_button{
	width: 315px;
}

form {
	margin-top: 1em;
	width: 400px;
}

form div + div {
	margin-top: 1em;
}

label {
	/* To make sure that all labels have the same size and are properly aligned */
	display: inline-block;
	width: 130px;
	text-align: right;
	padding-right: 10px;
}

input, textarea, select, button {
  margin: 0;

	-webkit-box-sizing: border-box; /* For legacy WebKit based browsers */
	-moz-box-sizing: border-box; /* For legacy (Firefox <29) Gecko based browsers */
	box-sizing: border-box;
}

/*Error listing*/
.err_list_ul {
	margin: 0;
	padding: 0px 0px 0px 1.25em;
	border: none
}

.err_list_ul li{
	padding-bottom: 0.5em;
	color: red;/* COLOUR_THEME */
}

/* Separator and footers*/
.separator {
	border: none;
	background-color: #000000;/* COLOUR_THEME */
	height: 2px;
	margin: 10px 40px 10px 40px;/* SITEBORDER */
}

.footer {
	margin-top: auto;
	margin-bottom: 0.8em;
	width: 100%;
	height: 100%;
	/*outline: #00FF00 dotted 1px;*/
}

.footer_form {
	width: 100%;
	margin: 0;
	padding: 0;
}

.footer_div {
	padding: 0px 40px 0px 40px;/* SITEBORDER */
}

.leftcol {
	position: absolute;
	left: -51px;
	width: 52px;
	height: 100%;
	background-image: url('../img/col_left.png');/* COLOUR_THEME */
}

.rightcol {
	position: absolute;
	right: -51px;
	width: 52px;
	height: 100%;
	background-image: url('../img/col_right.png');/* COLOUR_THEME */
}

/*Remove columns for narrower displays*/
@media all and (max-width: 900px) {/* SITEWIDTH */
	html, body {
		width: 100%;
		height: 100%;
		padding: 0;
		margin: 0;
		background-image: none;
		background-color: #EDD9B0;/* COLOUR_THEME */
	}
	

	.leftcol {
		display: none;
	}
	.rightcol {
		display: none;
	}
}

/*Decrease padding and margins for very narrow displays*/
@media all and (max-width: 700px) {
	.menu {
		padding-left: 10px;/* SITEBORDER */
		padding-right: 10px;/* SITEBORDER */
	}
	
	.content {
		padding-left: 10px;/* SITEBORDER */
		padding-right: 10px;/* SITEBORDER */
	}
	
	.separator {
		margin-left: 10px;/* SITEBORDER */
		margin-right: 10px;/* SITEBORDER */
	}
	
	.footer_div {
		padding-left: 10px;/* SITEBORDER */
		padding-right: 10px;/* SITEBORDER */
	}
}