* {
	box-sizing: border-box;
}
#calculator-container {
	display: block;
	margin: 20px auto;
	width: 680px;
	max-width: 98%;
	padding: 10px;
	margin: 60px auto 200px auto; 
	border: 1px solid #ccc;
	-moz-box-shadow: -4px 6px 14px -7px #000;
	-webkit-box-shadow: -4px 6px 14px -7px #000;
	box-shadow: -4px 6px 14px -7px #000;
}
#soil-calculator {
	display: block; 
	padding: 124px 10px 40px 10px; 
	border: 1px solid #96CD5C;
	background: url(../images/soil-calc/soil-calc-back.jpg) no-repeat center top;
	background-size: 290px;
}
#soil-calculator h2 {
	font-size: 28px;
	line-height: 1.4;
	margin: 20px auto;
}
#soil-calculator h2 span {
	font-size: 1.2em;
	line-height: 1.2;
}
#soil-calculator ol {
	margin-bottom: 50px;
}
#soil-calculator-form {
	position: relative;
}
#soil-calculator h3 {
	margin: 36px 0 16px 0;
}
#calc-amount {
	padding: 10px;
	border: 1px solid #ccc;
}
.calc-buttons {
	padding: 20px 0;
}
#container-choice {
	position: relative;
}
.choose-alert, .step-alert {
	position: absolute;
	display: block;
	top: -80px;
	left: 10px;
	width: 240px;
	font-family: Lato, Arial , sans-serif;
	font-size: 18px;
	font-style: italic;
	padding: 14px 14px 50px 14px;
	background: #fff;
	box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.5);
	z-index: 300;
}
.step-alert {
	display: flex;
	justify-content: center;
	align-items: center;
	top: 50px;
	left: 50px;
	width: calc(100% - 100px);
	height: calc(100% - 100px);
}
#soil-calculator .choose-alert .close, #soil-calculator .step-alert .close {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: #fff;
	color: #2F2F2E;
}
p.larger {
	font-size: 1.4em;
}
p.larger br {
	line-height: 2.5em;
}
#soil-calculator button, #soil-calculator-form input[type="submit"], #bag-calculator input[type="submit"] {
  width: auto;
  position: relative;
  color: #fff;
  background-color: #448302;
  border: none;
  font-family: "IM Fell DW Pica", Garamond, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 1px;
  padding: 4px 8px;
  box-shadow: 0px 1px 3px -1px #000;
  transition: background 0.3s;
}
#soil-calculator button.blue-button {
	color: #fff;
	background: #586D99;
}	
#soil-calculator-form input[type="submit"], #bag-calculator input[type="submit"], #result-buttons button, #bag-result-buttons button, #summary-buttons button {
	font-size: 18px;
	padding: 6px 8px;
}
#soil-calculator button:hover, #soil-calculator-form input[type="submit"]:hover, #bag-calculator input[type="submit"]:hover {
  background-color: #96cd5c;
  cursor: pointer;
}
#soil-calculator button.blue-button:hover {
	background: #8EA0C5;
}
#soil-calculator-form input[type="radio"] {
  position: relative;
  float: left;
  display: block;
  width: 24px;
  height: 24px;
  opacity: 0;
  margin-bottom: 0;
  margin-top: 8px;
  z-index: 10;
}
#soil-calculator-form .radio-button:hover {
	cursor: pointer;
}
#soil-calculator-form.disabled .radio-button:hover {
	cursor: default;
}
#soil-calculator-form.disabled .radio-button + .radio-wrap {
	opacity: 0.65;
}
#soil-calculator-form.disabled .radio-button:checked + .radio-wrap:after {
	background-color: #96cd5c;
}
input[type=radio] + label {
	line-height: 2;
}
#container-choice + .calc-buttons > label {
	position: relative;
	height: 60px;
}
#container-choice + .calc-buttons > label + div {
	position: relative;
}
#container-choice + .calc-buttons > label:after {
	position: absolute;
	right: -210px;
	top: -20px;
	content: " ";
	display: block;
	width: 200px;
	height: 70px;
	background-size: 120px;
	background-position: left bottom;
	background-repeat: no-repeat;
	z-index: -1;
}
#garden + span + label:after {
	background-image: url(../images/soil-calc/garden-main.jpg);
}
#raised + span + label:after {
	background-image: url(../images/soil-calc/raised-main.jpg);
}
#boxes + span + label:after {
	background-image: url(../images/soil-calc/box-main.jpg);
}
#container-choice + .calc-buttons #pots + span + label:after {
	width: 80px;
	right: -90px;
	background-image: url(../images/soil-calc/pot-main.jpg);
}
#soil-calculator-form select, #soil-calculator-form select option, #bag-cost select, #bag-cost select option, #result select, #result select option {
	background: #dff5c9;
	border: 1px solid #ccc;
	padding: 0 0 0 6px;
	font-family: Lato, Arial, sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	min-width: 190px;
}
#bag-cost select, #bag-cost select option, #result select, #result select option {
	height: 32px;
	background: #fff;
}	
#bag-cost select, #result select {	
	margin-left: 6px;
}
#result select {	
	height: 50px;
	font-size: 26px;
	padding-right: 0;
	display: none;
}
#soil-calculator-form select option:hover {
	background: red;
}
#soil-calculator-form .container-specs {
	position: relative;
	padding: 10px 10px 70% 10px;
	margin: 0 0 30px 0;
	border: 1px solid #ccc;
	display: none;
}
#soil-calculator-form .container-specs.specs-open .specs-image {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	padding-top: 68%;
	margin: 0;
	background-size: contain;
}
#soil-calculator-form .container-specs.pots.specs-open .specs-image {
	background-image: url(../images/soil-calc/pot-main.jpg);
}
#soil-calculator-form .container-specs.boxes.specs-open .specs-image {
	background-image: url(../images/soil-calc/box-main.jpg);
}
#soil-calculator-form .container-specs.raised.specs-open .specs-image {
	background-image: url(../images/soil-calc/raised-main.jpg);
}
#soil-calculator-form .container-specs.garden.specs-open .specs-image {
	background-image: url(../images/soil-calc/garden-main.jpg);
}
#soil-calculator-form .container-specs.specs-open .specs-image:before, #soil-calculator-form .container-specs.specs-open .specs-image:after {
	content: " ";
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
}
#soil-calculator-form .container-specs.pots.specs-open .specs-image:before {	
	background-image: url(../images/soil-calc/pot-labels-dp.png);
}
#soil-calculator-form .container-specs.pots.full-pot.specs-open .specs-image:before {
	background-image: url(../images/soil-calc/pot-labels.png);
}
#soil-calculator-form .container-specs.boxes.specs-open .specs-image:before {	
	background-image: url(../images/soil-calc/box-labels.png);
}
#soil-calculator-form .container-specs.raised.specs-open .specs-image:before {	
	background-image: url(../images/soil-calc/raised-labels.png);
}
#soil-calculator-form .container-specs.garden.specs-open .specs-image:before {	
	background-image: url(../images/soil-calc/garden-labels.png);
}
#soil-calculator-form .container-specs.specs-open[class*="pots-diam-top"] .specs-image:after  {
	background-image: url(../images/soil-calc/top-diam-highlight.png);
}
#soil-calculator-form .container-specs.full-pot.specs-open[class*="pots-diam-top"] .specs-image:after  {
	background-image: url(../images/soil-calc/top-diam-highlight.png);
}
#soil-calculator-form .container-specs.full-pot.specs-open[class*="pots-diam-bottom"] .specs-image:after  {
	background-image: url(../images/soil-calc/bot-diam-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="pots-height"] .specs-image:after  {
	background-image: url(../images/soil-calc/pot-depth-highlight.png);
}
#soil-calculator-form .container-specs.full-pot.specs-open[class*="pots-height"] .specs-image:after  {
	background-image: url(../images/soil-calc/pot-height-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="box-width"] .specs-image:after  {
	background-image: url(../images/soil-calc/box-width-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="box-length"] .specs-image:after  {
	background-image: url(../images/soil-calc/box-length-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="box-depth"] .specs-image:after  {
	background-image: url(../images/soil-calc/box-depth-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="raised-width"] .specs-image:after  {
	background-image: url(../images/soil-calc/raised-width-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="raised-length"] .specs-image:after  {
	background-image: url(../images/soil-calc/raised-length-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="raised-depth"] .specs-image:after  {
	background-image: url(../images/soil-calc/raised-depth-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="garden-width"] .specs-image:after  {
	background-image: url(../images/soil-calc/garden-width-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="garden-length"] .specs-image:after  {
	background-image: url(../images/soil-calc/garden-length-highlight.png);
}
#soil-calculator-form .container-specs.specs-open[class*="garden-depth"] .specs-image:after  {
	background-image: url(../images/soil-calc/garden-depth-highlight.png);
}
.missing-alert {
	display: block;
	color: #DE3224;
	font-style: italic;
}
.missing + input, .missing + input + span + input {
	background: #fff9c7;
}
#soil-calculator-form input[type="number"], #bag-cost input[type="number"] {
	width: 100px;
	max-width: calc(50% - 24px);
	height: 30px;
	font-size: 20px;
	line-height: 30px;
	padding: 0 0 0 6px;
	border: 1px solid #ccc;
	margin: 0;
}
#bag-cost input[type="number"] {
	height: 32px;
	width: 80px;
	max-width: 80px;
}
#bag-cost #cost {
	width: 104px;
	max-width: 104px;
}
#soil-calculator-form .container-specs label {
	position: relative;
	display: block;
	margin: 14px 0 4px 0;
}
#soil-calculator-form .container-specs span {
	margin: 0 10px 0 4px;
}
#soil-calculator-form .container-specs .meas-b + span {
	margin-right: 0;
}
#soil-calculator-form .container-specs .inputs-intro span {
	margin: 0;
}
.clear-specs {
	display: block;
	margin: 20px auto;
}
.convert-units {
	display: none;
}
.checkbox-div {
	display: block;
	margin: 20px 0;
}
#soil-calculator-form input.checkbox {
  position: relative;
  opacity: 0;
  width: 19px;
  z-index: 10;
  margin-left: 2px;
	cursor: pointer;
}
#soil-calculator-form .checkbox-frame, #soil-calculator-form input.checkbox:focus + .checkbox-frame {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 31px;
  margin: 2px -4px -6px -20px;
  z-index: 0;
  background-image: url(../images/soil-calc/sprite.jpg);
	background-position: -210px 0;
}
#soil-calculator-form input.checkbox:checked:focus + .checkbox-frame, #soil-calculator-form input.checkbox:checked + .checkbox-frame {
  background-position: -210px 30px;
}
#soil-calculator-form input.checkbox[disabled] + .checkbox-frame {
  opacity: .65;
	cursor: default;
}
.disabled h4, .disabled label, .disabled p, .disabled span {
	opacity: 0.5;
}
.disabled p span, .disabled h4 span {
	opacity: 1;
}
#soil-calculator button[disabled], #bag-calculator input[type="submit"][disabled] {
	color: #888;
	background: #dff5c9;
  box-shadow: 0px 1px 2px -1px #000;
}
#soil-calculator input[type="submit"][disabled]:hover, #soil-calculator button[disabled]:hover, #soil-calculator input[type="submit"][disabled] {
	background: #dff5c9;
	cursor: default;
}
#soil-calculator #bag-calc-open[disabled], #soil-calculator #bag-calc-open[disabled]:hover {
	background: #fff;
	box-shadow: none;
	padding: 0;
	font-size: 24px;
	color: #2F2F2E;
}
#soil-calculator-submit {
	position: relative;
	display: block;
	height: 66px;
	margin-top: 36px;
}
#result {
	position: relative;
	display: flex; 
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 180px; 
	text-align: center;
	padding: 0 10px 10px 10px;
}
#soil-calculator #result-intro {
	display: none;
}
#soil-calculator #result-intro h3, #soil-calculator #result-intro p {
	text-align: center;
	margin: 6px auto 0 auto;
}
#result > div {
	display: flex;
	margin-top: 30px;
}
#soil-calculator-form.disabled + #result:before {
	opacity: 1;
}
#result .result {
	display: block;
	font-size: 30px;
	text-align: center;
	margin: 0 auto;
}
.result-multiples {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	justify-content: space-between;
	margin-top: 20px;
}
.result-multiples > span {
	display: flex-item;
	flex: 48%;
	font-size: 20px;
	padding: 4px;
	border: 1px solid #ccc;
}
.result-multiples > span:nth-child(-n + 2) {
	margin-bottom: 2%;
}
.result-multiples > span:nth-child(odd) {
	margin-right: 2%;
}
.res-item {
	display: block;
	font-size: 22px;
	padding: 4px 0;
}
#current-result {
	max-width: 100%;
	line-height: 50px;
}
#bag-cost {
	position: relative;
}
.bag-cost-container {
	position: relative;
	margin: 4px 0 36px;
	border: 1px solid #ccc;
}
.cont-number {
	width: 100%;
	min-height: 60px;
	padding: 30px 6px 0 6px;
}
.cont-number > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.cont-number h4 {
	line-height: 12px;
	padding-right: 12px;
}
#bag-cost #cont-multiplier {
	margin-top: 16px;
}
.cont-number p {
	color: #448302;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 0;
	text-align: center;
}
.cont-number .orig-quant, .cont-number .or-text {
	display: inline-block;
}
#bag-cost .bag-specs {
	padding: 14px 6px 30px 6px;
}
.bag-specs > div, .bag-specs h4 {
	text-align: center;
	margin: 10px auto;
}
.bag-specs div:first-child {
	margin-bottom: 30px;
}
.bag-specs .dollar {
	font-size: 20px;
}
.bag-quantity {
	display: flex;
	justify-content: center;
}
#bag-result {
	display: block;
	min-height: 120px;
	padding: 10px;
	font-size: 22px;
	line-height: 36px;
	margin-top: 20px;
}
#soil-calculator-form.disabled + #result, #bag-calculator.disabled + #bag-result, #summary-container.sum-highlight {	
	box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.5);
	width: calc(100% + 30px);
	margin-left: -15px;
	background: #fff;
}
#bag-result .bag-result > * {
	display: block;
	text-align: center;
}
#bag-result .bag-result p {
	font-size: 1.2em;
	margin-top: 20px;
}
#result .result, #result .res-item, #result select, .res-col {
	color: #448302;
	font-weight: bold;
}
#result > #result-buttons, #bag-result-buttons, #summary-buttons {
	position: relative;
	justify-content: right;
	width: 100%;
	display: none;
}
#result > #result-buttons.show, #bag-result-buttons.show, #summary-buttons.show {
	display: flex;
}
#result-buttons button, #bag-result-buttons button, #summary-buttons button {
	color: #2F2F2E;
	margin-left: 20px;
	background: #fff;
}
#result-buttons #summary-jump {
	margin-left: 0;
	margin-right: auto;
}
#result-buttons p, #bag-result-buttons p {
	margin: 1em 0;
}
#result-buttons button:hover, #bag-result-buttons button:hover, #summary-buttons button:hover {
	background: #dff5c9;
}
#summary-container.sum-highlight {
	padding: 10px;
}
#summary {
	display: block; 
	min-height: 125px; 
	text-indent: -14px;
	margin: 4px 0 20px 0; 
	padding: 14px 14px 14px 28px; 
	border: 1px solid #ccc;
}
.copied-alert {
	position: fixed;
	top: calc(50vh - 100px);
	left: calc(50vw - 140px);
	display: none;
	width: 280px;
	height: 200px;
	font-family: "IM Fell DW Pica", Garamond, "Times New Roman", serif;
	font-size: 30px;
	box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5);
	z-index: 100;
}
.copied-alert:before {
	position: fixed;
	display: block;
	content: " ";
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.25);
}
.copied-alert > div {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	background: #fff url(../images/soil-calc/copied-back.jpg) no-repeat 20px 90%;
	background-size: 60%;
	justify-content: center;
	align-items: center;
	padding-bottom: 10px;
	border: 1px solid #7d7d7d;
}
#soil-calculator .copied-close {
	position: absolute;
	top: 20px;
	right: 20px;
}
#summary-buttons {
	justify-content: space-between;
}
#soil-calculator #copy-summary {
	margin-left: 0;
}
@media screen and (min-width: 400px) { 
	#calculator-container {
		padding: 14px; 
	}
	#calc-amount {
		padding: 30px 20px;
	}
	#soil-calculator-form .container-specs {
		padding: 20px 20px 70% 20px;
	}
}
@media screen and (min-width: 500px) { 
	#calc-amount {
		padding: 30px 40px;
	}
	.cont-number > div {
		flex-direction: row;
	}
	#result {
		padding: 0 15px 15px 15px;
	}
	#bag-result, #summary-container.sum-highlight {
		padding: 15px;
	}
	#soil-calculator-form input[type="submit"], #bag-calculator input[type="submit"], #result-buttons button, #bag-result-buttons button, #summary-buttons button {
		font-size: 22px;
		padding: 10px 12px;
	}
	#bag-cost #cont-multiplier {
		margin-top: 0;
	}
}
@media screen and (min-width: 550px) {
	#soil-calculator h2 {
		font-size: 36px;
	}
	#bag-cost .bag-specs {
		display: flex;
		justify-content: space-between;
	}
	.bag-specs div:first-child {
		width: 60%;
		margin-bottom: 10px;
	}
}
@media screen and (min-width: 650px) { 
	#calculator-container {
		padding: 40px; 
	}
	#soil-calculator {
		padding: 124px 40px 80px 40px; 
	}
}