/* =============================================================================
   HTML5 Boilerplate CSS: h5bp.com/css
   ========================================================================== */

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%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
html, button, input, select, textarea { font-family: sans-serif; color: #222; }
body { margin: 0; font-size: 1em; line-height: 1.4; }

::-moz-selection { background: #666666; color: #fff; text-shadow: none; }
::selection { background: #666666; color: #fff; text-shadow: none; }

a { color: #00e; }
a:visited { color: #551a8b; }
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, serif; _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; }

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

.chromeframe { margin: 0.2em 0; background: #ccc; color: black; padding: 0.2em 0; }



/* ===== Primary Styles ======================================================== */

@font-face {
    font-family: 'RobotoRegular';
    src: url('font/roboto/Roboto-Regular-webfont.eot');
    src: url('font/roboto/Roboto-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/roboto/Roboto-Regular-webfont.woff') format('woff'),
         url('font/roboto/Roboto-Regular-webfont.ttf') format('truetype'),
         url('font/roboto/Roboto-Regular-webfont.svg#RobotoRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BebasNeueRegular';
    src: url('font/bebas-neue/BebasNeue-webfont.eot');
    src: url('font/bebas-neue/BebasNeue-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/bebas-neue/BebasNeue-webfont.woff') format('woff'),
         url('font/bebas-neue/BebasNeue-webfont.ttf') format('truetype'),
         url('font/bebas-neue/BebasNeue-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helsinki';
    src: url('font/helsinki/helsinki-webfont.eot');
    src: url('font/helsinki/helsinki-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/helsinki/helsinki-webfont.woff') format('woff'),
         url('font/helsinki/helsinki-webfont.ttf') format('truetype'),
         url('font/helsinki/helsinki-webfont.svg#BebasNeueRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}


body {
  background-color: #ffffff;
  margin-top: 39px;

  background-image: url(img/bg.png);
  -webkit-font-smoothing: antialiased;
}

/* Main */

header {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  
  height: 40px;
  
  border-top: 3px solid #cd0000;

}

#header-inner {
  margin: 0 auto;
  width: 960px;
}

#header-inner h1 {
  position: relative;
  width: 515px;
  overflow: hidden;
}

#subheader {
  position: absolute;
  top: 0px;
  left: 262px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#subheader li {
  padding: 5px 0;
  height: 33px;
}

#main {
  margin: 0 auto;
  width: 960px;
}

.section {
  position: relative;
  margin-bottom: 56px;
  padding: 20px;
  /*width: 918px;*/
  background-color: #ededed;
  border: 1px solid #dddddd;
  border-top: 2px solid #cd0000;
}

.item {
  margin-bottom: 20px;
  position: relative;
}

.item.thumbnail {
  padding-left: 172px;
  /*width: 746px;*/
  min-height: 152px;
}

.thumbnail .preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border: 1px solid #dddddd;
  border-radius: 2px;
  -moz-border-radius: 2px;
}

.thumbnail .preview:hover {
  /*border: 1px solid #cd0000;*/
}

.preview img, .gallery .img img {
  position: relative;
}

.gallery {
  overflow: auto;
}

.gallery .img {
  position: relative;
  float: left;
  margin: 5px 6px;
  width: 77px;
  height: 77px;
  border: 1px solid #dddddd;
  border-radius: 2px;
  -moz-border-radius: 2px;
  opacity: .75;
}

.gallery .img:hover {
  /*border-color: #cd0000;*/
  opacity: 1;
}

/*h2:after {
  content: "";
  position: absolute;
  top: 0;
  right: -25px;
  width: 0;
  height: 0;
  border-top: 35px solid transparent;
  border-left: 25px solid #cd0000;
  border-bottom: 8px solid transparent;
  -webkit-transform: rotate(0.05deg); 
  -moz-transform: scale(1.1);
  -o-transform: rotate(0.05deg);
  transform: rotate(0.05deg);
}*/

h2:after {
  content: "";
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-top: 25px solid #cd0000;
  -webkit-transform: rotate(0.05deg); 
  -moz-transform: scale(1.1);
  -o-transform: rotate(0.05deg);
  transform: rotate(0.05deg);
}

.shadow {
  position: relative;
  /*background:#fff;
  -webkit-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;*/
}

.shadow:before,
.shadow:after {
  content:"";
  position:absolute;
  z-index:-2;
}

.preview.shadow:before,
.preview.shadow:after,
.gallery .img.shadow:before,
.gallery .img.shadow:after {
  z-index: 0;
}

.shadow:before {
  top:10px;
  bottom:10px;
  left:0;
  right:0;
  -webkit-box-shadow:0 0 15px rgba(0,0,0,0.6);
  -moz-box-shadow:0 0 15px rgba(0,0,0,0.6);
  box-shadow:0 0 15px rgba(0,0,0,0.6);
  -moz-border-radius:10px / 100px;
  border-radius:10px / 100px;
}

.preview.shadow:before,
.gallery .img.shadow:before {
  top: 0px;
  -moz-border-radius: 0 0 10px 10px / 100px;
  border-radius: 0 0 10px 10px / 100px;
}


/* Text styles */

body {
  font-family: 'RobotoRegular', sans-serif;
  font-size: 14px;
  color: #404040;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helsinki', sans-serif;

  /*font-family: 'Lato', sans-serif;
  font-family: 'Asap', sans-serif;
  font-family: 'Ruda', sans-serif;
  font-family: 'Squada One', cursive;*/

  -webkit-text-stroke: 1px transparent;
}

header h1, .section h2 {
  display: inline-block;

  margin: 0 0 0 -34px;
  padding: 5px 40px;
  font-size: 24px;
  color: #ffffff;

  background-color: #cd0000;
}

.section h2 {
  position: absolute;
  margin: 0 0 0 -35px; /* one extra px because of .section border */
  top: -36px;
  left: 0;
}

h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

p {
  margin: 0;
  padding: 0 0 14px 12px;
}

p.uses {
  margin-top: -12px;
  font-size: 12px;
}

/* Link styles */

a:link, a:active, a:visited {
  outline: none;
  color: #cd0000;
  font-style: italic;
  text-decoration: none;
}

a:hover {
  color: #666666;
  text-decoration: underline;
}

a.external {
  background: url('img/offsiteRed.png') center right no-repeat;
  padding-right: 15px;
}

a.external:hover {
  background: url('img/offsiteGrey.png') center right no-repeat;
}

h1 a:link, h1 a:active, h1 a:visited, h1 a:hover {
  color: #cd0000;
  font-style: normal;
  text-decoration: none;
}

h3 a:link, h3 a:active, h3 a:visited {
  color: #404040;
  font-style: normal;
}

h3 a:hover {
  color: #cd0000;
}

h3 a.external {
  background: url('img/offsiteGrey.png') center right no-repeat;
}

h3 a.external:hover {
  background: url('img/offsiteRed.png') center right no-repeat;
}

p a {
  padding-right: 2px;
}


/* =============================================================================
   Media Queries
   ========================================================================== */

@media screen and (max-width: 1000px) {
	#main {
    width: 95%;
  }
}

@media screen and (max-width: 800px) {
  .item.thumbnail {
    padding-left: 122px;
    min-height: 102px;
  }
  .thumbnail .preview {
    width: 100px;
    height: 100px;
  }
  .thumbnail .preview img {
    width: 100px;
    height: 100px;
  }
}

@media screen and (max-width: 550px) {
  #subheader {
    display: none !important; 
    visibility: hidden;
  }
}

@media screen and (max-width: 480px) {
  .item.thumbnail {
    padding-left: 0px;
    min-height: 0px;
  }
  .thumbnail .preview {
    display: none !important; 
    visibility: hidden;
  }  

}



/* =============================================================================
   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; *line-height: 0; }
.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; }