/*
 * OpenScales.org main stylesheet
 * Author : Romaric Pascal
 *
 * Based on HTML 5 Boilerplate
 *
 * Color Index :
 *  Text color - #0c1219
 *  Link color - #435467
 *  Sub header background color - #205b84
 *  Text color on blue background - #f1f9ff
 *  Call to action text color - #8d3f00
 *  Call to action link color - #a85a1b
 *
 * This site makes use of Farm Fresh icons, available at http://www.fatcow.com/free-icons/
 */

/* 
  style.css contains a reset, font normalization and some base styles.
  
  credit is left where credit is due.
  additionally, much inspiration was taken from these projects:
    yui.yahooapis.com/2.8.1/build/base/base.css
    camendesign.com/design/
    praegnanz.de/weblog/htmlcssjs-kickstart
*/

/* 
  html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
  v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
  html5doctor.com/html-5-reset-stylesheet/
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin:0;
  padding:0;
  border:0;
  outline:0;
  font-size:100%;
  vertical-align:baseline;
  background:transparent;
}                  

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { 
    display:block;
}

nav ul { list-style:none; }

blockquote, q { quotes:none; }

blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }

ins { background-color:#ff9; color:#000; text-decoration:none; }

mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }

del { text-decoration: line-through; }

abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }

/* tables still need cellspacing="0" in the markup */
table { border-collapse:collapse; border-spacing:0; }

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

input, select { vertical-align:middle; }
/* END RESET CSS */


/* fonts.css from the YUI Library: developer.yahoo.com/yui/
   Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages

  There are three custom edits:
   * remove arial, helvetica from explicit font stack
   * we normalize monospace styles ourselves
   * table font-size is reset in the HTML5 reset above so there is no need to repeat
*/
body { font:13px/18px Arial, sans-serif;} /* hack retained to preserve specificity */

select, input, textarea, button { font:99% Arial, sans-serif; }

/* normalize monospace sizing 
 * en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
 */
pre, code, kbd, samp { font-family: monospace, sans-serif; }
 

/* 
 * minimal base styles 
 */


body, select, input, textarea { 
 
  color: #0c1219;
  /* set your base font here, to apply evenly */
  font-family: Arial, sans-serif;

  background: url('../img/background.png') repeat-x #c1c5cb;
  min-height: 100%;
}


/* Headers (h1,h2,etc) have no default font-size or margin,
   you'll want to define those yourself. */ 
h1,h2,h3,h4,h5,h6 { font-weight: bold; }

/* always force a scrollbar in non-IE */ 
html { overflow-y: scroll; height: 100%; }

sub { vertical-align: sub; font-size: smaller; }
sup { vertical-align: super; font-size: smaller; }



ul, ol { margin-left: 18px; }
ol { list-style-type: decimal; }

small { font-size: 85%; }
strong, th { font-weight: bold; }

td, td img { vertical-align: top; } 



pre { 
  padding: 15px; 
  
  /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  white-space: pre; /* CSS2 */
  white-space: pre-wrap; /* CSS 2.1 */
  white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  word-wrap: break-word; /* IE */
}
 
textarea { overflow: auto; } /* thnx ivannikolic! www.sitepoint.com/blogs/2010/08/20/ie-remove-textarea-scrollbars/ */

.ie6 legend, .ie7 legend { margin-left: -7px; } /* thnx ivannikolic! */

/* align checkboxes, radios, text inputs with their label
   by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css  */
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }

/* hand cursor on clickable input elements */
label, input[type=button], input[type=submit], button { cursor: pointer; }
 
/* webkit browsers add a 2px margin outside the chrome of form elements */  
button, input, select, textarea { margin: 0; }

