/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

body {
	background:  #FFFFFF; /*#080A1A*/
	/*background:  #000000 url(../images/img04.gif) repeat-x 0 0px; */ /* Grey line between Header and Article  GIF is a black column above a grey column */
	font: 100% "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-size: x-small;
}

h1, h2, h3 {
	/*margin-bottom: 20px;*/
	/* text-transform: lowercase; */
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
	font-weight: normal;
	text-align: center;
	 /* color: #01DF74; original brown - #733800*  slightly darker green - #04B45F */
}

h1 { color: #e07527; }
h2 { color: #223c66; }
h3 { color: #e07527; }

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 2.2em; }

p {
	font-size: 1.7em;
	margin-bottom: 1.5em;
	line-height: 1.3em; /* 1.8em */
	color:#223c66;
	text-align: left;
}

blockquote, ul, ol {
	font-size: 1.3em;
	margin-bottom: 1.5em;
	line-height: 1.3em; /* 1.8em */
	color:#223c66;
	text-align: left;
}

blockquote, ul, ol {
	margin-left: 3em;
}

blockquote {
	margin-right: 3em;
}

a {
	color: #223c66;
	text-decoration: none;
	font-weight: bold;
}

a:hover {
	text-decoration: underline;
	color: #01DF74;
}

hr {
	/*display: none;*/
	height: 12px; 
	margin: 10px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	background: url(../images/img06.gif) repeat-x left center; 
	border: none;
}

.notice {
	border: 3px solid black;
	padding: 10px;
}

.button {
/*	-moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px; */
}

video {
        height: 80%;
        width: 100%;
        object-fit: fill; // use "cover" to avoid distortion
        position: absolute;
}

/* CONTAINERS
---------------------------------------------- */
#container {
	margin: 0 auto;
}

.ie6 #container { /* Applied in IE6 only */
	width: 900px;  
}

#page {
	background: #FFFFFF;
	padding: 10px;
	max-width: 940px;
	margin: 0 auto;
}


#page img {
	max-height: auto;
/*	display: block;*/
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	/*width: 100%;*/
}​

.column {
	padding: 10px;
}

.left {
	float: left;
	width: 30%;
}

.right {
	float: right;
	width: 70%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

nav {
	margin: 0;
	padding: 0;
	text-align: center;
}

nav ul {
	margin: 0;
	margin-top: 0.5em;
	padding: 0;
	text-align: center;
}

nav li {
	display: inline;
	font-size: 1.3em;
	font-weight: normal;
	padding: 0 15px 0 15px;
}

nav li:first-child {
	padding-left: 0;
	border: none;
}

nav li:last-child {
	padding-right: 0;
}

.gridbooks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	grid-gap: 20px;
}

.gridbooks div {
	border-radius: 5px;
	padding: 10px;
	border: 2px solid #223c66;
	background-color: #cfe8dc;
}

.bookdesc P {
	text-align: center;
}

.gridpics {
	display: grid;
    grid-template-columns:  repeat(auto-fit, minmax(340px, 1fr));
	justify-content: center;
}

.picdesc img {
	margin-top: 40px;
}

.pagetext {
	margin-left: 5%;
	/*width: 80%;*/
}

.pagetext ul {
	font-size: 1.7em;
	margin-bottom: 1.5em;
	line-height: 1.3em; /* 1.8em */
	color:#223c66;
}

/* Responsive iFrame */
 
iframe {
	max-width: 100%;
	max-height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ==========================================================================
   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;
}

/* ==========================================================================
   Media Queries for Responsive Design.
   ========================================================================== */

 /* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	body {
		font-size: small;
		/*background-color: blue;*/
	}
	h1 { 
		font-size: 1.8em;
		font-weight: normal;
	}
	
	h2 {
		font-size: 1.3em;
		font-weight: normal;
	}

	p {
		font-size: 1.2em;
		font-weight: normal;
	}

	.pagetext ul {
		font-size: 1.2em;
		font-weight: normal;
	}

	nav li {
		font-size: 0.8em;
		padding: 0 2px 0 2px;
	}
	
  .column {
    width: 100%;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	body {
	/*background-color: purple;*/
	}

	nav li {
		padding: 0 10px 0 10px;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
	body {
	/*background-color: red;*/
	}

	.pagetext {
		/*margin-left: 25%;
		width: 50%;*/
	}
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
	body {
	/*background-color: orange;*/
	}
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) { 
	body {
	/*background-color: yellow;*/
	}
}

/* 2x - These are retina display devices
			like the iPhone 4 and iPad
---------------------------------------------- */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), 
only screen and (-o-min-device-pixel-ratio: 3/2), 
only screen and (min-device-pixel-ratio: 1.5) {

	/* Your styles for retina displays, like iPhone 4 and iPad, would go here. */

}

@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;
    }
}
