/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

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

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    font-family: arial;
}
h1{
    font-size: 2em;
    font-weight: normal;
    margin: 0;
    color: #fff;
    text-shadow: 2px 1px 2px #000;
}
h2{
    font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
    font-size: 1.1em;
    font-weight: normal;
    text-transform: uppercase;
    padding-bottom: 15px;
    margin-bottom: 20px;
    background: url(/img/dots.png) repeat-x bottom;
}
h3{
    font-size: 0.8em;
    font-weight: bold;
    margin: 10px 0 3px 0;
    color: #000;
}
p{
    line-height: 1.7em;
    font-size: .8em
}
b{
    color: #f78f1e;
}
a,
a:visited{
    color: #f08d1a;
}
#error{
    width: 100%;
    min-height: 600px; 
    margin-top: -400px;
    background: url('/img/404-BG.png') bottom left no-repeat #fff;
    position:relative;
    z-index: 6;
}
#page{
    max-width: 990px;
    margin: 0 auto;
}
header{
    float: left;
    width: 100%;
}
#logo{
    float: left;
    margin: 20px 0;
}
#logo img{
    width:160px;
}
li{
    line-height: 1.7em;
    font-size: .8em
}
nav{
    float: right;
}
nav ul{
    margin: 0;
    padding: 0;     
}
nav ul li{
    float: left;
    display: inline;
    font-size: 1.1em;
    font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
    text-transform: uppercase; 
}
nav ul li a{
    padding: 60px 20px 60px 20px;
    display: block;
    color: #3b3b3b;
    font-weight: normal;
    transition: 0.2s linear;
}
nav ul li a:hover{
    background-color: #f78f1e;
    color: #fff;
}
section{
    overflow: hidden;
    width: 100%
}
#columns{
    margin-top: 20px
}
#banner{
    height: 240px;
    width: 70%;
    float: right;
    background-size: cover;
    overflow: hidden;
    z-index: 0;
    position: relative;
}
#overlay{
    width: 96%;
    padding: 1% 2%;
    text-align: right;
    display: block;
    position: absolute;
    z-index: 2; 
    margin-top: -55px;
    background-color: rgba(0, 0, 0, 0.20);
}
#overlay-contact{
    width: 96%;
    padding: 1% 2%;
    text-align: right;
    display: block;
    position: absolute;
    z-index: 2; 
    margin-top: -83px;
    background-color: rgba(0, 0, 0, 0.20);
}
section #full-width{
    width: 96%;
    padding: 0 2% 0 2%;
    height: auto;
    float: left;
}
section #left-col{
    width: 24%;
    padding: 0 2% 17% 2%;
    height: auto;
    float: left;
    background: url(/img/watermark.png) no-repeat bottom right #f6f6f6; 
}
section #right-col{
    width: 70%;
    margin-left: 2%;
    float: left;
    padding: 0%;
    height: auto;
}
section #right-col #first{
    width: 40%;
    padding: 2% 5% 0 5%;
    float: left
}
section #right-co, #first article span.date{
    color: #000;
    font-weight: normal;
}
section #right-col #second{
    width: 45%;
    padding: 2% 0 0 5%;
    float: left;
    background: url(/img/left-shadow.png) no-repeat left;
    min-height: 400px
}
    .blog{
        clear: both;
        width: 100%;
        min-height: 100px;
        margin-bottom: 10px;
    } 

    .blog img{
        float: left;
        width: 100px;
        margin-right: 10px;
    }
    .blog p{
        float: left;
        max-width: 180px!important;
        margin-top: 0;
    }

    .conference{
        clear: both;
        width: 100%;
    }

section #right-col .groups{
    width: 47%;
    margin-right: 0px;
    margin-top: 10%;
    float: left;
}
section #right-col .groups:nth-child(2n+2){
    margin-right: 5%;
}
#interests h1{
    font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
    font-size: 1.1em;
    font-weight: normal;
    text-transform: uppercase;
    padding-bottom: 5px!important;
    margin-bottom: 0px!important;
    background: url(/img/dots.png) repeat-x bottom;
    color: #2a2a2a;
    text-shadow: none;
}
section #interests{
    width: 98%;
    padding: 2%;
    margin-bottom: 10px;
    text-align: left;
    float: left; 
    overflow: hidden;
}
section #interests section{
    width: auto!important;
}
section #interests:nth-child(2n+2){
    background-color: #ebebeb;
}
section #interests img{
    width: 140px;
    margin: 0 20px 0 0;
    float: left;
    box-shadow: 0 1px 5px #888888;
}
article{

}
article p{
    font-size: .8em;
    margin: 0 0 30px 0;
    padding: 0px;
}
article a{
    color: #f08d1a;
}
article h3{
    color: #f08d1a;
}
.map{
    width: 100%;
    height: 250px;
    float: left;
    padding: 0 0 30px 0;
}
.cell{
    width: 10%;
    padding-right: 2%;
}
div.pagination {
    padding: 0 0 20px 0;
    margin: 0;
}
label{
    display: inline-block;
    width: 40px;
}