/* colors for form validity */
input:valid, textarea:valid   {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, 
.no-boxshadow textarea:invalid { background-color: #f0dddd; }
 

/* make buttons play nice in IE:    
   www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
button {  width: auto; overflow: visible; }
 
/* bicubic resizing for non-native sized IMG: 
   code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
.ie7 img { -ms-interpolation-mode: bicubic; }

/* Links */
a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }

/* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active { outline: none; }

a, a:active, a:visited { color: #205b84; text-decoration: none; border-bottom: solid 1px #205b84; }
a:hover { color: #8D3F00; border: none; padding-bottom: 1px;}
a:active{
    position: relative;
    top: 1px;
}

/*  j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #435467; }

/* Selected text */

/* These selection declarations have to be separate.
   No text-shadow: twitter.com/miketaylr/status/12228805301
   Also: hot pink. */
::-moz-selection{     background: #f1f9ff; color: #205b84; text-shadow: none; }
::selection {     background: #f1f9ff; color: #205b84; text-shadow: none; }

/* 
 * Non-semantic helper classes 
 */

/* for image replacement */
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }

/* 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 
   www.webaim.org/techniques/css/invisiblecontent/ 
   Solution from: j.mp/visuallyhidden - Thanks Jonathan Neal! */
.visuallyhidden { position: absolute !important;    
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px); }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* >> The Magnificent CLEARFIX << j.mp/phayesclearfix */
.clearfix:after  { content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }

.g960{
    width: 940px;
    padding: 0 10px;
    margin: auto;
    position: relative;
}

/* Primary Styles */

/* General styles */
h1{ /* Secondary titles */
    font-size: 24px;
    line-height: 26px;
    height: 26px;
    color: #16283c;
    text-indent: 42px;
    padding: 5px 0 5px;
}

h2{ /* Tertiary titles */
    font-size: 16px;
    line-height: 36px;
    color: #13365b;
    font-weight: bold;
}

p{
    margin-bottom: 18px;
}

/* Site header */
header#pageheader {
     position: relative;
     padding-top: 50px;
     background: url("../img/header-background.png") no-repeat top center;
     height: 153px;
     margin-bottom: -95px;
}

a#logo, a#logo:active, a#logo:visited, span#logo{
	display: block;
	width: 220px;
	height: 50px;
    margin: 0px 0 3px 1px;
    
    background: url("../img/openscales-logo-sprite.png") no-repeat 0 -50px;
}

a#logo:hover{
	/*background: url("../img/openscales-logo-sprite.png")  no-repeat 0 0;	*/
}

#pageheader nav {
    position: absolute;
    bottom: 11px;
    right: 10px;
}

#pageheader nav .current{
	color: #AF3E10;
}

#pageheader li{
    float: left;
    padding: 0 5px;
    font-size: 18px;
    font-weight: bold;
}

#pageheader a, #pageheader a:active, #pageheader a:visited{
    border-bottom: none;
    color: #0c1219;
}

#pageheader a:hover{
	color: #8D3F00;
}

/* Presentation block */
#presentation{
    height: 482px;/*432*/
    width: 960px;
    margin: 0 auto;
    background: url("../img/presentation-background.jpg") no-repeat 0 0 #205b84;
    color: #f1f9ff;
    padding-top: 1px;
    position: relative;
    z-index: 2;

    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px
    border-radius: 6px;
}


#presentation h1{
    font-size: 38px;
    line-height: 72px;
    text-align: center;
    font-family: Arial;
    height: 72px;
    text-indent: 0;
    color: #f1f9ff;
}

#presentation img{
    float: left;
    height: 221px;
    width: 367px;
    
    margin: 59px 56px 9px 57px;
}

#presentation>p{
    font-size: 18px;/*18px*/
    line-height: 1.5;

    width: 490px;/*400px*/
    margin-left: 450px;/*480px*/
    margin-top: 0px;/*27px*/
}

.cta{
    margin-top: 18px;
    position: absolute;
    right: -11px;
    bottom: 5px;
}


a.ctaLarge{

    display: block;
    width: 346px;
    height: 64px;
    padding-left: 54px;    
    border-bottom: none;
    margin-bottom: -9px;
    
    color: #8d3f00;
    font-size: 18px;
    font-weight: bold;
    line-height: 54px;
    
    background:url("../img/download-button-sprite.png") no-repeat -12px 0;

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px
    border-radius: 3px;
}

