/* HTML5 ✰ Boilerplate
 * ==|== normalize ==========================================================
 */

article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }

html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
body { margin: 0; font-size: 13px; line-height: 1.231; }
body, button, input, select, textarea { font-family: 'Abel', sans-serif; color: #222; }

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }

a { color: #039; }
a:visited { color: #039; }
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

abbr[title] { border-bottom: 1px dotted; }
b, strong { font-weight: bold; }
blockquote { margin: 1em 40px; }
dfn { font-style: italic; }
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
ins { background: #ff9; color: #000; text-decoration: none; }
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
q { quotes: none; }
q:before, q:after { content: ""; content: none; }
small { font-size: 85%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; list-style-image: none; margin: 0; padding: 0; font-family:'Abel';}
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
svg:not(:root) { overflow: hidden; }
figure { margin: 0; }

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
label { cursor: pointer; }
legend { border: 0; *margin-left: -7px; padding: 0; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; *overflow: visible; }
table button, table input { *overflow: auto; }
button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }
input[type="checkbox"], input[type="radio"] { box-sizing: border-box; }
input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; resize: vertical; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }

table { border-collapse: collapse; border-spacing: 0; }
tr,td { vertical-align: top; }
td{padding:0 10px 2px 0;}

.profile a {
color:#039;
}
/* ===================================================
    Initializr styles
    http://verekia.com/initializr/responsive-template
    Author: Jonathan Verrecchia
   =================================================== */

body{ font:16px/24px 'Abel', sans-serif; }
h1,h2,h3,h4,h5{font-family:'Abel';font-weight:500;letter-spacing: 1px;}
h3{padding-bottom: 0;}
.wrapper{
    width:90%;
    margin:0 5%;
}

article{
  width:90%;
    margin-left: auto;
    margin-right: auto;
}
/* ===================
    ALL: White Theme
   =================== */
header {
    margin-left: auto;
    margin-right: auto;
}
#header-container{ padding-bottom:5px; padding-top:5px; }
#footer-container{ border-top:    1px solid #E5E5E5; }
#main aside      { border-top:    20px solid #e44d26; }

#header-container,
#footer-container,
#main aside{
    background: #FFFFFF;
}

#siteTitle{ text-align: center; color:white; font-family:'Oxygen'; font-weight: 500;}
#siteTitle>a{color:black; text-decoration:none;}

::-moz-selection { background: #f16529; color: #fff; text-shadow: none; }
::selection      { background: #f16529; color: #fff; text-shadow: none; }

/* ==============
    CUSTOM: Classes Extending the Base Theme
   ============== */

form {
    background: #F0F0F0;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    padding: 5px 5px 5px 5px;
    width: 100%;
}

input, textarea {
    padding: 9px;
    border: solid 1px #E5E5E5;
    outline: 0;
    font: normal 14px/100% Verdana, Tahoma, sans-serif;
    width: 90%;
    background: #FFFFFF left top repeat-x;
    background: -webkit-gradient(linear, left top, left 10, from(#FFFFFF), color-stop(4%, #EFEFEF), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #EFEFEF 1px, #FFFFFF 10px);

    }
textarea {
    max-width: 600px;
    width:100%;
    height: 150px;
    line-height: 150%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
input:hover, textarea:hover,
input:focus, textarea:focus {
    border-color: #C9C9C9;
    -webkit-box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 8px;
    }
form label {
   float:left;
   display:block;
   width:10%;
   padding-right:15px;
   line-height: 2.2em;
    color: #999999; 
    clear:both;
}
form ul li {
    line-height: 20px;
    list-style: none;
    padding: 5px 15px 5px 0px;
    margin-bottom: 2px;
}
button {
    width: auto;
    padding: 9px 15px;
    background: #617798;
    border: 0;
    font-size: 14px;
        letter-spacing: 3px;
    color: #FFFFFF;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.newsImage {border: 1px solid #333; width:280px;}

.works-thumbs a {
  text-decoration: none;
}

/* ==============
    MOBILE: Menu
   ============== */
nav a{
    display:block;
    margin-bottom:10px;
    padding:15px 0;
    background: #E5E5E5;

    text-align:center;
    text-decoration:none;
    font-weight:500;
  letter-spacing: 1px;
}

nav a, nav a:hover, nav a:visited{
    color:black;
}

nav a:hover{
    text-decoration:underline;
}

/* ==============
    MOBILE: Main
   ============== */

.wrapper {
  margin-left: auto;
  margin-right: auto;
}
#main{  padding:0; }


#main aside{
    color:white;
    padding:0px 5% 10px;
}

#footer-container footer{
    color:#444;
    padding:2px 0;
}

.works-thumbs {
  width:70px;
  height:185px;
  float:left;
  text-align: center;
  margin:0 3px 0 3px;
  padding:0 4px 18px 4px;
}

.works-thumbs img {
  padding-bottom:3px;
  height:80px;
}

.blank-box:last-child{
    visibility: hidden;
}
.fancybox-thumbs>img{
    padding:3px;
    height:75px;
}

.fancybox-news-thumbs>img{
    padding:3px;
    /*DEBUG height:200px;*/
    height:400px;
}

.fancybox-prev span {
    left: -30px;
    background-position: 0 -36px;
}

.fancybox-next span {
    right: -30px;
    background-position: 0 -72px;
}

#siteTitle{
  width:80%;
  font-size:1.6em;
  letter-spacing: 2px;
}

#menuIcon {
  width:1.4em;
  position:absolute;
  top:24px;
  right:20px;
  background:#E5E5E5;
  font-size:1.2em;
  text-align: center;
}
#navList.js { display: none; }

/* ===============
    ALL: IE Fixes
   =============== */

.ie7 #siteTitle{ padding-top:20px; }


/* ==|== non-semantic helper classes ======================================== */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }
.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; }


