/*! from HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: sans-serif; /* 1 */
    width: 100%;
    -ms-text-size-adjust: 100%; /* 2 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

:root { background: white; color: black;}

/* ===== Home page Styles ==================================================
   modified from Jonathan Verrecchia - verekia.com/initializr/
   responsive-template
   ========================================================================== */

body {
	font: 100%/1.5 "Open Sans", Arial, Helvetica, sans-serif;
	background-color:#FFF;
	margin: 0;
	max-width:980px;
	width: 100%; /* reduction factor */
	}
		
.wrapper {
    width: 100%;/* 90% */
    margin: 0;
}

.main-wrapper {
    width: 90%;/* 90% */
    margin: 0 5% 0 5%;
}
.footer-wrapper {
    width: 94%;/* 90% */
    margin: 0 3% 0 3%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.main-container {
	width:98%;  
	margin: 0 1% 0 1%;/* was 0 5 0 5 */
   }/*border-top: 2px solid #ffff00;*/
  
.header-container {
	width:98%;
    	margin: 0 1% 0 1%;
    	border:1px 0 0 2px;
     border-top: 5px solid #fff200;
     border-bottom: 2px solid #ffff00;
} 
.header-container {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
    
.footer-container,
.main aside {
	width:90%;
    border-top: 2px solid #ffff00;
    	margin: 0 5% 0 5%;
}

.header-container,
.footer-container,
.main aside {
    background: #FFF200;
}
.footer-container footer {
    color: blue;
    padding: 2px 0;
}
.main-img  {
		   background:#CCFF66;
		   width: 100%;
		   height: auto;
}
.title {
    color: white;
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    color: white;
    background: #e44d26;
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
p  {
  display: block;
  line-height: 1.2em;
  margin-bottom: 0.5em;
}  

P.western { so-language: en-US; }
 nav ul li {
        display: inline;
    }
/*div  {
	    border:2px solid red;} */
	        
div#layout  {
    width: 90%;
    margin: 0 10% 0 10%;
    padding: 0;
	height: auto;
	background: #fff200;	
}		
div.header { 
	background-color: #FFF200;
	padding: 0 5% 0 5%; /* 40px / 940px */
	width: 90%;
	}
div.left  { background-color: #FFF200;
	       float: left;
	       width: 300px;}
div.right  { background-color: #FFF200;
	       float: left;
		width: 300px;}
P.right  { background-color: #FFF200;
	       float: right;
	       width: 300px;
	       font-size: 9px;}
/*div#layout {display: table; border: 1px solid black; }
div#layout div {display: table-row;}
div#layout div div {display: table-cell; border: 1px solid black; }*/
table {
  border-collapse: collapse;
  border-spacing: 0;
   hieght:auto;
   cellpadding:0;
   cellspacing:0;
   background-color:#FFFFCC;
}

td,
th {
  padding: 0;
  width: auto;
  background:#FFF200;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    margin: 0 3.0em 0 1.0em;
}

.main article h1 {
    font-size: 2em;
    line-height: 1.4;    
}

.main aside {
    color: red;
    padding: 0px 5px 0 10px;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        width: 27%;
        margin: 0 1.7%;
        padding: 25px 2%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }

}
/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

@media only screen and (min-width: 768px) {
     
/* ============
    WIDE: Menu
   ============ */

    .title {
        float: left;
    }

    nav {
        float: left;
        width: 80%;
    }

/* ============
    WIDE: Main
   ============ */

    .main article {
        float: left;
        width: 90%;
	      margin:0 5% 0 5%;
    }

    .main aside {
        float: right;
        width: 28%;
    }
}

@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 980px; /* 1140px - 10% for margins */
        margin: 0 auto;
        }
       
}

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

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

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

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

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        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) ")";
    }

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

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

    thead {
        display: table-header-group;
    }

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

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

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

    h2,
    h3 {
        page-break-after: avoid;
    }
}
/* not so important */
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

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

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

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

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

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #cc0;
    color: #000;
    padding: 0.2em 0;
}
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}
