/*
 * HTML5 ✰ Boilerplate
 *
 * What follows is the result of much research on cross-browser styling. 
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */


/* =============================================================================
   HTML5 element display
   ========================================================================== */

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


/* =============================================================================
   Base
   ========================================================================== */

/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Force vertical scrollbar in non-IE
 * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
 *    www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. Prevent iOS text size adjust on device orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */

html { font-size: 100%; overflow-y: scroll; -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; }

/* 
 * These selection declarations have to be separate
 * No text-shadow: twitter.com/miketaylr/status/12228805301
 * Also: hot pink!
 */

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


/* =============================================================================
   Links
   ========================================================================== */

a { color: #0054A4; }
/*a:visited { color: #2B00A3; }*/
a:focus { outline: thin dotted; }

/* Improve readability when focused and hovered in all browsers: people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active, a.selected { outline: 0; color: #E31837; }


/* =============================================================================
   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 #C6CCE7; margin: 1em 0; padding: 0; }

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

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

/* Redeclare monospace font family: en.wikipedia.org/wiki/User:Davidgothberg/Test59 */
pre, code, kbd, samp { font-family: monospace, monospace; _font-family: 'courier new', monospace; font-size: 1em; }

/* Improve readability of pre-formatted text in all browsers */
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%; }

/* Position subscript and superscript content without affecting line-height: gist.github.com/413930 */
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; }
li ul, li ol { margin:0; }
dd { margin: 0 0 0 40px; }
nav ul, nav ol { list-style: none; margin: 0; padding: 0; }


/* =============================================================================
   Embedded content
   ========================================================================== */

/*
 * 1. Improve image quality when scaled in IE7 http://h5bp.com/d
 * 2. Remove the gap between images and borders on image containers http://h5bp.com/e 
 */

img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }

/*
 * Correct overflow displayed oddly in IE9 
 */

svg:not(:root) { overflow: hidden; }


/* =============================================================================
   Figures
   ========================================================================== */

figure { margin: 0; }


/* =============================================================================
   Forms
   ========================================================================== */

form { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; }

/* 
 * 1. Correct color not inheriting in IE6/7/8/9 
 * 2. Correct alignment displayed oddly in IE6/7 
 */

legend { border: 0; *margin-left: -7px; padding: 0; }

/* Indicate that 'label' will shift focus to the associated form element */
label { cursor: pointer; }

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */

button, input, select, textarea { font-size: 100%; margin: 0; vertical-align: baseline; *vertical-align: middle; }

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */

button, input { line-height: normal; *overflow: visible; }

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */

button, input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; }

/*
 * Consistent box sizing and appearance
 */

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

/* 
 * Remove inner padding and border in FF3/4
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ 
 */

button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }

/* Remove default vertical scrollbar in IE6/7/8/9 */
textarea { overflow: auto; vertical-align: top; }

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


/* =============================================================================
   Tables
   ========================================================================== */

table { border-collapse: collapse; border-spacing: 0; }








/* =============================================================================
   Primary styles
   Author: 
   ========================================================================== */
body {
	font-family:myriad-pro,sans-serif;
	color:#231F20;
	background-repeat:no-repeat;
	
  background-color: #F1F1F2;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#C6CCE7), to(#F1F1F2)); /* Saf4+, Chrome */
  background-image: -webkit-linear-gradient(top, #C6CCE7, #F1F1F2); /* Chrome 10+, Saf5.1+ */
  background-image:    -moz-linear-gradient(top, #C6CCE7, #F1F1F2); /* FF3.6 */
  background-image:     -ms-linear-gradient(top, #C6CCE7, #F1F1F2); /* IE10 */
  background-image:      -o-linear-gradient(top, #C6CCE7, #F1F1F2); /* Opera 11.10+ */
  background-image:         linear-gradient(top, #C6CCE7, #F1F1F2);
            filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#C6CCE7', EndColorStr='#F1F1F2'); /* IE6–IE9 */
}
#container {
	background:#EEEFF8;
	width:960px;
	margin:2em auto;
	padding:10px;
	position:relative;
  behavior:url(css/PIE.htc);
	
     -moz-box-shadow: 0 0 .5em #7F7F86; /* FF3.5+ */
  -webkit-box-shadow: 0 0 .5em #7F7F86; /* Saf3.0+, Chrome */
          box-shadow: 0 0 .5em #7F7F86; /* Opera 10.5, IE9, Chrome 10+ */
}
header {
	height:121px;
	background:url(../img/header.jpg);
	margin-bottom:3px;
}
#introbox, #sidebox {
	background:#C6CCE7;
}
#introbox, #content {
	margin-left:3px;
}
#bignav {
	background:url(../img/bignav.png);
}
#introbox {
	height:250px;
	padding:10px 1em 10px 250px;
  overflow:hidden;
}
#sidebox {
	margin-top:3px;
}
footer {
	background:#0054A4;
	margin-top:3px;
	min-height:125px;
	color:#fff;
  padding:10px;
}
#glendapic {
	position:absolute;
	left:354px;
	top:17px;
  z-index:100;
}