a.ctaLarge:hover{
	background: url("../img/download-button-sprite.png") no-repeat -12px -67px;
	padding-bottom: 1px;
	height: 63px;
	color: #af3e10;
}

a.ctaSmall{
	position: absolute;
	top: 0;
	left: 0;
	
	display: block;
    width: 231px;
    height: 55px;
    padding: 9px 11px 0 54px;
    border-bottom: none;
    margin-bottom: -9px;
    
    color: #8d3f00;
    font-size: 16px;
    font-weight: bold;
    line-height: 18px;
    
    background:url("../img/download-button-sprite.png") no-repeat -420px 0;

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px
    border-radius: 3px;
}

a.ctaSmall:hover{
	color: #af3e10;
	background:url("../img/download-button-sprite.png") no-repeat -420px -67px;
}

#ctas{

	height: 54px;
	position: relative;
	margin: 9px 0;
}

.fileInfo{

	font-weight: normal;
	font-size: 13px;
}

#presentation .cta p{
    font-size: 13px;
    text-indent: 54px;
}

.cta p a{

    color: #f1f9ff;
    border-color: #f1f9ff;
}

#info{
    margin-top: 18px;
    width: 960px;
    margin: 18px auto 8px;
    padding: 18px 0 9px 0;

    position: relative;
    z-index: 2;

    background-color: #f7f7f7;

    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px
    border-radius: 6px;
}

/* Features block */
#features{
    width: 630px;
    padding: 0 10px;
    overflow: hidden;
}

#features h2{
    color: #13365b;
}

#features h2 img{
    vertical-align: bottom;
    margin-bottom: 2px;
    margin-right: 9px;
}

#features p{
    margin-bottom: 0;
}

#features div{

    width: 246px;
    min-height: 126px;
    padding: 0 30px 0 24px;
    float: left;
    margin-bottom: 18px;
}

/* News block */
#news{
    position: absolute;
    right:0;
    top: 18px;

    width: 310px;
    padding-left: 9px;
    border-left: solid 1px #eaeaea;
}

#news article{
    
    margin-top: 18px;
    padding: 0 30px 17px 24px;
}

#news h2{
    line-height: 18px;
}

#news p{
	margin-bottom: 0;
}

#news time{
    color: #13365b;
    font-size: 12px;
}

#news header a, #news header a:visited, #news header a:active{
	color: inherit;
	border: none;
}

#news header a:hover{
	color: #205b84;
}

.read-more{
	margin-bottom: 9px;
}

#otherInfo{
    width: 940px;
    margin: 18px auto 0 auto;
    overflow: auto;

    background: url('../img/info-background.png') repeat-x #E7E8EA;
    background-image: -webkit-gradient(linear, 0% 100%, 0% 0%, from(#E7E8EA), to(#FCFCFC));
    background-image: -moz-linear-gradient(center bottom,rgb(#E7E8EA) 0%,rgb(#FCFCFC) 100%);
    
    border: solid 1px #E7E8EA;
    border-bottom: none;

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px
    border-radius: 3px;
}

#otherInfo h1{
    text-indent: 18px;
}

#otherInfo section{
    width: 246px;
    float:left;
    padding: 17px 30px 0 24px;
}


#otherInfo li{
    margin-bottom: 18px;
}

#otherInfo section#showcase{
    width: 266px;
    margin: 0 9px;
    border-left: solid 1px #eaeaea;
    border-right: solid 1px #eaeaea;
}

#showcase img{
    height: 162px;
    display: block;
    margin: 0 auto 18px auto;

}

#showcase figure{
    margin: auto;
}

/* Footer */
#pagefooter{

    color: #435467;
    position: relative;
    border-top: solid 1px #205b84;

    background: url("../img/footer-background.jpg") no-repeat top center #001D2F;
    margin-top: -90px;
    padding-top: 108px;
	overflow: hidden;
}

