/**
 * HTML5 ✰ Boilerplate
 *
 * style.css contains a reset, font normalization and some base styles.
 *
 * Credit is left where credit is due.
 * 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.6.1 2010-09-17 | 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

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

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

/* Font normalization inspired by YUI Library's fonts.css: developer.yahoo.com/yui/ */
body { font:13px/1.231 sans-serif; *font-size:small; }
select, input, textarea, button { font:99% sans-serif; }
pre, code, kbd, samp { font-family: monospace, sans-serif; }

/* Always force a scrollbar in non-IE */
html { overflow-y: scroll; }

body{
	background-image:url('/images/SF_pattern.jpg');
}

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

ul, ol { margin-left: 2em; }
ol { list-style-type: decimal; }
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
small { font-size: 85%; }
strong, th { font-weight: bold; }
td { vertical-align: top; }
sub, sup { font-size: 75%; line-height: 0; position: relative; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
pre { padding: 15px; white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
textarea { overflow: auto; }
.ie6 legend, .ie7 legend { margin-left: -7px; }

/* 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 */
input[type="button"], input[type="submit"], input[type="image"], 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; }
*/

::-moz-selection{ background: #f93; color:#fff; text-shadow: none; }
::selection { background:#f93; color:#fff; text-shadow: none; }
a:link { -webkit-tap-highlight-color: #f93; }

button { width: auto; overflow: visible; }
.ie7 img { -ms-interpolation-mode: bicubic; }

body, select, input, textarea { color: #444; font-family: 'Open Sans', arial, sans-serif; }
h1, h2, h3, h4, h5, h6 { font-weight: bold; text-transform: uppercase; margin-bottom: 24px; }
/*
(px) (%)
10 	77
11 	85
12 	93
13 	100
14 	108
15 	116
16 	123.1
17 	131
18 	138.5
19 	146.5
20 	153.9
21 	161.6
22 	167
23 	174
24 	182
25 	189
26 	197
*/
h1 { font-size: 167%; } 
h2 { font-size: 138.5%; }
h3 { font-size: 123.1%; }
h4, h5, h6 { font-size: 108%; }
p { font-size: 108%; line-height: 153.9%; margin-bottom: 18px; }
a, a:active, a:visited { color: #607890; }
a:hover { color: #036; }

/**
 * Primary styles
 */

#container { margin: 0 auto; padding: 40px; }
.section { margin-bottom: 40px; }

/* All border-radiuses */
.message, input[type="text"], input[type="submit"], input[type="file"], textarea, select.styled, a.button  { 
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
}
/* Messages */
.message { padding: 16px 15px 0 50px; margin: 10px 0; overflow: hidden; }
.message p { width: 100%; }
.errormsg { border: 1px solid #e9c59b; background: #ffecce url(icons/cross.png) 10px 12px no-repeat; color: #e3302c; }
.success { border: 1px solid #bfde84; background: #edfbd8 url(icons/accept.png) 10px 12px no-repeat; color: #508600; }
.info { border: 1px solid #bbdbe0; background: #ecf9ff url(icons/information.png) 10px 12px no-repeat; color: #0888c3; }
.warning { border: 1px solid #e5e181; background: #fefde2 url(icons/error.png) 10px 12px no-repeat; color: #666; }

/* Forms */
label { }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea, select.styled { 
	padding: 6px;
	border: 1px solid #d9d9d9; 
	background-image: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f4f4f4), to(#fff));
	background-image: -moz-linear-gradient(0% 25% 90deg, #fff, #f4f4f4);
	background-color: #fff;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease; 
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus, select.styled :focus  { 
	font-style: italic;
	background-color: #f8f8f8;
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea { width: 80%; }
textarea { height: 140px; }
select.styled { width: 250px; } 
input[type="file"] {
	-moz-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
	-webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
	box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.4);
}
input[type="submit"], a.button {
	padding: 8px 10px;
	margin: 0px 10px 0px 0;
	border: 1px solid #d9d9d9;
	font-size: 108%;
	font-weight: bold;
	text-transform: uppercase;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
	background-image: -moz-linear-gradient(top, #fff, #dbdbdb);
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #fff),color-stop(1, #dbdbdb));
	background-color: #f8f8f8;
	-moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
	-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
	float:left;
}
input[type="submit"]:hover, a.button:hover {
	background-image: -moz-linear-gradient(top, #eee, #fff);
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #eee),color-stop(1, #fff));
	background-color: #eee;
	-webkit-box-shadow: 0 2px 4px rgba(217, 217, 217, 0.9);
	-moz-box-shadow: 0 2px 4px rgba(217, 217, 217, 0.9);
	box-shadow: 0 2px 4px rgba(217, 217, 217, 0.9);
}  
input[type="submit"]:active, a.button:active {
	background-image: -moz-linear-gradient(top, #dbdbdb, #fff);
	background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #dbdbdb),color-stop(1, #fff));
	text-shadow: 0px -1px 0 rgba(255, 255, 255, 0.5);
}
a.button { color: #444; text-decoration: none; }
a.button:hover { color: #444; }
a.button.icon { padding-left: 10px; }
a.button.icon span{ padding: 10px 0 10px 40px; }
a.button.icon.basketadd span { background: url(icons/basket_add.png) no-repeat 0 5px; }
a.button.icon.basketdel span { background: url(icons/basket_delete.png) no-repeat 0 5px; }
a.button.icon.basketgo span { background: url(icons/basket_go.png) no-repeat 0 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; }
/* Hide for both screenreaders and browsers */
.hidden { display: none; visibility: hidden; }
/* Hide only visually, but have it available for screenreaders */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
/* Allow the element to be focusable when navigated to via the keyboard */
.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; }
/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements. */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

/**
 * Media queries for responsive design.
 */
@media all and (orientation:portrait) {
  /* Style adjustments for portrait mode goes here */
}
@media all and (orientation:landscape) {
  /* Style adjustments for landscape mode goes here */
}
/* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
   consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-device-width: 480px) {
  /* Uncomment if you don't want iOS and WinMobile to mobile-optimize the text for you: j.mp/textsizeadjust */
  /* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
}
@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; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
}

#content{
	margin-top: 80px;
	background: #fff;
	padding:20px;
	border-radius: 10px;
	-moz-box-shadow: 0 0 5px 5px #888;
	-webkit-box-shadow: 0 0 5px 5px#888;
	box-shadow: 0 0 5px 5px #888;
}

#footer{
	padding-top: 30px;
	text-align:center;
}

.message{
	padding-bottom: 14px;
}