/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
   	 /* font-size: 0.8em; */
	font-size: 18px;
    	/* line-height: 1.4; */
	line-height: 1.3em;
	margin:5px auto;
	border:0px solid #999;
	max-width:1200px;
	/* font-family:Verdana, Geneva, sans-serif; */
	font-family: 'Roboto', sans-serif;	
	color:#6A6A6A;
	padding:0 5px;

	font-weight: 300;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}










/* ==========================================================================
   Author's custom styles
   ========================================================================== */

h3 {        
        margin: 1em 0 1em 0.5em;
}

a{
	color:#E2144A;
	text-decoration: none;	
}
a:hover{	
	color:#E4849F;
}
.bannercols {
	min-height: 125px;	
	display: flex;	
	align-items: baseline;
	padding: 0 5px;
}
.bannercols .bannerleft {
	/*width: 20%;*/
}
.bannercols .bannerright {
	width: 80%;	
	justify-content: flex-end;
	display: flex;	
	align-self: center;
	
}
.bannercols div.bannerright p {
	font-size: 0.7em;
	text-align:right;
	line-height: 1;
}
.contentcols {	
	margin-top: 20px;
	max-width: 990px;
	margin: auto;
}
.contentcols>div {
	border:0px solid red;
}
/*.contentcols div.contentleft {
	width:160px;
	float:left;
	border:0px solid blue;	
}*/
.contentcols div.contentright {
	/* float:none; */
	border:0px solid orange;
	/*padding-left:155px;*/
	overflow: hidden;
}
.contentcols div.contentright p {
	text-align:justify;	
  	margin: 0 0.5em 1em;	
}


/* for the Nav */


ul#nav, ul#nav li ul {
	margin: 0 0 10px 0;
	padding: 0;
	list-style: none;
	width: 145px; /* Width of Menu Items */
	border-bottom: 1px solid #f0f0f0;
	/* font: normal 11px verdana; */
	font: normal 11px Roboto;
	}

ul#nav li {
	position: relative;
	}
	
ul#nav li ul {	
	position: absolute;	
	margin: 0;
	width: 160px;
	left: 139px; /* Set 1px less than menu width */
	top: 0;
	display: none;
	background: #fff; /* IE6 Bug */
	}

/* Styles for Nav Items */
ul#nav li a {
	display: block;
	text-decoration: none;
	color: #777;
	background: #DEDCDC; /* IE6 Bug */
	padding: 5px;
	border: 1px solid #f0f0f0;
	border-bottom: 0;
	text-align: left;
	}
ul#nav li a.selected {
	background: #EFEFEF;
	color: #E2144A;
}

/* Fix IE. Hide from IE Mac \*/
* html ul#nav li { float: left; height: 1%; }
* html ul#nav li a { height: 1%; }
/* End */

ul#nav li a:hover { color: #E2144A; background: #efefef; text-decoration: none;} /* Hover Styles */
		
ul#nav li ul li a { padding: 5px 5px; background:#DEDCDC; } /* Sub Menu Styles */
		
ul#nav li:hover ul, ul#nav li.over ul { display: block; } /* The magic */

/* End for the Nav */

/* image layout stuff */


.left {
	float:left;
	margin:5px 10px 10px 0;
}
.right {
	float:right;	
	margin:5px 0 10px 10px;
	clear:right;
}
.inline {
	clear:none;
}
.centre {
	margin: 0 auto;
	text-align:center;
}
.leftimages img {   
  margin: 7px 7px 7px 0;
}


/* for the bottom nav */
.basenav {
	font-size: xx-small;
	clear:both;
	text-align:justify;
	margin-top:100px;
}
.basenav div {
	text-align: right;		
	color: #999;
}
.basenav ul {	
	padding:0;
}
.basenav ul li {
	display: inline;	
}
.basenav ul li span {
	margin: 0 5px 0 7px;
}
.basenav ul li a {
	color: #999;
	text-decoration: none;
	line-height: 14px;
}
.basenav ul li a:hover {	
	text-decoration: underline;
}
/* End for the bottom nav */

/* headings */
h1 {
    font-size: 1.5em;
    margin:0 0 0.67em 0;
}

/* gallery */
iframe {
  border: medium none;
  height: 700px;
  overflow: hidden;
  width: 805px;
}

/* misc */
table.thumbs {
  /* margin: 10px;
  width: 100%; */
}
.contentcols div.contentright table.thumbs td p, table.thumbs td {
  padding: 8px;
  text-align: center;
}
table.thumbs td {	
	vertical-align: top;
}
/* flexy cols */
div.row  {
	display: flex;
	justify-content: space-between;
}
div.row div div {
	padding: 5px 0 15px;
	text-align: center;
	display: block;
}
div.row span {
	display: block;
	text-align: center;
	padding: 10px;
}
/* end flexy cols */
figcaption {
	padding: 15px 0 0;
}
.imgcaption {
	width: 100%;
}
.imgcaption td {
	color:#B2AEAE;
	font-size:0.85em;	
	text-align:center;	
	vertical-align: top;
	padding:5px;
}
ul.thumbs {
  list-style: none outside none;
  margin-left: 10px;
  overflow: hidden;
  padding: 0;
}
ul.thumbs li {
  float: left;
  margin: 0 10px 25px 0;
  width: 193px;
}
div.contentright ul.thumbs li p {
  font-size: 75%;
  height: 40px;
  margin-top: 10px;
  text-align: center;
}
ul.pdfs {
  list-style: none outside none;
  margin: 0 0 50px;
  padding: 0;
}
ul.inline li {
  display: inline;
}
ul.pdfs li {
  margin-bottom: 50px;
}
ul.pdfs li img {
  border: 1px solid #CCCCCC;
}

/* Blog */

.post {
	margin-bottom: 30px;
}
.entry-date {
    color: #999999;
    margin-bottom: 10px;
}

/* Social media */

.fb_iframe_widget {  
  vertical-align: top;
}

/* logo */

#logo {
	/* width: 68.569%;
	height: auto; */
}

.transition {
	/*transition: opacity 2s; 
	opacity: 0;
	 transition: all 2s ease;*/		
}

#slideshow-container {
	margin: 2em 0;
}

/* Mobile / Responsive */

/* makes all images responsive */

img {
	max-width: 100%;
	height: auto;
}

.fa-bars {
	display: none;
}

@media screen and (max-width: 768px) {

    .bannercols {
	min-height: auto;
    }

    .bannercols div.bannercentre p, .bannercols div.bannerright p {	
	font-size: 0.5em;
    }

    table.thumbs.test td {
	  display: inline;
    }

    table.thumbs img {
	  max-width: inherit;
    }


    /*.fa-bars {	
	font-size: 1.8em;
	margin: 0 0 0 5px;
	cursor: pointer;
	display: inline-block;
    }   */
    
    #contentleft {
	display: none;
    }

    table {
	width: auto;
    }
    .right {
       float:none;
	margin: 5px auto;
    }
    ul#nav li a {	
	font-size: 1.6em;
   }

/* flexy cols */
	div.row  {
		display: flex;
		flex-direction: column;
	}
/* end flexy cols */   
   

}






/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
