body {
	padding: 50px 0;
}

/* #Main_Design
================================================== */

.clear { clear: both; }
.hidden { display: none; }

.header h2 { font-size: 150%; }

#edge_dialog .edge_select { cursor: pointer; padding: 15px; border: 1px solid transparent; }
#edge_dialog .edge_select:hover { background-color: #ccc; border: 1px solid black; }
#edge_dialog .edge_select.selected { background-color: #F7FFE5; border: 1px solid #336600; }
#edge_dialog .edge_select .image { float: left; margin-right: 10px; }
#edge_dialog .edge_select .image img { width: 100px; }
.select-roof-edges .edge .edge-body a img { width: 132px; height: 120px; }

.pipe_selector .pipe { background-color: #ccc; cursor: pointer; padding: 15px; border: 1px solid transparent; float: left; width: 25%; margin-bottom: 10px; height: 190px; }
.pipe_selector .pipe:hover { border: 1px solid black; }
.pipe_selector .pipe.middle { margin: 0 10px 10px 10px; }
.pipe_selector .pipe.selected { background-color: #F7FFE5; border: 1px solid #336600; }
.pipe_selector .pipe .image { display: block; clear: both; width: 100%; height: 110px; background-color: white; margin-top: 10px; }
.pipe_selector .pipe .size { text-align: center; margin-top: 5px; }
.pipe_selector .pipe strong { font-size: 0.8em; }

.skylight_selector .image { float: left; margin-left: 100px; }
.skylight_selector .select { float: left; margin-left: 15px; }
.skylight_selector .choice { padding: 10px; border: 1px solid #ccc; margin: 0 0 15px 0; }
.skylight_selector .number { display: none; padding: 10px; border: 1px solid #ccc; margin: 0 0 15px 0; }

.epdm_selector .epdm { background-color: #ccc; cursor: pointer; padding: 15px; border: 1px solid transparent; float: left; width: 25%; height: 100px; text-align: center; }
.epdm_selector .epdm strong { display: block; padding-bottom: 10px; border-bottom 1px dashed white; height: 20px; }
.epdm_selector .epdm:hover { border: 1px solid black; }
.epdm_selector .epdm.middle { margin: 0 10px; }
.epdm_selector .epdm.selected { background-color: #F7FFE5; border: 1px solid #336600; }
.epdm_selector .epdm .image { display: block; clear: both; width: 100%; height: 150px; background-color: white; margin-top: 10px; }

.epdm_colour_selector { text-align: center; }
.epdm_colour_selector .epdm_colour { background-color: #ccc; cursor: pointer; padding: 15px; border: 3px solid #ccc; float: left; width: 25%; height: 100px; text-align: center; }
.epdm_colour_selector .epdm_colour.black { background-color: black; color: white; margin-left: 20px; }
.epdm_colour_selector .epdm_colour.grey { background-color: #7e7e7e; color: white; margin-left: 20px; }
.epdm_colour_selector .epdm_colour.white { background-color: white; color: black; margin-left: 105px; }
.epdm_colour_selector .epdm_colour strong { display: block; padding-bottom: 10px; height: 20px; }
.epdm_colour_selector .epdm_colour:hover { border: 3px solid #336600; }
.epdm_colour_selector .epdm_colour.selected { border: 3px solid #336600; }

.align-center { text-align: center; margin: 10px 0; }
.align-center-no-margin { text-align: center; }

#summary_table
{
    font-size: 12px;
    background: #fff;
    margin: 45px;
    width: 480px;
    border-collapse: collapse;
    text-align: left;
}
#summary_table th
{
    font-size: 14px;
    font-weight: normal;
    color: #039;
    padding: 10px 8px;
    border-bottom: 2px solid #6678b1;
}
#summary_table td
{
    border-bottom: 1px solid #ccc;
    color: #669;
    padding: 6px 8px;
}
#summary_table tbody tr:hover td
{
    color: #009;
}

.bg-oliva #main .boxed .one_full .section-alt { padding: 30px 50px; }

/**
 * new dimension inputs
 */
.roof_dims .uom { display: block; border: 2px solid #2B86EE; background-color: white; height: 70px; clear: both; margin-bottom: 30px; background-image: url(/images/dims_bg.png); background-repeat: no-repeat; background-position: 42px 50%; }
.roof_dims .or { display: block; width: 100%; text-align: center; font-weight: bold; color: #666; font-size: 1.7em; margin: 0 0 30px 0; }
.roof_dims .uom.imperial { height: 100px; }
    .roof_dims .uom .heading { float: left; height: 45px; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.99, M12=-0.08, M21=0.08, M22=0.99, SizingMethod="auto expand"); text-align: center; padding-top: 25px; padding-left: 9px; }
    .roof_dims .uom.imperial .heading { height: 45px; padding-top: 35px; padding-left: 0px; }
    .roof_dims .uom .dims { border-left: 2px solid black; float: left; height: 55px; padding: 15px 0 0 30px; margin-left: 15px; }
    .roof_dims .uom.metric .dims { margin-left: 19px; }
    .roof_dims .uom.imperial .dims { height: 89px; padding: 11px 0 0 30px; width: 75%; }
        .roof_dims .uom .dims .dim { float: left; margin-right: 25px; }
        .roof_dims .uom.imperial .dims .dim { margin-right: 0; width: 50%; }
        .roof_dims .uom .dims label { width: 60px; float: left; padding: 9px 0 0 0; color: black; font-weight: bold; clear: both; }
        .roof_dims .uom .dims input { border: 1px solid black; padding: 7px; width: 80px; }
 
 
 
.breadcrumb {
	/*centering*/
	display: inline-block;
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	border-radius: 5px;
	/*Lets add the numbers for each link using CSS counters. flag is the name of the counter. to be defined using counter-reset in the parent element of the links*/
	counter-reset: flag; 
}

.breadcrumb a {
	text-decoration: none;
	outline: none;
	display: block;
	float: left;
	font-size: 12px;
	line-height: 36px;
	color: white;
	/*need more margin on the left of links to accomodate the numbers*/
	padding: 0 10px 0 60px;
	background: #666;
	background: linear-gradient(#666, #333);
	position: relative;
}
/*since the first link does not have a triangle before it we can reduce the left padding to make it look consistent with other links*/
.breadcrumb a:first-child {
	padding-left: 46px;
	border-radius: 5px 0 0 5px; /*to match with the parent's radius*/
}
.breadcrumb a:first-child:before {
	left: 14px;
}
.breadcrumb a:last-child {
	border-radius: 0 5px 5px 0; /*this was to prevent glitches on hover*/
	padding-right: 20px;
}

/*hover/active styles*/
.breadcrumb a.active, .breadcrumb a:hover{
	background: #333;
	background: linear-gradient(#333, #000);
}
.breadcrumb a.active:after, .breadcrumb a:hover:after {
	background: #333;
	background: linear-gradient(135deg, #333, #000);
}

/*adding the arrows for the breadcrumbs using rotated pseudo elements*/
.breadcrumb a:after {
	content: '';
	position: absolute;
	top: 0; 
	right: -18px; /*half of square's length*/
	/*same dimension as the line-height of .breadcrumb a */
	width: 36px; 
	height: 36px;
	/*as you see the rotated square takes a larger height. which makes it tough to position it properly. So we are going to scale it down so that the diagonals become equal to the line-height of the link. We scale it to 70.7% because if square's: 
	length = 1; diagonal = (1^2 + 1^2)^0.5 = 1.414 (pythagoras theorem)
	if diagonal required = 1; length = 1/1.414 = 0.707*/
	transform: scale(0.707) rotate(45deg);
	
	-webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.99, M12=-0.08, M21=0.08, M22=0.99, SizingMethod="auto expand");
	
	/*we need to prevent the arrows from getting buried under the next link*/
	z-index: 1;
	/*background same as links but the gradient will be rotated to compensate with the transform applied*/
	background: #666;
	background: linear-gradient(135deg, #666, #333);
	/*stylish arrow design using box shadow*/
	box-shadow: 
		2px -2px 0 2px rgba(0, 0, 0, 0.4), 
		3px -3px 0 2px rgba(255, 255, 255, 0.1);
	/*
		5px - for rounded arrows and 
		50px - to prevent hover glitches on the border created using shadows*/
	border-radius: 0 5px 0 50px;
}
/*we dont need an arrow after the last link*/
.breadcrumb a:last-child:after {
	content: none;
}
/*we will use the :before element to show numbers*/
.breadcrumb a:before {
	content: counter(flag);
	counter-increment: flag;
	/*some styles now*/
	border-radius: 100%;
	width: 20px;
	height: 20px;
	line-height: 20px;
	margin: 8px 0;
	position: absolute;
	top: 0;
	left: 30px;
	background: #444;
	background: linear-gradient(#444, #222);
	font-weight: bold;
}


.flat a, .flat a:after {
	background: white;
	color: black;
	transition: all 0.5s;
}
.flat a:before {
	background: white;
	box-shadow: 0 0 0 1px #ccc;
}
.flat a:hover, .flat a.active, 
.flat a:hover:after, .flat a.active:after{
	background: #9EEB62;
}

 
 
 
/* RESPONSIVE CHANGES */
.boxed {
	width:100%;
    max-width: 1000px;
}
.one_third {
    float: right;
}
.section, .section-alt, .section-alt-alt {
    width: auto;
    float: none;
}
.section.header:after,
.roof_dims .uom:after {
	display: block;
	clear: both;
	content: '';
}

.norm_form label {
    width: 158px;
    padding: 9px 0;
}
.norm_form input[type="text"], 
.norm_form input[type="password"], 
.norm_form textarea {
    padding: 8px;
    border: 1px solid #666;
}

.epdm_colour_selector .epdm_colour.white {
    margin-left: 0px;
}
.epdm_colour_selector .epdm_colour {
    display: inline-block;
    float: none;
    margin-bottom: 15px;
}

.pipe_selector .pipe {
    display: inline-block;
}
.pipe_selector .pipe img {
    width: 100%;
}
.pipe_selector .pipe .image {
    display: block;
    clear: both;
    width: 100%;
    height: 100px;
    background-color: white;
    margin-top: 10px;
}
div.selector span {
    width: 76px !important;
}

DIV.select-roof-edges {
    background-size: 100% auto !important;
}
DIV.select-roof-edges {
	max-width: 308px;
	margin: 0 auto !important;
	position: relative;
}
DIV.select-roof-edges DIV.edge1,
DIV.select-roof-edges DIV.edge2,
DIV.select-roof-edges DIV.edge3,
DIV.select-roof-edges DIV.edge4 {
	position: absolute !important;
}
DIV.select-roof-edges DIV.edge1 {
    top: 0% !important;
    left: 0% !important;
    bottom: auto !important;
    right: auto !important;
}
DIV.select-roof-edges DIV.edge2 {
    top: 0% !important;
    right: 0% !important;
    left: auto !important;
    bottom: auto !important;
}
DIV.select-roof-edges DIV.edge3 {
    bottom: 0% !important;
    right: 0% !important;
    left: auto !important;
    top: auto !important;
}
DIV.select-roof-edges DIV.edge4 {
    bottom: 0% !important;
    left: 0% !important;
    top: auto !important;
    right: auto !important;
}

table.table-striped {
    width: auto;
}
.table-striped thead tr {
	background-color: #FFF;
}

.number div.selector span {
    width: 26px !important;
}
.email_box div.selector {
	clear: both;
	width: 120px !important;
}
div.selector select {
    min-width: 110px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    border: solid 1px #fff;
}
.email_box .button.orange {
	margin-top: 10px;
}
 
@media (max-width: 1000px) {
	body {
	    padding: 0px 0;
	}
	.section.header .one_third,
	.section.header .two_third {
	    width: 100% !important;
	    text-align: center;
	    padding: 0;
	}
	.section.header .one_third img {
		width: 100%;
		max-width: 266px;
	}
	.boxed .two_third,
	.boxed .one_third {
		width: 100%;
		padding: 0;
	}
	.boxed .one_third .alert.alert-success {
		margin-bottom: 0;
	}
	.boxed .one_third .alert.alert-error {
		margin-top: 0;
	}
	.form {
	 	margin: 0 auto !important;
	}
	
	form DIV.select-roof-edges {
		width: 100%;
	    max-width: 602px;
	    margin: 30px auto 0 auto;
	    background-size: 100% auto;
	}
	form DIV.select-roof-edges:after {
		content: '';
		display: block;
		clear: both;
	}
	form DIV.select-roof-edges DIV.edge1, 
	form DIV.select-roof-edges DIV.edge2, 
	form DIV.select-roof-edges DIV.edge3, 
	form DIV.select-roof-edges DIV.edge4 {
	    position: absolute;
	}
	form DIV.select-roof-edges DIV.edge1,
	form DIV.select-roof-edges DIV.edge4 {
	    left: 0%;
	}
	form DIV.select-roof-edges DIV.edge1,
	form DIV.select-roof-edges DIV.edge2 {
	    top: 0%;
	}
	form DIV.select-roof-edges DIV.edge2,
	form DIV.select-roof-edges DIV.edge3 {
	    right: 0%;
	    left: auto;
	}
	form DIV.select-roof-edges DIV.edge3,
	form DIV.select-roof-edges DIV.edge4 {
	    bottom: 0%;
	    top: auto;
	}
	.ui-dialog.ui-widget-content {
		position: fixed !important;
		width: auto !important;
		left: 0px !important;
		top: 0px !important;
	}
	
	.pipe_selector .pipe {
	    height: 220px;
	}
	.pipe_selector .pipe .image {
	    height: 140px;
	    overflow: hidden;
	}
	.pipe_selector .pipe img {
	    min-height: 100%;
	}
	.skylight_selector .image {
	    float: none;
	    margin-left: 0px;
	    text-align: center;
	}
	.skylight_selector .select {
	    float: none;
	    margin-top: 15px;
	}
	.skylight_selector .select {
	    float: none;
	    margin-left: auto;
	    max-width: 140px;
	    margin-right: auto;
	    margin-top: 25px;
	}
	
}

@media (max-width: 600px) { 
	.section, .section-alt, .section-alt-alt {
	    padding: 25px;
	}
	.form {
	 	width: 270px !important;
	}
	.roof_dims .uom,
	.roof_dims .uom.imperial .dims {
	    height: auto !important;
	}
	.one_third,
	.roof_dims .uom.imperial .dims .dim {
	    float: none;
	    width: auto;
	}
	.roof_dims .uom .dims {
	    border-left: none;
	    padding: 0px 0 30px 60px;
	}
	.roof_dims .uom.imperial .dims {
	    padding: 0px 0 30px 60px;
	}
	.epdm_selector .epdm {
		width: auto;
		height: auto;
		float: none;
		margin: 10px 0 !important;
	}
	.one_third {
	    padding-right: 0px;
	    clear: both;
	}
	.one_third:after,
	.two_third:after {
		display: block;
		clear: both;
		content: '';
	}
	
	.breadcrumb a {
		float: none;
		text-align: left;
		padding-left: 46px;
	}
	.breadcrumb a:before {
		left: 14px;
		text-align: center;
	}
	.breadcrumb a:after {
		display: none;
	}
	.breadcrumb a:first-child,
	.breadcrumb a:last-child {
	    border-radius: 0 0px 0px 0;
	}
	
	#edge_dialog {
		height: 473px !important;
		border-bottom: 1px solid #666;
	}
	.ui-dialog-buttonpane {
		display: none;
	}
	
	.pipe_selector .pipe {
		float: none;
		display: block;
	    margin-left: auto;
	    margin-right: auto;
	    width: 240px;
	    height: 210px;
	}
	.pipe_selector .pipe .image {
	    height: 180px;
	}
	.pipe_selector .pipe.middle {
	    margin: 0 auto 10px auto;
	    height: 240px;
	}
	
	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	/* Hide table headers (but not display: none;, for accessibility)
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	} */
	thead tr th { 
		width: 40%;
		float: left;
	}
	thead tr:after { 
		clear: both;
		content: '';
		display: block;
	}
	tr { border: 1px solid #ccc; }
	td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 50%; 
	}
	td:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
	}
	
	.email_box {
		text-align: center;
	}
	.email_box label {
		clear: both;
	}
	
	.norm_form label.cust_type {
	    width: 58px !important;
	    padding: 0px 0px !important;
	    line-height: 26px;
	}
}
