/************************
    Reset some elements, based on meyerweb.com/eric/tools/css/reset/
************************/
html, body, div, img, table, tbody, tfoot, tr, th, td, footer, header, nav {
	margin: 0;
	padding: 0;
	border: 0;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
submit, button, reset, select, input, textarea {
    margin: 2px; /* so everybody matches Safari */
}
/************************
    Body
************************/
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}
a:link {
    color: #0066DD;
}
a:visited {
    color: #660066;
}
a:active {
    color: #660066;
}
a:hover {
    color: #008844;
}
/************************
    Header Image
************************/
#header {
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 2px 2px 0px 2px;
}
//#header img.mast {
//    /*width: 700px;*/
//    /*height: 100px;*/
//    margin: 0px;
//    
//    max-width: 100%;
//}
//#header div.slogan {
//    position: absolute;
//    bottom: 5px;
//    right: 2px; /* matches padding */
//    background: none;
//    margin: 0px;
//    font-family: Times, serif;
//    font-size: 14px;
//}
#header img.mast_logo {
    float: left;
    width: 16%;
    
}
#header img.text_container {
    float: left;
    width: 83%;
    margin-left: 16%;
}
#header div.mast_text {
    font-family: Times, "Times New Roman", serif;
    font-weight: bold;
    font-variant: small-caps;
    text-shadow: 3px 2px #CCC;
    font-size: 60px;
    line-height: 45px; /* incase goes two lines, also moves first line up */
    
    text-align: center;
    
}
#header div.title {
    font-family: Times, "Times New Roman", serif;
    font-size: 30px;
    line-height: 25px; /* incase goes two lines, causes first line to move up */
    text-align: center;
    
    margin-top: 8px;
    
}
@media screen and (max-width:850px) {
#header div.mast_text{
    font-size: 45px;
    line-height: 32px; /* incase goes two lines, also moves first line up */
}
#header div.title{
    font-size: 25px;
    line-height: 25px; /* incase goes two lines, also moves first line up */
}
}
@media screen and (max-width:575px) {
#header div.mast_text{
    font-size: 32px;
    line-height: 21px; /* incase goes two lines, also moves first line up */
    text-shadow: none;
}
#header div.title{
    font-size: 19px;
    line-height: 17px; /* incase goes two lines, also moves first line up */
}
}
@media screen and (max-width:485px) {
#header div.mast_text{
    font-size: 29px;
    line-height: 19px; /* incase goes two lines, also moves first line up */
    text-shadow: none;
}
#header div.title{
    font-size: 17px;
    line-height: 13px; /* incase goes two lines, also moves first line up */
}
}
@media screen and (max-width:400px) {
#header div.mast_text{
    font-size: 25px;
    line-height: 16px; /* incase goes two lines, also moves first line up */
    text-shadow: none;
}
#header div.title{
    font-size: 14px;
    line-height: 9px; /* incase goes two lines, also moves first line up */
}
}
/************************
    Copyright
************************/
#copyright {
    clear: both;
    max-width: 1120px;
    margin: 10px auto 6px auto;
    background-color: lightgrey;
    text-align: center;
    font-size: 14px;
    border-radius: 6px;
}

@media screen and (max-width:1120px) {
#copyright {
    margin: 10px 1% 6px 1%;
}
}


/************************
Wrappers for all content below the navigation
************************/
#content_wrapper {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

div.left_wrapper {
    float: left;
    width: 800px;
    margin: 0px 5px;
    display: inline-block; /* needed for shorter right wrappers to move to top */
    /*overflow: hidden; needed? */
}
div.right_wrapper {
    /*float: right; not needed for shorter right wrappers to move to top */
    display: inline-block; /* needed for shorter right wrappers to move to top */
    width: 300px;
    margin: 0px 5px;
}
div.full_width_wrapper { /* think "full-bleed" content */
    float: none;
    width: 100%;
    clear: both;
}
div.center_wrapper { /* "margins" on single col content, set max-width: in page for each instance to center*/
    margin: 0px auto;
    padding: 0px 5px;
    /*min-height: 300px;  keeps very short content from allowing right-floated divs from stacking under, divs no longer floated, took from 500 to 300 px, actually set on page now */
}
div.narrow_wrapper {/* a slightly narrower wrapper for content that wont fill 800px wide */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /*min-height: 300px;  keeps very short content from allowing right-floated divs from stacking under, divs no longer floated, took from 500 to 300 px, actually set on page now */
}
@media screen and (max-width: 1120px) {
div.left_wrapper {
    width: 71.428%;
}
div.right_wrapper {
    width: 26.785%;
    margin-left: 3px;
    margin-right: 3px;
}
}
@media screen and (max-width: 951px) {
div.left_wrapper {
    width: 71.188%;
}
div.right_wrapper {
    width: 26.603%;
}
}
@media screen and (max-width: 769px) {
div.left_wrapper {
    width: 70.871%;
}
div.right_wrapper {
    width: 26.397%;
}
}
@media screen and (max-width: 675px) { /* could go to 622px before stacking problems */
div.left_wrapper, div.right_wrapper {
    float: none;
    width: 98%;
    margin-left: 1%;
    margin-right: 1%;
}
}

/************************
This system keeps a div at the same aspect ratio (like iframe widget)
************************/
div.ratio_before {
    width: 100%;
    position: relative;
    max-width: 300px;
    max-height: 250px;
    margin: 20px auto 0px auto;
}
/*div.ratio::before {
    width: 100%;
    position: relative;
    max-width: 300px;
    max-height: 250px;
    margin: 20px auto 0px auto;
}*/
div.ratio {
    padding-top: 100%; /* set in line for != square, w/h% */
    display: block;
}
/*div.ratio::after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}*/
div.ratio_after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}