/* ==|== media queries ====================================================== */

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE: Menu
   ==================== */
#menuIcon { display: none; }
#navList.js { display: block; }

#header-container {
  border-bottom: 1px solid #E5E5E5;
  width:100%;
  margin-left:auto;
  margin-right:auto;
}
#siteTitle{
  width:480px;
  font-size:2.0em;
  letter-spacing: 2px;
  margin-left:auto;
  margin-right:auto;
}
nav {
  width:480px;
  display:block;
  margin-left:auto;
  margin-right:auto;
}
nav a{
  float:left;
  width:auto;
  margin:0 1.7%;
  padding:2px 2%;
  margin-bottom:0;
  background: #FFFFFF;
}

nav li:first-child a{ margin-left:0;  }
nav li:last-child  a{ margin-right:0; }       

#main{  padding:10px 0; }

  /* ========================
    INTERMEDIATE: Thumbnail Resizes
   ======================== */      
    .fancybox-thumbs>img{
        padding:4px;
        height:110px;
    }

    .fancybox-news-thumbs>img{
        padding:4px;
        /*DEBUG height:250px;*/
        height:450px;
    }

    .works-thumbs {
      width:100px;
      height:180px;
      float:left;
      text-align: center;
      padding:0 8px 18px 8px;
    }
      
    .works-thumbs img {
      padding-bottom:5px;
      height:100px;
    }
    
    .blank-box:last-child {
        visibility: visible;
    }
    .newsImage {width:400px;}

/* ========================
    INTERMEDIATE: IE Fixes
   ======================== */

    nav ul li{
        display:inline;
    }   
    .oldie nav a{
        margin:0 0.7%;      
    }
}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE: CSS3 Effects
   ==================== */

    #main aside{
        -webkit-box-shadow:0 1px 10px #E5E5E5;
           -moz-box-shadow:0 1px 10px #E5E5E5;
                box-shadow:0 1px 10px #E5E5E5;
    }

/* ============
    WIDE: Menu
   ============ */
  .wrapper{
    width:80%;
    margin:0 5%;
    margin-left: auto;
    margin-right: auto;
  }
    #siteTitle{
        float:left;
    padding-right: 0;
    font-size:1.6em;
    letter-spacing: 3px;
    width:25%;
    }
    nav{
    float:left;
    width:400px;
    margin-left: auto;
    margin-right: auto;
    }
  nav a{
    width:auto;
    margin:3% 1.7%;
    padding:4% 1%;
    margin-bottom:0;
  }
  nav a.langToggle{
    font-size:0.7em;
    margin-left: 0%;
    padding:4% 1%;
  } 

  #main{  padding:20px 0; }  
/* ========================
  INTERMEDIATE: Thumbnail Resizes
 ======================== */      
  .fancybox-thumbs>img{
      padding:5px;
      height:150px;
  }

  .fancybox-news-thumbs>img{
      padding:5px;
      height:350px;
  }
    .fancybox-prev span {
            left: -45px;
            background-position: 0 -36px;
    }

    .fancybox-next span {
            right: -45px;
            background-position: 0 -72px;
    }
  .works-thumbs {
    width:130px;
    height:205px;
    float:left;
    text-align: center;
    padding:0 14px 24px 14px;
  }
    
  .works-thumbs img {
    padding-bottom:6px;
    height:130px;
  }

  .newsImage {width:600px;}

/* ============
    WIDE: Main
   ============ */

    #main article{
        width:1080px;
    }
        
    #main aside{
        float:right;
        width:32%;
    }


    #showcaseGrid {
        width: 780px;
    }

/* ============
    WIDE: Forms
   ============ */
    form {
            background: #F0F0F0;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            border-radius: 5px;
            padding: 20px 5px 20px 10px;
            width: 70%;
    } 
    input {
        width:40%;
    }
}

@media only screen and (min-width: 1140px) {
/* ===============
    Maximal Width
   =============== */
   .wrapper{
      width:900px;
      margin:0 5%;
      margin-left: auto;
      margin-right: auto;
    }
    #siteTitle{
      width:30%;
      font-size: 2.6em;
      width:auto;
    }
    nav {
      margin-left:auto;
      margin-right:auto;
    }
    nav a{
      padding:4% 2%;
    }

    nav a.langToggle{padding:4% 0;}

    .works-thumbs {
      width:150px;
      height:180px;
      float:left;
      text-align: center;
      padding:0 16px 48px 16px;
    }
      
    .works-thumbs img {
      padding-bottom:8px;
      height:100px;
    }
    .works-thumbs img {
      padding-bottom:7px;
      height:150px;
    }

    .newsImage {width:250px;}

/* ==|== print styles ======================================================= */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } 
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .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; }
  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; }
}