p, h2, h3, h4 {
	margin:0 0 .75em 0;
	padding:0;
}
strong, h2, h3, h4, th {
	font-family:myriad-pro-condensed,sans-serif;
	font-weight:700;
}
h2 {
	font-size:21px;
}
h3 {
	font-size:16px;
}
h4 {
	font-size:1em;
}
dt {
  margin-top:.5em;
}
dd {
  margin-left:1.5em;
}
.fauxtable dt {
  width:15em;
  float:left;
}
.fauxtable dd input {
	margin-bottom:.2em;
}
table {
  margin:-1em 0 1em 0;
}
td, th {
  padding:.25em 1em;
}
th[scope="row"] {
  font-weight:normal;
  font-family:myriad-pro,sans-serif;
  text-align:right;
}
textarea {
height: 7.25em;
}
textarea, input[type="text"], input[type="tel"], input[type="email"] {
width: 50%;
}
.byline {
  margin-top:-.5em;
}

#bignav ul, nav ul {
	margin:0;
	padding:0;
}
#bignav li, nav li {
	display:block;
}
#bignav a, nav a {
	display:block;
	width:100%;
}
#bignav a {
	height:25px;
	padding:1px 0 1px 1em;
	color:#fff;
	text-decoration:none;
	font-weight:700;
	font-size:19px;
	font-style:italic;
	letter-spacing:1px;
}
#bignav a:hover {
	color:#E31837;
}
#introbox hr {
  border-top-color:#6390C5;
}
#content td, #content th {
  padding:.5em 1em;
}
#content tr.even {
  background-color:#DEE1F1;
}
#content tr:hover {
  background-color:#C6CCE7;
}
#content tr.nohover, #content tr.nohover:hover {
  background-color:#EEEFF8;
}
#sidebox .head {
	font:16px myriad-pro-condensed,sans-serif;
	border-bottom:3px solid #EEEFF8;
}
#sidebox .head, #sidebox .body, #content {
  padding:1em;
}
#sidebox .body, footer li {
	font-family:myriad-pro-semi-condensed,sans-serif;
	font-style:italic;
}
#sidebox h2, #sidebox h3 {
	margin:0;
	font-style:normal;
}
#sidebox ul + h3 {
  margin-top:.5em;
}
#sidebox a {
  text-decoration:none;
}
footer .yui3-g a {
	color:#fff;
	text-decoration:none;
}
footer .yui3-g a:hover {
	text-decoration:underline;
}
footer h2 {
	font-family:myriad-pro,sans-serif;
	margin-bottom:.25em;
	font-size:13px;
}
footer .contactinfo {
	background:#C6CCE7;
	color:#0054A4;
	font-style:normal;
	padding:10px;
}
footer .contactinfo h1 {
	font-size:16px;
	text-align:center;
	margin:0 0 .5em 0;
}
footer .contactinfo li {
	font:16px myriad-pro;
	font-style:normal;
	text-align:right;
	margin:0 0 .25em 0;
}
footer .contactinfo img {
	float:left;
}
#social .ir {
  width:28px;
  height:28px;
  position:absolute;
  top:13px;
  right:14px;
}
#social .facebook {
  right:42px;
}
#social .twitter {
  right:70px;
}
#remaxnote {
	text-align:center;
	font-size:16px;
	color:#0054A4;
	margin:10px 0 0 0;
}
img[alt="RE/MAX"] {
	vertical-align:baseline;
}

.home #bignav .home, .buyers  #bignav .buyers, .sellers #bignav .sellers, .resources #bignav .resources, .community #bignav .community, .aboutus #bignav .aboutus, .testimonials #bignav .testimonials, .contact #bignav .contact, .news #bignav .news {
  color:#f00;
}


