/*
 * Scaling font sizes
 *
 * Unfortunately, with regards to the widget, we can't base font size solely on width of browser.
 * Instead, we base font size on the width of the .sevencol element of the 1140 template that's in use.
 * Since the .sevencol is element is 56.75% of the width of the screen, we adjust all our px amounts by dividing by 56.75%.
 * However, that only applies as long as we have more than one column...
 * Once we're back to one column, we revert to simple, unadjusted px values...because at that point we ARE basing font size solely on browser width.
 */


/*
 * If we can't resize the background images, we're forced to bail on responsive design for the widget itself
 */
.no-backgroundsize #rates-widget {
	font-size: 10px;
	width: 590px;
}
.no-backgroundsize .row .sevencol { min-width: 590px; }


/*
 * If we can resize background images, we're good to proceed making the widget responsive.
 * We modify the font-size according to the width available for the widget.
 * All other sizes auto change relative to the font size and/or width available.
 */
@media only screen and (min-width: 1003px) { /* >569 */
    .backgroundsize #rates-widget {
        font-size: 10px;
    }
}

@media only screen and (min-width: 892px) and (max-width: 1002px) { /* 506-568px */
    .backgroundsize #rates-widget {
        font-size: 9px;
    }
}

@media only screen and (min-width: 781px) and (max-width: 891px) { /* 443-505px */
    .backgroundsize #rates-widget {
        font-size: 8px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 780px) { /* originally just max-width:442px -- however, 767px wide is where the layout shifts to one column */
    .backgroundsize #rates-widget {
        font-size: 7px;
    }
}

@media only screen and (max-width: 767px) {
	/* to give it some padding when in one-column layout */
	#rates-widget {
		padding-left: 2.5em;
		padding-right: 2.5em;
	}
}

@media only screen and (min-width: 632px) and (max-width: 767px) {
    .backgroundsize #rates-widget {
        font-size: 10px;
    }
}

@media only screen and (min-width: 569px) and (max-width: 631px) {
    .backgroundsize #rates-widget {
        font-size: 9px;
    }
}

@media only screen and (min-width: 506px) and (max-width: 568px) {
    .backgroundsize #rates-widget {
        font-size: 8px;
    }
}

@media only screen and (min-width: 443px) and (max-width: 505px) {
    .backgroundsize #rates-widget {
        font-size: 7px;
    }
}

@media only screen and (min-width: 379px) and (max-width: 442px) {
    .backgroundsize #rates-widget {
        font-size: 6px;
    }
}

@media only screen and (min-width: 317px) and (max-width: 378px) {
    .backgroundsize #rates-widget {
        font-size: 5px;
    }
}

@media only screen and (max-width: 316px) {
    .backgroundsize #rates-widget {
        font-size: 4px;
    }
}



/* 
 * Widget Structure
 */
