/*
// Title        : Framework.css
// Author       : M. Langham
// Date         : 2017/08/17
// Version      : 0.0.0
// Purpose      : Main CSS framework
// Credits      : Thank you css-trick.com and codepen.io for excellent guides and 
//                  examples. Please visit cs-tricks.com -> A Complete Guide to Flexbox.
//                   
// Process      : This file defines default CSS pertaining to the framework and UI flow.
                  Media modifications and adjustments are performed at the end.
*/


    /* Define the character set encoding in case aliens are visiting the page */
    @charset "utf-8";

    /* Import the color/style/theme CSS */
    @import "SL_Theme2.css";
    @import "https://fonts.googleapis.com/css?family=Allan:400|Roboto|Racing+Sans+One|Open+Sans:600|Sriracha|Cousine:700|Oswald:500|Audiowide|Carter+One";


    .wrapper {

        max-width: 1326px;    /* cap at 1326px screen width */

        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;  
  
        -webkit-flex-flow: row wrap;
        flex-flow: row wrap;
        text-align: center;
        background: #F4F4F4;
        margin: auto;
    }

    /* begin assuming smallest screen size and flex
     all child elements across the view port */
    .wrapper > * {
        flex: 1 100%;
    }

    header {
        margin-bottom: 1em;
    }

    /* header */
    #headerLogoContainer {
        max-width: 460px;
        margin: auto;
    }

    #headerLogoContainer #headerLogoImg {
        width: 100%;
        padding-bottom: 10px;
    }

    .main-nav {
        display: flex;
        align-items: stretch;
        justify-content: flex-start;
    }

    .main-nav ul {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
    } 

    .main-nav ul li a {
        max-width: 250px;
        display: flex;
        text-decoration: none;
        padding: 0.3em;
        margin-left: 0.2em;
        margin-right: 0.2em;
    }

    .main {
        min-height: 580px;
        padding: 4px;
    }

    .mainContent {
        max-width: 1000px;
        justify-content: center;
        text-align: left;
        margin: auto;
    }

    .mainContent p {
        max-width: 660px;
    }

/* BLOG */
    .BlogDiv {

        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 32px;
    }

    .BlogSpan {

        width: 100%;
    }

    .BlogImgContainer {

        width: 50%;
        min-width: 300px;
        align-items: center;      /* overrides default stretch to allow inherited img size */
        text-align: center;
        padding-bottom: 4px;
    }

    .BlogImgContainer img {

      width: 90%;
      box-shadow: 2px 2px 3px #CCCCCC;
    }
    

    .aside {
        padding: 8px;
    }

    .aside-1 {
        max-width: 220px;
    }

    .aside-2 {
        max-width: 200px;
        min-width: 160px;       /* Google AdSense example size */

        max-height: 600px;      /* Google AdSense example size */
    }

    .TilesTitle {
        width: 100%;
        text-align: left;
    }

    footer {
        margin-top: 2em;
    }

    .footer {
        padding: 2.0em;
    }



    @media all and (min-width: 650px) {
        .aside { flex: 1 auto; }
    }

    @media all and (min-width: 800px) {

        .main    { flex: 5 0px; }
        .aside-1 { order: 1; } 
        .main    { order: 2; }
        .aside-2 { order: 3; }
        .footer  { order: 4; }
    }


/* 
@media all and (min-width: 1300px) {

  body {
    padding-left: 2em;
    padding-right: 2em;
  }
}


@media (min-width: 1000px) {
  .main-nav a {
    max-width: 500px;
    font-size: 2rem; 
  }
}
*/