.calculators #sidebox img {
  float:left;
  margin-right:.5em;
}
.ie7 .calculators #sidebox img {
	display:none;
}
.home #content .ir {
  width:275px;
	height:142px;
  background:url(../img/buyingorselling.jpg);
}
.home #content .ir:hover {
  background-position:0 bottom;
}
.home #content .or {
  width:60px;
 	background-position:-275px 0;
}
.home #content .or:hover {
  background-position:-275px bottom;
}
.home #content .selling {
	background-position:275px 0;
}
.home #content .selling:hover {
	background-position:275px bottom;
}




/* =============================================================================
   YUI3 Grids + 16 col, (c) Yahoo + Kris Kelly, http://pastie.org/1998290
   ========================================================================== */

.yui3-g{letter-spacing:-0.31em;*letter-spacing:normal;word-spacing:-0.43em}.yui3-u,.yui3-u-1,.yui3-u-1-2,.yui3-u-1-3,.yui3-u-2-3,.yui3-u-1-4,.yui3-u-3-4,.yui3-u-1-5,.yui3-u-2-5,.yui3-u-3-5,.yui3-u-4-5,.yui3-u-1-6,.yui3-u-5-6,.yui3-u-1-8,.yui3-u-3-8,.yui3-u-5-8,.yui3-u-7-8,.yui3-u-1-12,.yui3-u-5-12,.yui3-u-7-12,.yui3-u-11-12,.yui3-u-1-16,.yui3-u-3-16,.yui3-u-5-16,.yui3-u-7-16,.yui3-u-9-16,.yui3-u-11-16,.yui3-u-13-16,.yui3-u-15-16,.yui3-u-1-24,.yui3-u-5-24,.yui3-u-7-24,.yui3-u-11-24,.yui3-u-13-24,.yui3-u-17-24,.yui3-u-19-24,.yui3-u-23-24,.yui3-u-2-15{display:inline-block;zoom:1;*display:inline;letter-spacing:normal;word-spacing:normal;vertical-align:top}.yui3-u-1{display:block}.yui3-u-1-2{width:50%}.yui3-u-1-3{width:33.33333%}.yui3-u-2-3{width:66.66666%}.yui3-u-1-4{width:25%}.yui3-u-3-4{width:75%}.yui3-u-1-5{width:20%}.yui3-u-2-5{width:40%}.yui3-u-3-5{width:60%}.yui3-u-4-5{width:80%}.yui3-u-1-6{width:16.656%}.yui3-u-5-6{width:83.33%}.yui3-u-1-8{width:12.5%}.yui3-u-3-8{width:37.5%}.yui3-u-5-8{width:62.5%}.yui3-u-7-8{width:87.5%}.yui3-u-1-12{width:8.3333%}.yui3-u-5-12{width:41.6666%}.yui3-u-7-12{width:58.3333%}.yui3-u-11-12{width:91.6666%}.yui3-u-1-16{width:6.25%}.yui3-u-3-16{width:18.75%}.yui3-u-5-16{width:31.25%}.yui3-u-7-16{width:43.75%}.yui3-u-9-16{width:56.25%}.yui3-u-11-16{width:68.75%}.yui3-u-13-16{width:81.25%}.yui3-u-15-16{width:93.75%}.yui3-u-1-24{width:4.1666%}.yui3-u-5-24{width:20.8333%}.yui3-u-7-24{width:29.1666%}.yui3-u-11-24{width:45.8333%}.yui3-u-13-24{width:54.1666%}.yui3-u-17-24{width:70.8333%}.yui3-u-19-24{width:79.1666%}.yui3-u-23-24{width:95.8333%}.yui3-u-2-15{width:13.3333%}

/* =============================================================================
   Non-semantic helper classes
   Please define your styles before this section.
   ========================================================================== */

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


/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@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, dt, dd+dd { page-break-after: avoid; }
  pre { page-break-inside:auto; }
    
  header, footer, #bignav, #sidebox, #remaxnote, .yui3-u-1-3 {
    display:none;
  }
  #container {
    width:80%;
    padding:0;
       -moz-box-shadow: none;
    -webkit-box-shadow: none;
            box-shadow: none; 
  }
  .yui3-u-2-3 {
    display:block;
    width:100%;
  }
  #introbox, #content {
    display:block;
    padding:0;
    height:auto;
  }
  #introbox {
    border-bottom:thin solid #ccc;
    margin-bottom:1em;
  }
  
  #content tr.even {
    background-color:#ddd !important;
  }
}
