@charset "UTF-8";
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font: 1em/1.8 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #121212;
    margin: 0;
    padding: 0;
    background-image: url(images/bg.jpg);
    background-repeat: repeat-x;
    background-position: center 100px;
    background-attachment: fixed;
    height: 100%;
}

a {
    text-decoration: none;
    word-break: break-all;
}

#outer {
    padding: 5px 10px;
    width: 100%;
    /*  MOBILE FIRST  */
    margin: 130px auto 10px auto;
    background-color: rgb(245, 245, 245);
    background-color: rgba(245, 245, 245, 0.5);
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    /* outline: 1px solid blue; */
}

#content {
    margin-top: 0px;
    padding-bottom: 20px;
    padding-top: 20px;
    /* outline: 1px solid red; */
}

#top {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
}

#banner {
    background-image: url(images/banner.png), url(images/bg_banner.png);
    background-repeat: no-repeat, repeat-x;
    background-position: center top, left top;
    height: 100px;
    
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
}

header {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 20px 10px;
    display: flex;
    /* outline: 1px solid red; */
}

header h1 {
    font-size: 1.2em;
}

header p {
    display: none;
}

header div:nth-of-type(2) {
    margin-left: auto;
}

header div img {
    max-width: 100%;
}

#photome {
    border-radius: 15px;
    box-shadow: 0px 0px 15px #333;
}

h1 {
    font-size: 1.4em;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.1em;
    color: #42518C;
    letter-spacing: 3px;
    margin-bottom: 1.5em;
    margin-top: 2.5em;
    padding-bottom: .2em;
    border-bottom: 1px solid #eee;
    /* these styles are for mobile only <480 */
    cursor: pointer;
    background-image: url(images/icon_arrow_down.jpg);
    background-repeat: no-repeat;
    background-position: left center;
    text-indent: 20px;
}


/* this styles is for mobile only <480 */

.iconArrow {
    background-image: url(images/icon_arrow_up.jpg);
    background-repeat: no-repeat;
    background-position: left center;
}

strong {
    color: #42518C;
    font-weight: normal;
}

#articles p {
    margin-bottom: 30px;
}

#articles {
    margin-bottom: 30px;
}

.podcast {
    line-height: 25px;
}

footer {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #fbfbfb;
    border-top: 1px solid #ccc;
}

footer img {
    display: none;
}


/****************************** MENU *************************************/

aside {border: 2px solid red;}

label {
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
}

label div:first-of-type {
    padding-right: 5px;
    font-size: 1.2em;
}

label span {
    width: 50px;
    height: 5px;
    font-size: 1.0em;
    background-color: black;
    margin: 6px 0;
    display: block;
    transition: .5s;
}

#menu {
    background-color: rgb(0, 0, 0);
    width: 50%;
    margin-top: 5px;
}

#menu ul {
    display: flex;
    justify-content: space-around;
}

#menu a{
        color: #fff;
        font-weight: bold;
}

#menu ul {
    list-style-type: none;
    padding-left: 10px;
}

#menulabel {
    padding-right: 10px;
}

.hide {
    display: none;
}

input[type=checkbox]:checked+label #s1 {
    transform: rotate(-45deg) translate(-9px, 6px);
}

input[type=checkbox]:checked+label #s2 {
    opacity: 0;
}

input[type=checkbox]:checked+label #s3 {
    transform: rotate(45deg) translate(-8px, -8px);
}

input[type=checkbox]:checked+label+#menu {
    display: block;
}


/* ****************** Flexbox ******************* */

.cards {
    display: flex;
    /* flex-direction: row - default */
    flex-wrap: wrap;
    justify-content: space-between;
    /* the main axis */
    align-items: stretch;
    /* default for the cross axis - makes boxes equal height */
    align-content: space-around;
    /* the cross axis - makes separation in the rows */
}

.card {
    flex: 0 1 100%;
    /*  gives us even space around */
    background-color: #fff;
    padding: 10px;
    margin-bottom: 2.5em;
    /*background-color:  rgba(255, 255, 255, 0.7);*/
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.card div {
    display: none;
}


/* ****************** Media Queries ******************* */


/* collapse/expand overrides here */

@media screen and (min-width: 481px) {
    h2 {
        cursor: auto;
        background: none;
        text-indent: initial;
    }
    .card div {
        display: block;
    }
    .card {
        margin-bottom: 5.5em;
    }

}

@media screen and (min-width: 769px) {
    .card {
        flex-basis: calc(48% - .5em);
    }
    header h1 {
        font-size: 1.2em;
    }
    header p {
        color: #888;
        font-size: 0.9em;
        display: block;
    }
    #content {
        margin-top: 20px;
    }
    #banner {
        padding-top: 25px;
    }    
    
}

@media only screen and (min-width: 1024px) {
    .card {
        flex-basis: calc(33% - .5em);
    }
    #outer {
        width: 95%;
    }
    #content {
        margin-top: 40px;
    }

   

    header h1 {
        font-size: 1.5em;
    }
    footer img {
        vertical-align: middle;
        display: inline;
    }
   
}

@media screen and (min-width: 1200px) {
     #menu {
        width: 35%;
    } 
}

@media screen and (min-width: 1600px) {
    .card {
        flex-basis: calc(25% - 1em);
    }
    #outer {
        width: 95%;
    }
    /*
    .card:nth-of-type(3n + 1) {
        transform: rotate(0deg);
        border-left: none;
    }
    .card:nth-of-type(3n) {
        transform: rotate(0deg);
        border-right: none;
    }
    .card:nth-of-type(4n + 1) {
        transform: rotate(-4deg);
        border-left: 1px solid #ccc;
    }
    .card:nth-of-type(4n) {
         transform: rotate(4deg);
        border-right: 1px solid #ccc;
    }
   /*    
}

 /*
    .card:nth-of-type(3n + 1) {
         first 
        transform: rotate(-2deg);
        border-left: 1px solid #ccc;
    }
    .card:nth-of-type(3n) {
        * third 
        transform: rotate(2deg);
        border-right: 1px solid #ccc;
    }
    */
