﻿/* Theme based on HTML5 Boilerplate */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio[controls], canvas, video { display: inline-block; *display: inline; *zoom: 1; }

html { font-size: 100%; overflow-y: scroll; -webkit-overflow-scrolling: touch; -webkit-tap-highlight-color: rgba(0,0,0,0); -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: sans-serif; color: #222; }

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

/* Links */
a { color: #303030; }
a:visited { color: #333; }
a:focus { outline: thin dotted; }
a:hover, a:active { outline: 0; }

/* Typography */
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: transparent; font-weight: bold; color: inherit; }
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; }

/* Lists */
ul, ol { margin: 1em 0; padding: 0 0 0 40px; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }

/* Embedded content */
img { border: 0; -ms-interpolation-mode: bicubic; }
svg:not(:root) {
    overflow: hidden;
}

/* Figures */
figure { margin: 0; }

/* Forms */
form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { border: 0; *margin-left: -7px; padding: 0; }
label { cursor: pointer; }
button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }
button, input { line-height: normal; *overflow: visible; }
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"] { -moz-box-sizing: content-box; -webkit-box-sizing: content-box; box-sizing: content-box; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
textarea { overflow: auto; vertical-align: top; }

/* Colors for form validity */
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { background-color: #f0dddd; }
.invalid { color: #f00000; }

/* Tables */
table { border-collapse: collapse; border-spacing: 0; }

/**** Primary styles - Author: Diego Luces *****/
body{
	font-family: Helvetica, Helvetica Neue, Arial, sans-serif;
	
}

h2, h3{margin:30px 0;font-weight:normal;}
h2{font-size: 20px;}
h3{font-size: 16px;}

.wrapper{
	margin:auto;
	width:100%;
	position: relative;
}

#title{
  text-align: center;
  height: 90px;
	margin: 0;
	
	-webkit-transition: all 0.6s ease;   
	   -moz-transition: all 0.6s ease;
      -ms-transition: all 0.6s ease; 
       -o-transition: all 0.6s ease;
          transition: all 0.6s ease;
}

#header-container{
  z-index: 2;
  position: relative;
	background: #1C337F url('../images/header-bg.jpg') repeat-x 0 0;
	-webkit-box-shadow:0 0 40px 0 #333;
	   -moz-box-shadow:0 0 40px 0 #333;
	        box-shadow:0 0 40px 0 #333;
}

#main-menu {
  text-align: center;
}

#social-media-links {
  position: fixed;
  top: 10px;
  right: 10px;
}

#social-media-links li {float: right;}
#social-media-links a { background: url('../images/social-sprite.png?v=2') no-repeat top left; overflow: hidden; text-indent: -999em; display: block; width: 40px; height: 40px; } 
#social-media-links a.fb-logo { background-position: 0px 0px; } 
#social-media-links a.rss-logo { background-position: 0px -100px; } 
#social-media-links a.twitter-logo { background-position: 0px -50px; }
#social-media-links a:hover {
  position: relative;
  top: 2px;
  -webkit-transition: all 0.2s ease;   
	   -moz-transition: all 0.2s ease;
      -ms-transition: all 0.2s ease; 
       -o-transition: all 0.2s ease;
          transition: all 0.2s ease;
}

#menu li, #social-media-links li{
	display:inline;
	margin-left: 5px;
}

#menu a{
  background: transparent 999em 999em;
	text-decoration:none;
	display: inline-block;
	padding: 10px;
	color: #fff;
	-webkit-transition: all 0.2s ease;   
	   -moz-transition: all 0.2s ease;
      -ms-transition: all 0.2s ease; 
       -o-transition: all 0.2s ease;
          transition: all 0.2s ease;
}

#main {
  z-index: 1;
}

#main p{
	font-size:16px;
	line-height: 26px;
}
#main li {font-size:14px;line-height: 20px;}

#main-content header{
	margin-bottom:30px;
	padding-bottom:5px;
	-webkit-box-shadow:0 45px 60px -60px #AAA;
	   -moz-box-shadow:0 45px 60px -60px #AAA;
	        box-shadow:0 45px 60px -60px #AAA;
}

