@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src:local('Open Sans'),
      local('OpenSans'),
      url('fonts/OpenSans.woff2') format('woff2'),
      url('fonts/OpenSans.woff') format('woff');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src:local('Open Sans Bold'),
      local('OpenSans-Bold'),
      url('fonts/OpenSans-Bold.woff2') format('woff2'),
      url('fonts/OpenSans-Bold.woff') format('woff');
}

/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-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;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    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 Calibri, Helvetica, Helvetica Neue, Arial;
    letter-spacing: 1px;
}

.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

body {
    background-color: #f9f9f9;
}

article {
    background-color: white;
    padding: 10px 5% 0;
    margin-bottom: 30px;
}

.header-container {
    /*border-bottom: 20px solid #e44d26;*/
    border-bottom: 20px solid #1c3b79;
}

.footer-container,
.main aside {
    /*border-top: 20px solid #e44d26;*/
    border-top: 20px solid #1c3b79;
}

.header-container,
.footer-container,
.main aside {
    /*background: #f16529;*/
    background: #29537C;
}

.title {
    color: white;
}

.title::before {
    content: '.: ';
}

.title::after {
    content: ' :.';
}

/* ==============
    MOBILE: Menu
   ============== */

nav ul {
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    margin-bottom: 10px;
    padding: 15px 0;

    text-align: center;
    text-decoration: none;
    /*font-weight: bold;*/

    color: white;
    /*background: #e44d26;*/
    background: #1c3b79;
    
    font-family: Open Sans, Segoe UI, Helvetica, Helvetica Neue, Arial, sans-serif;
    
}

nav a:hover,
nav a:visited {
    color: white;
}

nav a:hover {
    text-decoration: underline;
}

/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 30px 0;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}

article {
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}
/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

article footer {
    font-size: 0.8em;
    color: #666;
}

a {
    color: #0c2b69;
}

h1 a,
h1 a:visited {
    text-decoration: none;
    color: #222;
}

a:hover,
a:visited {
    color: #001b79;
}

a:hover {
    color: #001b79;
    text-decoration: none;
}

aside a,
.footer-container a {
    color: #9EAAe3;
}

aside a:hover,
aside a:visited,
.footer-container a:hover,
.footer-container a:visited {
    color: #9EAAe3;
}

aside a:hover,
.footer-container a:hover {
    color: #9fAff5;
    text-decoration: none;
} 

.footer-container p {
    font-size: .75em;
}

.header-container h1,
aside h1,
aside h2,
aside h3 {
    font-family: Open Sans, Segoe UI, Helvetica, Helvetica Neue, Arial, sans-serif;
    font-weight: bold;
}

aside h1,
aside h2,
aside h3 {
    border-bottom: solid 1px white;
}

article header h1 {
    border-bottom: solid 1px #889;
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */

    nav a {
        float: left;
        width: 27%;
        margin: 0 1.7%;
        padding: 0.67em 2%;
        margin-bottom: 0;
    }

    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
    }
    
    article {
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }
/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li {
        display: inline;
    }

    .oldie nav a {
        margin: 0 0.7%;
    }
}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE: Header
   ==================== */

    .header-container,
    .footer-container {
        background-image: url('../img/bkg.jpg');
        background-position: center top;
        background-repeat: no-repeat;
    }
    
    .footer-container {
        background-position: center bottom;
    }
    
/* ====================
    WIDE: CSS3 Effects
   ==================== */

    .header-container,
    .main aside {
        -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
           -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }

    .footer-container {
        -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
           -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }

    article {
        -webkit-box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
           -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
                box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    }
    
    aside a,
    .footer-container a {
        text-shadow: 0 1px #1c3b79;
        -moz-text-shadow: 0 1px #1c3b79;
        -webkit-text-shadow: 0 1px #1c3b79;
    }

    .header-container h1,
    aside h1,
    aside h2,
    aside h3 {
        text-shadow: 0 1px #1c3b79;
        -moz-text-shadow: 0 1px #1c3b79;
        -webkit-text-shadow: 0 1px #1c3b79;
        font-family: Open Sans, Segoe UI, Helvetica, Helvetica Neue, Arial, sans-serif;
        font-weight: bold;
    }

    aside h1,
    aside h2,
    aside h3 {
        box-shadow: 0 1px #1c3b79;
        -moz-box-shadow: 0 1px #1c3b79;
        -webkit-box-shadow: 0 1px #1c3b79;
    }

    nav a {
        transition: 200ms ease-in-out;
        box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
        text-transform: uppercase;
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
    }
    
    nav a:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
        text-decoration: none;
    }
/* ============
    WIDE: Menu
   ============ */

    .title {
        float: left;
    }

    nav {
        float: right;
        width: 35%;
    }

/* ============
    WIDE: Main
   ============ */

    .main:not(.full-page) article {
        float: left;
        width: 50%;
    }
    /*
    .main.full-page article {
        width: 100%;
    }
    */
    .main aside {
        float: right;
        width: 25%;
        border-radius: 2px;
    }
    
    .main aside.single {
        float: none;
        margin: 0 0 0 auto;
    }
}

@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

    .wrapper {
        width: 1026px; /* 1140px - 10% for margins */
        margin: 0 auto;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.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 {
    * {
        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;
    }
}