.hidden {
	display: none;
}
.clearfix {
	clear: both;
}
.js #rates-data {
	display: none;
}
.no-js #rates-widget {
	display: none;
}
#rates-widget {
	margin: 0 auto;
	width: auto;
	max-width: 590px;
	padding: 0;
	position: relative;
}
#rates-hud {
	width: 100%;
	height: auto; /* 441px */
	position: relative;
	z-index: 5;
	overflow: visible;
	background: url('../images/colorswatch-brown.jpg') repeat;
}
#rates-features {
	width: 96%;
	margin: 0 auto;
	overflow: hidden;
	position: relative;
	top: -1em; /* -10px */
	-moz-border-radius:    .7em; /* 7px */
	-webkit-border-radius: .7em;
	border-radius:         .7em;
	-khtml-border-radius:  .7em; /* Konqueror browsers */
	
}
#rates-features table {
	width: 100%;
	position: relative;
	background-color: #F1EAD9;
	border-collapse: collapse; 
	/* 
	 * Rounded Corners ->
	 * When making #rates-features position:relative, it seems to no longer _contain_ the individual table cells
	 * ...so the overflow hidden doesn't cause the table to appear rounded and we have to set those rounded as well.
	 */
}
#features-shadow {
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* Since we're using a transparent z-indexed div to sit on top and contain the inset shadow, we need to allow clicks _through_ that div (to links below it) */
}
#rates-features td { /* non-header */
	padding: .667em .944em .667em 0; /* 12px 17px 12px 0 */
	border: none;
	border-bottom: 1px solid #D1BF9A;
}
#rates-features .header {
	width: 23.5%;
	padding: .6em 1em .6em .7em; /* 12px 20px 12px 10px */
}
#rates-features .first {
	padding-top: 1.222em; /* 22px */
}
#rates-features tr.even {
	background-color: #E6DCC3;
}
#rates-features .last td {
	padding-bottom: .6667em; /* 12px */
	border: none;
}
#details-for {
	/* Rounded Corners for bottom right */
	-moz-border-radius:    0 0 .3889em 0; /* 7px */
	-webkit-border-radius: 0 0 .3889em 0;
	border-radius:         0 0 .3889em 0;
	-khtml-border-radius:  0 0 .3889em 0; /* Konqueror browsers */
}
#rates-features .last .header {
	/* Rounded Corners for bottom left */
	-moz-border-radius:    0 0 0 .35em; /* 7px */
	-webkit-border-radius: 0 0 0 .35em;
	border-radius:         0 0 0 .35em;
	-khtml-border-radius:  0 0 0 .35em; /* Konqueror browsers */
}
#rates-widget ul, #rates-widget dl, dt, dd {
	list-style-type: none;
	padding: 0;
	margin: 0;
}
.no-csstransforms #get-more, .no-csstransforms #pay-less {
	display: none;
}
#pay-less, #get-more {
	width: 4em; /* 72px */
	line-height: 1.5;
	height: 1.6em;
	position: absolute;
	z-index: -10;
	bottom: 2.9em; /* we want it 17px from the bottom, but since we're rotating it, we need to add half the width (before rotating) */
	text-align: center;
	font-size: 1.8em; /* 18px */
	letter-spacing: 0.055556em; /* 1px */
	cursor: pointer;
}
#pay-less {
	left: -2.7em; /* half the button's width plus half the button's height because we'll be rotating it */
	background: transparent url('../images/colorswatch-brown.jpg') repeat;
	-webkit-transform: rotate(-90deg);  /* Saf3.1+, Chrome */
     -moz-transform: rotate(-90deg);  /* FF3.5+ */
      -ms-transform: rotate(-90deg);  /* IE9 */
       -o-transform: rotate(-90deg);  /* Opera 10.5 */ 
          transform: rotate(-90deg);
}
#get-more {
	right: -2.7em; /* half the button's width plus half the button's height because we'll be rotating it */
	background: transparent url('../images/colorswatch-orange.jpg') repeat;
	-webkit-transform: rotate(90deg);  /* Saf3.1+, Chrome */
     -moz-transform: rotate(90deg);  /* FF3.5+ */
      -ms-transform: rotate(90deg);  /* IE9 */
       -o-transform: rotate(90deg);  /* Opera 10.5 */ 
          transform: rotate(90deg);
}
#movers li {
	width: 5.5em; /* 100px */
	text-align: left;
	margin: 0 auto;
  padding: .705882em 0 0 0; /* 12px */
	white-space: nowrap; /* because IE7 seems to be adding extra wacking padding on each mover */
}
.mover {
	margin: 0 .2941em; /* 5px */
	border: none;
	padding: 0;
	height: 2.0588em; /* 13 x 35px */
}
#controls {
	background: url('../images/colorswatch-brown.jpg') repeat;
	position: relative;
	padding-top: 17px;
	top: -4px;
}
#slider-wrapper {
	position: absolute;
	width: 100%;
	top: -16px;
	z-index: 10;
	background: url('../images/service-level-slider.png') no-repeat;
	-moz-background-size: 100% 32px;
	-webkit-background-size: 100% 32px;
	background-size: 100% 32px;
}
#slide-here {
	opacity: 0.0;
	position: absolute;
	top: -9.9em;
	margin: 0 auto;
	left: 50%;
	-webkit-transition: opacity .7s ease-in;
	-moz-transition:    opacity .7s ease-in;
	-o-transition:      opacity .7s ease-in;
	-ms-transition:     opacity .7s ease-in;
	transition:         opacity .7s ease-in;
}
@-webkit-keyframes bounce {
	0% { bottom: 0; }
	100% { bottom: 1em; }
}
@-moz-keyframes bounce {
	0% { bottom: 0; }
	100% { bottom: 1em; }
}
@-ms-keyframes bounce {
	0% { bottom: 0; }
	100% { bottom: 1em; }
}
@keyframes bounce {
	0% { bottom: 0; }
	100% { bottom: 1em; }
}
#slide-here img {
	height: 9.9em;
	width: 20em;
	position: relative;
	left: -50%;
	-webkit-animation: bounce .7s alternate infinite ease-in;
	-moz-animation: bounce .7s alternate infinite ease-in;
	-ms-animation: bounce .7s alternate infinite ease-in;
	animation: bounce .7s alternate infinite ease-in;
}
#left-endpoint, #right-endpoint {
	position: absolute;
	top: 0;
	height: 100%;
	width: 4.5em;
}
#left-endpoint {
	left: 0;
}
#right-endpoint {
	right: 0;
}
#slider {
	position: relative;
	z-index: 20;
  width: 91.86%; /* 542 / 590 = 91.86% */
	margin: 0 auto; /* half the difference of 590px HUD width minus 542 (desired slider width) */
}