div.pagination a {
    padding: 2px 5px 2px 5px;
    margin: 2px;
    border: 1px solid #adaec0;
    text-decoration: none; /* no underline */
    color: #717171;
    text-decoration: none!important;
}
div.pagination a:hover, div.pagination a:active {
    border: 1px solid #717171;
    color: #000;
    text-decoration: none;
}
div.pagination span.current {
    padding: 2px 5px 2px 5px;
    margin: 2px;
    border: 1px solid #717171;
    text-decoration: none;			
    background-color: #f08d1a;
    color: #FFF;
    }
div.pagination span.disabled {
    padding: 2px 5px 2px 5px;
    margin: 2px;
    border: 1px solid #EEE;
    color: #DDD;
    }
footer{
    width: 90%;
    padding: 1% 2%;
    font-size: 0.7em;
    height: auto
}
footer a,
footer a:visited,
footer a:hover{
    color: #000
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 921px) {
    /* Style adjustments for viewports that meet the condition - Browser */
    .hidden-browser{
        display: none !important;
        visibility: hidden;
    }
}

@media only screen and (max-width: 920px) and (min-width: 530px) {
    /* Style adjustments for viewports that meet the condition - Tablet */
    #page{
        max-width: none;
        width: 100%;
        margin: 0 auto;
    }
    #logo{
        float: none;
        width: 100%;
    }
    #logo img{
        display: block;
        width:130px;
        margin: 0 auto;
    }
    nav{
        float: none;
        margin: 0 auto;
    }
    nav ul{
        margin: 0;
        padding: 0; 
        text-align: center
    }
    nav ul li{
        float: none;
        display: inline-block;
        font-size: 1.1em;
        font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
        text-transform: uppercase; 
    }
    nav ul li a{
        padding: 5px 20px 5px 20px;
        margin-bottom: 5px;
        display: block;
        color: #3b3b3b;
        font-weight: normal;
        transition: 0.2s linear;
    }
    nav ul li a:hover{
        background-color: #f78f1e;
        color: #fff;
    }
    section #full-width{
        width: 90%;
        padding: 0 5% 0 5%;
    }
    section #left-col{
        width: 90%;
        padding: 0 5% 2% 5%;
        float: left;
        background: url(/img/watermark.png) no-repeat bottom right #f6f6f6; 
    }
    section #right-col{
        width: 100%;
        float: left;
        margin-left: 0px;
        padding: 0%;
        height: auto;
    }
    section #right-col #first{
        width: 40%;
        padding: 2% 5% 0 5%;
        float: left
    }
    section #right-col #second{
        width: 45%;
        padding: 2% 0 0 5%;
        float: left;
        background: url(/img/left-shadow.png) no-repeat left;
        min-height: 400px
    }

    #banner{
        background-size: cover;
        width: 100%;
        float: right;
    }
    #banner #overlay{
        margin-top: 180px
    }
    .hidden-tablet{
        display: none !important;
        visibility: hidden;
    }
}

@media only screen and (max-width: 529px) {
    /* Style adjustments for viewports that meet the condition - Mobile */
    #page{
        max-width: none;
        width: 100%;
    }
    #logo{
        float: none;
        width: 100%;
    }
    #logo img{
        display: block;
        width:130px;
        margin: 0 auto;
    }
    .menu{
        font-size: 1em;
        font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
        text-transform: uppercase; 
        width: 100%;
        padding: 10px 0 10px 0;
        display: block;
        background-color: #f78f1e;
        color: #fff;
        font-weight: normal;
        transition: 0.2s linear;
        text-align:center;
        cursor:pointer
    }
    nav{
        float: none;
        width: 100%;
    }
    nav ul{
        margin: 0;
        padding: 0;
    }
    nav ul li{
        font-size: 1em;
        font-family: "futura-pt", Tw Cen MT, Helvetica, arial;
        text-transform: uppercase; 
        width: 100%;
    }
    nav ul li a{
        padding: 10px 20px 10px 20px;
        display: block;
        color: #3b3b3b;
        font-weight: normal;
        transition: 0.2s linear;
        text-align:center;
    }
    nav ul li a:hover{
        background-color: #f78f1e;
        color: #fff;
    }
    #banner{
        display: none;
    }
    section #full-width{
        width: 90%;
        padding: 0 5% 0 5%;
    }
    section #left-col{
        width: 90%;
        padding: 0 5% 2% 5%;
        float: left;
        background: url(/img/watermark.png) no-repeat bottom right #f6f6f6; 
    }
     section #right-col{
        width: 100%;
        float: left;
        margin-left: 0px;
        padding: 0%;
        height: auto;
    }
    section #right-col #first{
        width: 90%;
        padding: 2% 5% 0 5%;
        float: left
    }
    section #right-col #second{
        width: 90%;
        padding: 2% 5% 0 5%;
        float: left;
        background: none;
        min-height: 400px
    }
    section #interests img{
        width: 50px!important;
    }
    .cell{
        width: 100%;
    }
    .hidden-mob {
        display: none !important;
        visibility: hidden;
    }

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@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;
        color: #f08d1a;
    }

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

/*

/* Browser Resets
*********************************/
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none; z-index: 0}

/* FlexSlider Necessary Styles
*********************************/
.flexslider {margin: 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .slides {display: block;}
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}

/* FlexSlider Default Theme
*********************************/
.flexslider { margin: 0; background: #fff; zoom: 1; }
.flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
.loading .flex-viewport { max-height: 300px; }
.flexslider .slides { zoom: 1; }
.carousel li { margin-right: 5px; }
