/* ----------------------------------  menu ---------------------------------------  */
#pagesizer {
	border-style: solid;
	border-width: thin;
	padding: 1px 4px;
	background-position: 0px 0px;
	max-width: 800px; /* FIXED: was width: 800px — now shrinks on phones */
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	background-color: #ffffff; /* colour of the page */
}


.mastheadtable {
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: medium;
	font-weight: 600;
	/*color: #0000FF;*/
	background-image: url(../Images/Webs_Images_and_graphics/MyBlueBackRnd100.gif);
	background-repeat: repeat;
	height: 100px;
}
.mastheadtablecolleft {
	width: 50px;
}
.mastheadtableright1 {
	width: 120px;
}


#masthead {
	max-width: 800px; /* FIXED: was width: 800px */
	width: 100%;
	height: 100px;
	text-align: center;
	font-size: small;
}


#mainmenu {
	padding: 6px;
	background-image: url('../Images/Webs_Images_and_graphics/Mainbar.jpg');
	background-repeat: repeat-x;
}
#mainmenu ul {
	list-style-type: none;
	display: inline;
}
#mainmenu li {
	display: inline;
}
#mainmenu a {
	padding: 8px 12px 8px 12px;
	text-decoration: none;
	color: #FFFFFF;
	font-weight: bold;
	font-size: .9em;
}
#mainmenu a:hover {
	text-decoration: underline;
}


#page_content {
	position: relative;
	max-width: 800px; /* FIXED: was width: 800px */
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: small;
}
#content {
	width: 590px;
	float: left;
	padding-right: 5px;
	padding-left: 5px;
}

#sidebar1 {
	float: none;
	position: fixed;
	width: 530px;
	top: 150px;
	background-color: #6FF;
	height: 50px;
	font-size: medium;
}

#footer {
	text-align: left;
	clear: both;
	max-width: 800px; /* FIXED: was width: 800px */
	width: 100%;
	border: 1px dotted black;
	font-size: large;
	background-color: #CCCCFF;
	font-style: italic;
}


/* ==============================================
   Responsive layout for tablets & phones
   ============================================== */

/* For screens 900px and smaller */
@media screen and (max-width: 900px) {
  #pagesizer,
  #masthead,
  #page_content,
  #footer {
    width: 100%;
    margin: 0;
    padding: 0 10px;
    box-sizing: border-box;
  }

  img {
    max-width: 100%; /* FIXED: moved up from 500px block so tablets are covered too */
    height: auto;
  }

  #content {
    width: 100%;
    float: none;
  }

  #sidebar1,
  #sidebar {
    display: none; /* FIXED: now correctly hides both sidebar names on mobile */
  }

  #mainmenu ul {
    display: block;
    padding: 0;
  }

  #mainmenu li {
    display: block;
    margin-bottom: 5px;
  }

  #mainmenu a {
    display: block;
    background-color: #004080;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
  }

  #mainmenu a:hover {
    background-color: #0060c0;
  }

  body {
    background-image: none;
    background-color: #fff;
    font-size: 1em;
  }
}

/* For very small screens (phones under 500px) */
@media screen and (max-width: 500px) {
  h1 { font-size: 1.2em; }
  h2 { font-size: 1em; }
}