/*
 * Scrolling Backgrounds
 * 
 */
#viewport {
	position: relative;
	overflow: hidden;
	line-height: 1;
}
#static-bg {
	height: auto;
	width: 100%;
	max-width: 590px;
	opacity: 1;
}
#scrolling-bg {
	height: 100%;
	width:18000px !important;
	background: transparent url('../images/houses-office-buildings.jpg') repeat-x 0% 0%;
}
#scrolling-bg.residential {
	top: 0;
}
#scrolling-bg.office {
	bottom: 0;
}
#scrolling-foreground {
	height: 100%;
	background: transparent url('../images/lamppost-parking-meter.png') repeat-x 0% 0%;
}
#scrolling-bg, #scrolling-foreground {
	width: 100%;
	position: absolute;
	left: -513.98%; /* start here so it doesn't scroll to starting point after initial calculations */
	-moz-background-size: 20% 100%; /* we set the size of this element to 5x the width of the background image. So the width of the background-size needs to be 1/5 */
	-webkit-background-size: 20% 100%;
	background-size: 20% 100%;
	-webkit-transition: left 1s ease-out;
	-moz-transition:    left 1s ease-out;
	-o-transition:      left 1s ease-out;
	-ms-transition:     left 1s ease-out;
	transition:         left 1s ease-out;
}

	
/*
 * Move Type buttons (Residential, Office Moves, Long Distance)
 * Service Type buttons (Labor only, Move & Labor, Pack Move & Labor)
 */

#move-types {
	height: 2.318em; /* 51px */
}
#move-types, #service-types {
	width: 100%;
}
#move-types li, #service-types li {
	width: 31.8%; /* px */
}
#move-types a, #service-types a {
	display: block;
}
#move-types a, #service-types a {
	width: 100%;
	height: 1.818em; /* 40px */
	line-height: 1.818em; /* 40px */
	letter-spacing: .1em; /* 3px */
	white-space: nowrap;
}
#move-types li, #service-types li {
	float: left;
}
#move-types li {
	margin: 0 2.25% 0 0; /* 13px */
}
#move-types li.last {
	margin: 0;
}
#rates-widget #service-types {
	padding: 0 .272727em; /* 6px */
}
#service-types li {
	padding: .272727em 0; /* 6px */
	margin: 0 .318182em 0 0; /* 7px */
}
#service-types .last {
	margin: 0;
}
#move-types a,
.service-type {
	background: transparent url('../images/colorswatch-brown.jpg') repeat;
}
#move-types a.selected,
#service-types a.selected {
	background: transparent url('../images/colorswatch-orange.jpg') repeat;
}


/*
 *
 * Flags
 *
 */
.flags > li, #house-size-tip > dl {
	display: block;
}
.flags {
	margin: 0;
	padding: 0;
	position: absolute;
	z-index: 10;
	top: 2.1em; /* 21px */
	left: -2.1em; /* -21px */
	width: 13.1em; /* 131px */
}
.flags > li {
	background: transparent url('../images/colorswatch-red.jpg') repeat;
}
#cost {
	padding: 1em 0; /* 10px */
	margin-bottom: .9em; /* 9px */
	font-family:"Times New Roman", Times, serif;
}
#movers {
	padding: 0.588235em 0;
	margin-bottom: .5294em; /* 9px */
	line-height: 1;
	background: transparent url('../images/colorswatch-blue.jpg') repeat;
}
#additional-cost-1, #additional-cost-2 {
	padding: .4117em 0; /* 7px */
	margin-bottom: .5294em; /* 9px */
	line-height: 1;
}


/*
 *
 * House Size "ToolTip"
 *
 */

#house-size-tip {
	position: absolute;
	left: 50%;
	top: 2em; /* 20px */
}
#house-size-tip dl {
	padding: 1.2em 1em .9em 1em; /* 12px 10px 9px 10px; */
	position: relative;
	left: -50%;
	background-color: #4F4436;
	/* To keep it above the tooltip "arrow" effect */
	z-index: 10;
	/* Rounded Corners */
	-moz-border-radius:    .5em;
	-webkit-border-radius: .5em;
	border-radius:         .5em;
	-khtml-border-radius:  .5em; /* Konqueror browsers */
}
#house-arrow {
	position: absolute;
	bottom: 0;
	left: 50%;
}
#house-arrow span {
	/* This achieves the tooltip "arrow" effect. */
	display: block;
	height: 1.5em;
	width: 1.5em;
	position: relative;
	left: -50%;
	top: .7em; /* half the height/width of the square */
	background-color: #4F4436;
  -webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
