@import url('https://fonts.googleapis.com/css?family=Oswald');
//@import url('https://fonts.googleapis.com/css?family=Andada|Archivo+Narrow');
/*
@font-face {
    font-family: 'latin_modern_roman_dunhil10Rg';
    src: url('lmromandunh10-regular-webfont.eot');
    src: url('lmromandunh10-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('lmromandunh10-regular-webfont.woff') format('woff'),
         url('lmromandunh10-regular-webfont.ttf') format('truetype'),
         url('lmromandunh10-regular-webfont.svg#latin_modern_roman_dunhil10Rg') format('svg');
    font-weight: normal;
    font-style: normal;

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

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

.main { color:gray; }

.main a { color: skyblue; }
.main a:visited { color: dodgerblue; }

b { color: black; }

h1, h2, h3, h4, h5, h6 { font-family: 'Oswald',sans-serif; }
.header-container h1 { font-size: 150%; }


::-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: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */

body {
    font: 16px/26px Helvetica, Helvetica Neue, Arial;
}

.wrapper, .corecontent {
    width: 90%;
    margin: 0 5%;
}
.corecontent {
  position:relative;
    background:white;
  z-index:2;
 clear:both;
}

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

.header-container {
//    border-bottom: 20px solid maroon; /**/
}

.footer-container,
.main aside {
//    border-top: 20px solid maroon; /**/
}

.header-container,
.footer-container,
.main aside {
    background: white; /**/
}

.title a, .title a:visited { /**/
 color: #999;
 text-decoration: none;
}
.title a:hover { color:blue; }

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

/* === sub menus == */
nav ul, nav li, nav a { margin: 0; padding: 0; }
nav ul ul li, nav ul li ul li a { margin:0; padding: 0!important; box-sizing: border-box; line-height: 1em; }
nav ul li ul { display: none; position: absolute; top: 42px; left: 12px; border: 2px solid black; }
nav li ul li { width:100%; text-indent:10px; line-height:30px; }
nav li:hover > ul { display:block; position:absolute; z-index:1000; }
nav li:hover { position:relative; z-index:2000; }
nav > ul li ul li a { display: block; float: none; padding: 12px 24px!important; }  /* TODO: link design */

nav li ul li {
 display:inline;
 cursor:pointer; list-style:none;
 padding:0 12px;
 float:left;
}

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

nav a, nav span {
 width:100%;
 margin: 0!important;
    display: block;
    padding: 15px 0;

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

    color: gray;
}
nav span {
    color: white;
    background: maroon; /**/
}

nav a:hover {
    color: blue;
    text-decoration: none;
}



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

.main {
    padding: 144px 0 30px;
}

.main article h1 {
}

.main aside {
    /*color: white;*/
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: gray;
    padding: 2px 0;
}

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

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

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

.main article:empty, .main aside:empty { display:none; }

figure, figure img { max-width: 100%!important; height: auto; }

#facebook, #twitter, #phone { display: none; }

.header-container {
z-index:3001;
}
.footer-container,
.main aside,
.main article {
z-index: 30;
}

.half, .third {
 //background: maroon;
 padding:0.1% 1%; margin-top:2%;
}

.main aside,
.main article {
position:relative;
}

.fadein {
    position:relative;
    width:100%;
}

.fadein img {
    position:absolute;
    left:0;
    top:0;
}
.overslide img {
    width:100%;
    height:auto;
}
.overslide>img { visibility:hidden;
max-height:480px; overflow:hidden; margin-top:-30px; position:relative; z-index:1;
 }

.fadein img.firstslide {
 position: relative;
 visibility: hidden;
}

.header-container { position: fixed; width:100%; min-height:48px; }
#dropmenu { color: white; font-size: 24pt; position: absolute; right: 0; z-index: 20; padding: 12px 24px 16px; text-decoration: none; display: block; }
.dbar { clear: both; width: 24px; height: 3px; display: block; background: white; float: right; margin-top: 4px; }

nav { position: relative; margin-top: -1000px; font-family: Oswald, sans-serif; padding:24px 0 6px; }
.title {
 position: absolute; z-index: 1; background: black;
 width: 100%; height: 24px; 
 left: 0; top: -6px; padding: 9px 5%;
 font-size:16pt!important;
 line-height:1;
}
.title img { display:none; }
//nav a:hover { background: maroon; }
//nav span { background: maroon; }

.footer-container p { clear: both; }

.keybox {
 position:relative; z-index:3; float:right;
 margin: -16% 0 12px; padding: 2%;
 border-radius: 4px;
 width:240px; max-width:100%;
 background:white;
 font-size:16pt; color:gray; line-height:1;
}
.keybox p { padding:18px 0 0; margin:0; font-size:7pt; text-align:right; }

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

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