#pagefooter h1{
    color: #5b6c7f;
}

/** SiteMap block **/
.siteMap nav{
    width: 630px;
    overflow: auto;
}

.siteMap li{
    font-size: 16px;
    line-height: 36px;
    font-weight: bold;
    width: 192px;
    /*min-height: 144px;*/
    float:left;
}

.siteMap li ul{
	margin-bottom: 18px;
}

.siteMap li li{
    font-size: 12px;
    line-height: 18px;
	min-height: auto;
    font-weight: normal;
    width: auto;
    float: none;
    min-height: inherit;
}

.siteMap a,.siteMap a:active, .siteMap a:visited{
	color: #435467;
    border:none;
}

.siteMap a:hover{
	color: #f1f9ff;
	border-bottom: solid 1px #f1f9ff;
}

/** Help block **/
.help{
    float: right;
    width: 236px;
    padding: 0 30px 18px 34px;
}

.help>a{

    display:block;
    text-align: center;
    padding-right: 3px;
    line-height: 36px;
    border-bottom: none;
    color: #67829f;
    background: url("../img/mail.png") no-repeat 3px 6px #223549;
    font-size: 12px;
   

    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    -khtml-border-radius: 12px
    border-radius: 12px;
}

.help>a:hover{
	background-color: #f1f9ff;
	border-bottom: none;
	padding-bottom: 0;
}

/* Content pages */
#content{

    background: #f7f7f7;
    padding-bottom: 9px;
    position: relative;
    word-spacing: -1em; /* Removes gap between the two inline-block elements */
    
    width: 960px;
	margin: 0 auto 7px;
    
    z-index:2;
	display: table;

    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px
    border-radius: 6px;
}

#content *{
	word-spacing: 0;
}

#content h2{
	text-indent: 42px;
}


/* Content header, with current page title and navigation */
#content>header{
	background: url("../img/presentation-background.jpg") no-repeat 0 0;
	height: 107px;
	border-bottom: 1px solid #3691be;
	color: #f1f9ff;
	position: relative;
	
    -moz-border-radius-topleft: 6px;
    -moz-border-radius-topright: 6px;
    -webkit-border-top-left-radius: 6px;
    -webkit-border-top-right-radius: 6px;
    -khtml-border-top-left-radius: 6px
    -khtml-border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}


#content>header nav{
	position: absolute;
	right: 18px;
	bottom: 36px;
	font-size: 14px;
}

#content>header li{
	display: inline;
	margin: 0 9px;
}

#content>header a{

	color: #f1f9ff;
	border-bottom: none;
}

#content>header a:hover{

	color: #f1f9ff;
	border-bottom: 1px solid #f1f9ff;
}


#content>header h1{

	color: #f1f9ff;
	line-height: 90px;
	font-size: 36px;
}

#content>header .current{
	font-weight: bold;
}

/* Aside */

#content>section{
	padding: 18px 34px 0;
	width: 571px;
	border-right: 1px dotted #89a8be;
	display: inline-block;
}

#content>section img{
    max-width: 571px;
}

#content aside{
	position: relative;
	padding: 18px 24px 0 34px;
	width: 252px;
	display: inline-block;
	vertical-align: top;
	word-spacing: 0;
}

#content aside h1{
	font-size: 18px;
	text-indent: 18px;
	color: #435467;
}

.download{
	border: solid 1px #c1c5cb;
	line-height: 35px;
	text-align: right;
	padding: 0 10px;
}

li.download{

	list-style-type: none;
	border-top: none;
}

.downloads{

	margin: 0 0 18px 0;
	border-top: solid 1px #c1c5cb;
	margin-top: -1px;
}

a.download-link, a.download-link:active, a.download-link:visited{

	display: block;
	padding-left: 26px;
	border: none;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	float:left;
}

div.download{
	margin-bottom: 36px;
}

div.download .download-link, .download-link:hover{
	background: url("../img/box_down.png") no-repeat 0 10px;
}

