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

body {
    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 and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

body, html{
    background: #e5e5e5;
}
body{
    font-size: 1em;
    line-height: 1.5;
}
.wrapper{
    position: relative;
    margin:0;
    padding:0;
}
.left{
    float:left;
}
.leftside, .rightside, h1, ul, li{
    margin:0;
    padding:0;
}
.leftside{
    margin:30px 0 0 30px;
}
a:link, a:visited, a:active{
    color:#000;
    text-decoration: underline;
}
.main_selected{
    font-family: 'Theinhardt-Heavy', Arial;
}
#news_container_left, #news_container_right{
    margin-top:22px;
}
.content_column a, #news_container_left a, #news_container_right a{
    font-family: 'Theinhardt-Medium', Arial;
}
h1 a:link{
    text-decoration: none;
}
a:hover{
    text-decoration: none;
}
h1.logo, h1.logo a{
    color:#000;
    font-size: 28px;
    font-family: 'Theinhardt', Arial;
    width: 500px;
    overflow: hidden;
}
.content_column{
    width:400px;
    margin-top:10px;
    float:left;
    margin-right: 32px;
}
.leftside{
    
}
.menus{
    overflow: hidden;
    margin-top:15px;
    display: block;
    width:1200px;
}
#secnav_container{
    float:left;
    margin-bottom: 20px;
}
.secnav ul li a.sub_selected{
    font-family: 'Theinhardt-Medium', Arial;
    font-size: 13px;
}
.secnav ul li a{
    font-size:12px;
    text-transform: uppercase;
    font-family: 'Theinhardt', Arial;
}
.secnav ul li{
    height:8.3px;
    line-height: 0.9em;
}
.secnav.notfirst{
    margin-left: 35px;
}
.mainnav, .secnav{
    float:left;
}
.secnav{
    margin-left:0px;
    width:147px;
    margin-right:20px;
}
.individual_secnav2{
    margin-right:33px;
}
.mainnav{
    font-size:16px;
    font-family: 'Theinhardt', Arial;
    text-shadow:0px 0px 0px #e5e5e5;
    margin-right:38px;
}
#news_container{
    width:1000px;
}
#news_container_left{
    width:460px;
    float:left;
    overflow: hidden;
}
#news_container_right{
    width:450px;
    float:left;
    overflow: hidden;
}
.newsentry{
    font-size:13px;
    vertical-align: top;
    border-bottom: 1px #ccc solid;
    padding-bottom: 15px;
    width:400px;
    margin-right: 50px;
    color:#000;
    max-width: 400px;
    word-wrap:break-word;
    float:left;
    clear: right;
}
.newsentry h4.news_title{
    font-size: 16px;
    margin-bottom: 0px;
    text-transform: uppercase;
    font-family: 'Theinhardt-Medium', Arial;
}
.newsentry .news_date{
    margin-bottom: 8px;
    font-family: 'Theinhardt-light', Arial;
}
a.cv{
    font-family: 'Theinhardt-Medium', Arial;
}
#content, .content_column{
    font-size:13px;
    padding-bottom: 10px;
    font-family:'Theinhardt-Light', Arial;
}
h3.worktitle{
    margin:17px 0px -6px 0px;
    padding:0px;
    font-size: 20px;
    text-decoration: underline;
    text-transform: uppercase;
    color:#000;
    font-family:'Theinhardt-medium', Arial;
}
h3.drawings_title{
    margin-top:39px;
}
.project_video_icon{
    float:left;
    margin:21px 0 0 13px;
}
.project_title{
    margin-top:-2px;
    float:left;
}
.column{
    margin-right: 25px;
}
.loading{
    display: none;
}
#overlay{
    cursor: pointer;
    background: url() no-repeat top left;
    background-size: contain;
    background-color: #e5e5e5;
    width:100%;
    height:100%;
    position:fixed;
    top:0;
    left:50%;
    text-align:center;
    box-shadow: -3px 0px 20px 1px #858585;
    display:none;
}
#vidplayer{
    position:fixed;
    top:50%;
    margin-top:-100px;
    left:40%;
}
#close{
    position:fixed;
    top:25px;
    right:25px;
}
#prev, #next{
    position:fixed;
    top:50%;
}
#opener{
    display: none;
}
#prev, #opener{
    background: url('../img/b00.png') no-repeat top left;
    left:25%;
    width: 93px;
    height: 137px;
    cursor: pointer;
    margin-top:-40px;
}
.preloaded{
    display: none;
}
#prev:hover, #opener:hover{
    background: url('../img/b01.png') no-repeat top left;
}
#next{
    width: 93px;
    height: 137px;
    margin-top:-40px;
    cursor: pointer;
    right:2%;
    background: url('../img/n00.png') no-repeat top left;
}
#next:hover{
    background: url('../img/n01.png') no-repeat top left;   
}
#gallery_controls{
    display: none;
}
#opener{
    position: fixed;
    top: 50%;
    margin-top:-40px;
    left:52%;
}
.bold{
    font-family:'Theinhardt-medium', Arial;
}
#news_controls{
    font-family:'Theinhardt', Arial;
    font-size:12px;
    width:850px;
    margin-top:15px;
    height:40px;
}
.newer{
    float:left;
}
.older{
    float:right;
}
#caption{
    position: fixed;
    bottom:40px;
    right:50px;
    font-family:'Theinhardt-medium', Arial;
    background: #ffffff;
    text-transform: uppercase;
    color: #666362;
    padding:5px 10px;
    font-size: 10px;
    opacity:0.6;
    display: none;
}
::selection
{
color:#4F4F4F;
background-color: #FFFF00;
}
::-moz-selection
{
color:#4F4F4F;
background-color: #FFFF00;
}
p{
    margin-top: 0em;
}
#addcv_div{
    font-size:13px;
}
h2{
    margin-bottom:10px;
}
#addcv_div form{
    margin-top: -30px;
}
.admin_thumb{
    max-width: 100px;
    max-height: 100px;
}
.admin_project_delete_imgs{
    max-width: 350px;
}
.admin_front_delete_imgs{
    max-width: 600px;
}
.admin_front_delete_imgs img, .admin_project_delete_imgs img{
    margin-right: 10px;
    margin-top: 10px;
    vertical-align: top;
    border:1px solid #000;
}
.uploader{
    padding:0px;
    padding-left: 10px;
    font-size: 10px;
}
.formitem{
    width:350px;
}
#addnews, #addproject{
    float:left;
    margin-right:40px;
}
#modifynews, #modifyproject{
    float:left;
}
.existing_news_block{
    overflow: hidden;
    cursor: move;
}
.admin_news_title{
    display: inline;
    margin-left: 10px;
}
textarea{
    margin-bottom: -5px;
}
.projectsaved{
    display: none;
}
#existing_documents ul{
    margin-left:20px;
}

/* ==========================================================================
   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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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;
    }

    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;
    }
}