.no-csstransforms #house-arrow span {
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865476, M12=0.7071067811865475, M21=-0.7071067811865475, M22=0.7071067811865476, sizingMethod='auto expand'); zoom: 1;
}


/*
 *
 * Widget Icons and Backgrounds
 *
 */
#scrolling-foreground, #parallax-layer {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	z-index: 6;
	pointer-events: none;
}
#service-icons {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0%;
	left: 0%;
	overflow: hidden;
}
.service-icon {
	position: absolute;
	bottom: 3.5em;
}
#service-icon-1 { 	/* worker */
	width: 14.92%; /* 88px */
	left: 12.3em;
}
#service-icon-3 { 	/* boxes */
	width: 10.34%; /* px */
	left: 29em;
}
#service-icon-2 {	  /* truck */
	width: 54.24%; /* px */
	left: -3.8em;
}


/*
 *
 * Typography
 *
 */
#rates-widget, #rates-widget a, #rates-widget a:link, #rates-widget a:visited, #rates-widget a:hover, #rates-widget a:active {
	font-family: CheapPine-Sans, Sans-Serif;
	font-weight: normal;
	font-style: normal;
	color: #fff;
	text-decoration: none;
}
#move-types, #service-types {
	font-size: 2.2em; /* 22px */
}
#move-types, #service-types, .flags, #house-size-tip {
	text-align: center;
	text-transform: uppercase;
}
#cost > span {
	font-size: 2.5em; /* 35px */
	line-height: 2; /* matches font-size for "#cost .number" */
	vertical-align: baseline;
}
#cost .number {
	vertical-align: middle;
	font-size: 1.5em; /* 70px -- matches line-height "#cost > span" */
	line-height: 1; /*1.286em;*/
	letter-spacing: -.029em; /* -2px */
}
#additional-cost-1, #additional-cost-2, #movers {
	font-family: Kondolar-Regular, Serif;
	font-size: 1.7em;
	font-weight: normal;
	font-style: normal;
}
#house-size-tip {
	font-family: Kondolar-Regular, Serif;
	font-weight: normal;
	font-style: normal;
	letter-spacing: .2em;
}
#house-size-tip {
	line-height: 1;
	vertical-align: top;
}
#house-size {
	font-size: 1.9em;
	line-height: 1.053; /* 20px */
}
#house-sf {
	font-size: 1.3em; /* 13px */
}
#movers {
	letter-spacing: .1em; /* 1px */
}
#rates-features table td {
	font-family: Kondolar-Regular, Serif;
	font-size: 1.8em;
	color: #342A20;
	text-align: left;
	vertical-align: top;
}
#rates-features a, #rates-features a:link, #rates-features a:visited, #rates-features a:hover, #rates-features a:active {
	color: #B54612;
}
#rates-features .header {
	color: #6E1609;
	font-family: CheapPine-Sans, Sans-Serif;
	font-size: 2em;
	text-transform: uppercase;
	text-align: right;
}
#results-for {
	font-style: italic, oblique;
}



/*
 *
 * Shadows
 *
 */
#move-types a, #service-types a, .flags > li, #house-size-tip dl {
	-moz-box-shadow:    0px 0px 6px rgba(0, 0, 0, .5);
	-webkit-box-shadow: 0px 0px 6px rgba(0, 0, 0, .5);
  box-shadow:         0px 0px 6px rgba(0, 0, 0, .5);
}
.no-boxshadow #service-types a {
	border: 1px solid #666;
}
#rates-hud {
	/* Shadow cast from #rates-hud downward onto the results table */
	-moz-box-shadow:    0px 10px 4px -8px rgba(0, 0, 0, .3);
	-webkit-box-shadow: 0px 10px 4px -8px rgba(0, 0, 0, .3);
	box-shadow:         0px 10px 4px -8px rgba(0, 0, 0, .3);
}
#rates-features {
	-moz-box-shadow:    0px 0px 6px rgba(128, 128, 128, .3);
	-webkit-box-shadow: 0px 0px 6px rgba(128, 128, 128, .3);
  box-shadow:         0px 0px 6px rgba(128, 128, 128, .3);
}
.no-boxshadow table {
	border: 3px solid #D1BF9A;
}
#features-shadow {
	/* Inset shadows */
	-moz-box-shadow:    inset 0px 0px 0px 1em rgba(128, 128, 128, .1);
	-webkit-box-shadow: inset 0px 0px 0px 1em rgba(128, 128, 128, .1);
  box-shadow:         inset 0px 0px 0px 1em rgba(128, 128, 128, .1);
}