#facebook, #twitter { display: block; float: left; width: 26px; height: 26px; margin: 3px 5px 0 0; background: url(/images/facebook.png); }
#twitter { background: url(/images/twitter.png); }
#phone { display: inline; }

nav a, nav span { padding: 0; font-weight: normal; }
.title {
 float:left; margin: 0 0 32px; width: 100%; font-size:24pt!important;
 position: relative; top: 12px; left: inherit; padding: inherit; height: auto; background: none;
}
.title img { display:block; max-width:288px!important; }

.title a, .title a:visited { /**/
display: block; float: left; margin: 0 24px 0 0;
}

#dropmenu { display: none; }

.footer-container p { clear: none; }
nav { margin-top: 0; }
/*
nav { padding-top: 0; margin-top: 0; }
*/
/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a, nav span {
        float: left;
/*        width: 27%; */
        margin: 6px 1.7% 0;
        padding: 2px 8% 0; /**/
    }

    nav li:first-child a, nav li:first-child span { /**/
        margin-left: -2%; /**/
    }

    nav li:last-child a {
        margin-right: -2%; /**/
    }

nav > ul { float: right; }
nav > ul li { position: relative; float: left; white-space:nowrap; margin-right:24px; }
//nav > ul > li > a { width: 90px; min-height: 78px; }
nav > ul li ul { position: absolute; top: 25px; left: 0; box-shadow: 2px 2px 2px rgba(0,0,0,0.5); }
nav > ul li ul li a { width: 100%; }

//nav li { margin-left: 2px; }
nav li ul li { margin-left:0; }

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

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
.corecontent { box-sizing:border-box; margin-top:360px; padding: 3% 6%; }
.keybox {
 margin:-6px 0 0;
 padding:0 5% 1%;
 box-shadow: 2px 2px 2px black;
}
.fadein {
    left:0;
    top:0;
    width:100%;
}
.overslide {
 //?height: 0;
}
.overslide figure {
}
.overslide img {
 //max-height: 100%;
top:0;
 max-height:480px;
width:100%; overflow:hidden; margin-top:-30px; z-index:1;
position:absolute;
}

}

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

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #999; /**/
           -moz-box-shadow: 0 5px 10px #999;
                box-shadow: 0 5px 10px #999;
    }

/* ============
    WIDE: Menu
   ============ */

    .title {
/*        float: left; */
    }

    nav {
/*        float: right;
        width: 38%; */
    }

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

    .main article {
        float: left;
        width: 57%;
//background:white;padding:12px;box-sizing:border-box;
    }

    .main aside {
        float: right;
        width: 28%;
    }
#main>figure { width:100%;  max-height:420px; overflow:hidden; margin-top:-30px; position:relative; z-index:-1; }
//#main>figure+.wrapper { box-sizing:border-box; margin-top:-90px; padding: 3% 6%; background:white; position:relative; z-index:2; }
#main>figure>img { width:100%; }
#foot1, #foot2 { float:left; width: 50%; }
#foot2 { float:right; }

.half, .third {
 box-sizing: border-box; width:32%; margin: 2% 2% 0 0; float:left; clear: left;
}
.third:nth-of-type(3n-1) { margin: 2% 0 0 0; }
.half { width: 49%; margin: 2% 0 0; }
.half:nth-of-type(even) { float:right; clear:right; }
//.half:nth-of-type(odd) { margin: 2% 0; }
//.half:nth-of-type(even), .third:first-of-type { clear:left; }

}

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

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

    .wrapper, .corecontent {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
.corecontent { margin-top:360px; }
}

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

/* TenderSoft */

/* footer @ foot on short pages */
html { height: 100%;  }
body { height:100vh; min-height: 100%; display: flex; flex-direction: column; font-family: Arial,sans-serif; }
.main-container { flex: 1 0 auto; }
.header-container, .footer-container { flex: none; flex-shrink: 0; }
/*
.main-container { min-height: 75%; }
.main { min-height: 101%; }
*/

figure { padding: 0; margin:0; }

/* fight table overspill */

div { table-layout: fixed; }

.addthis_toolbox { float: right; width: 180px; margin-bottom: 6px; }
.addthis_toolbox::before { float:left; width: 180px; content: "forward this page:"; font-style: italic; font-size: small; color: gray; }
footer h3 { float: left; margin: 12px 16px 0 0; }
//footer p { margin: 12px auto 0; line-height: 125%; display: table; font-size: small; text-align: center; color: white; }
footer a, footer a:visited { color:gray; }


.shrink { max-height:48px; overflow:hidden; }
.expand { color:blue; font-weight:bold; cursor:pointer; }
.expand:hover { text-decoration:underline; }