#sidebar {
  display: none;
	padding:20px;
	width:200px;
	
	background: none;
	-webkit-transition: all 0.6s;
	   -moz-transition: all 0.6s;
      -ms-transition: all 0.6s;
       -o-transition: all 0.6s;
          transition: all 0.6s;
}
#sidebar h3 {
  margin: 0;
  margin-bottom: 10px;
  color: #CB0101;
  font-weight: bold;
  text-align: center;
}
#sidebar .news-preview, #sidebar .news-item {
  list-style: none;
  padding: 0;
}
#sidebar .news-item h4 {
  margin: 5px 0;
  font-size: 14px;
}
#sidebar .news-item h4 a {
  color: #164190;
  text-decoration: none;
}
#sidebar .news-item p {
  color: #666;
  font-size: 14px;
  line-height: 16px;
}

#featured-links{padding:0;}
#featured-links li, #related-links li {
  list-style:none;
  text-align: center;
}

#footer-container{
	background: #193A87 url('../images/footer-bg.jpg') repeat-x 0 0;
	margin-top:50px;
	padding: 30px 0;
	-webkit-box-shadow:0 -40px 40px -40px #AAA;
	   -moz-box-shadow:0 -40px 40px -40px #AAA;
	        box-shadow:0 -40px 40px -40px #AAA;
}

#footer-container footer, #footer-container a{
	color: #fff;
	text-decoration: none;
}

#related-links,#related-links li {
  margin:0;
  padding:0;
}
#related-links li {
  display: inline;
  list-style:none;
  margin-right:3px;
  font-size: 0.9em;
}

#related-links li:after {
  content: '-';
  margin-left: 3px;
}
#related-links li:last-child:after {
  content:'';
}

#newsletter-wrap {
  width: 300px;
  float: right;
}
#newsletter-wrap h3 {
  margin: 0;
}
#newsletter-wrap p {
  font-size: 0.9em;
  margin:0;
  margin-bottom: 5px;
}
#newsletter-wrap input {
  height: 16px;
  vertical-align: middle;
  line-height: 16px;
  margin-right: 5px;
	-webkit-border-radius: 5px;
     -moz-border-radius: 5px;
          border-radius: 5px;
}

/* Non-semantic helper classes */
 /* For image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide for both screenreaders and browsers: css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden { display: none; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders: by Jon Neal.
  www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.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: drupal.org/node/897638 */
.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; }

/* Contain floats: nicolasgallagher.com/micro-clearfix-hack/ */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }


/* Media Queries for Responsive Design */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */
}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */
  .wrapper {
    width: 768px;
  }
}

@media only screen and (min-width: 940px) {
  .wrapper {
    width: 940px;
  }
  
  #header-container {
    overflow: hidden;
  }
  
  #title{
    float:left;
    width: 90px;
  }
  
  #menu{
    float:right;
	  margin-top:60px;
  }
  .ie7 #menu{
	  margin-top:0;
  }
  #menu a{
    display: inline;
	  padding:12px 20px;
	  padding-top:90px;
	  -webkit-border-radius: 0 0 15px 15px;
       -moz-border-radius: 0 0 15px 15px;
            border-radius: 0 0 15px 15px;
    
  }
  #menu a:hover{
    background:#fff url('../images/menu-sprite.png') 0 0 no-repeat;
    color: #333;
  }
  .ie7 #menu a:hover{
    background: #fff;
  }
  #menu .home a{
    background-position:center 40px;
  }
  #menu .overview a{
    background-position:center -40px;
  }
  #menu .faq a{
    background-position:center -120px;
  }
  #menu .carport a{
    background-position:center -200px;
  }
  #menu .pr a{
    background-position:center -280px;
  }
  #menu .members a{
    background-position:center -360px;
  }
  #menu .contact a{
    background-position:center -440px;
  }
  
  .ie7 #menu li {
    float: right;
  }
  .ie7 #menu a{
    display: block;
    padding-top:60px;
  }
  #main-content {
    float: left;
    overflow: hidden;
    width: 700px;
  }
  #sidebar {
    display: block;
    float: right;
    overflow: hidden;
  }
}


/* Print styles */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: sanbeiji.com/archives/953 */
  a, a:visited { color: #444 !important; 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: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* css-discuss.incutio.com/wiki/Printing_Tables */
  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; }
  
  h2,h3{margin:10px 0;}
  #header-container, #title {text-align: center;text-indent: 0;margin:0!important;height: auto !important;}
  #main-menu {display:none;}
}
