body {
	font-family: 'Open Sans', 'Roboto', 'Lato', 'Raleway', Arial, sans-serif;
}

#calculator {
	width: 100%;
	max-width: 450px;
	height: auto;
	padding: 0 20px;
	background: #ffffff;
	box-shadow: 2px 2px 2px black;
	box-shadow: none;
}

h2, .h2 {
	font-size: 1.85rem;
	font-weight: 700;
	color: #1e4533;
}

h3, .h3 {
	font-size: 1.70rem;
	font-weight: 700;
	color: #1e4533;
}

h4, .h4 {
	font-size: 1.50rem;
	font-weight: 700;
	color: #1e4533;
}

.type1, .type2 {
	display: none;
}

#result {
	display: none;
}

#result label {
	font-weight: bold;
}

/*** Radio Buttons ***/

.radios {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: center;
	margin: 25px 0 30px 0;
}

.radio {
	flex: 0 0 50%;
	width: 50%;
	max-width: 50%;
	display: block;
	margin: 0;
	text-align: center;
}
.radio label {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 15px;
	background: #f5f5f5;
	border: 1px solid #eeeeee;
	font-size: 1.15rem;
	transition: all 0.15s ease-in-out;
}
.radio label:hover {
	cursor: pointer;
	background: #eeeeee;
	border-color: #dddddd;
}

.radio label:hover .radio_circle {
	background: #dddddd;
}
.radio label:hover .radio_check {
	opacity: 0.1;
}
.radio input {
	display: none;
}
.radio .radio_circle {
	display: block;
	display: none;
	position: relative;
	margin: 0 8px 0 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #eeeeee;
	border: 1px solid #cccccc;
}
.radio .radio_circle:before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #888888;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	opacity: 0;
	margin: auto;
	transition: all 0.15s ease-in-out;
}
.radio input:checked + .radio_circle:before {
	opacity: 1;
}

.radio .radio_check {
	display: block;
	width: 22px;
	height: 22px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 10px;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='check-circle' class='svg-inline--fa fa-check-circle fa-w-16' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23a4c035' d='M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z'%3E%3C/path%3E%3C/svg%3E%0A");
	background-size: cover;
	margin: auto;
	opacity: 0;
	transition: all 0.15s ease-in-out;
}
.radio input:checked + .radio_check {
	opacity: 0.75;
}

.radio .radio_indicator {
	display: block;
	width: 16px;
	height: 16px;
	background: #f5f5f5;
	border-right: 1px solid #eeeeee;
	border-bottom: 1px solid #eeeeee;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: -8px auto 0 auto;
	opacity: 0;
	transform: rotate(45deg);
	transition: all 0.15s ease-in-out;
}
.radio input:checked ~ .radio_indicator {
	opacity: 1;
}
.radio label:hover .radio_indicator {
	background: #eeeeee;
	border-color: #dddddd;
}


/*** Form Fields ***/

.form-control,
.custom-select {
	border-radius: 5px;
}
.form-control:focus,
.form-control:active,
.custom-select:focus,
.custom-select:active {
	border-color: #bbbbbb;
	box-shadow: 0 0 0 0.15rem rgba(113, 113, 113, 0.25);
}

.form-group label {
	margin-bottom: 3px;
}

.btn-primary {
	background: #1e4533 !important;
	border-color: #1e4533 !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 auto;
	padding: 10px 30px;
	display: block;
	text-transform: uppercase;
	border-radius: 30px;
	font-weight: bold;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover {
	background: #163326 !important;
	border-color: #163326 !important;
}

.btn-secondary {
	background: #cdd4cf !important;
	border-color: #cdd4cf !important;
	color: #212529 !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 auto;
	padding: 10px 30px;
	display: inline-block;
	border-radius: 30px;
	font-weight: bold;
}

.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:hover {
	background: #b8cc65 !important;
	border-color: #b8cc65 !important;
}

/*** Results ***/

#result {

}
#result:before {

}

#result .result-group {
	background: #dfe6e1;
	border-top: 1px solid #cdd4cf;
	border-top: none;
	margin: 20px 0 20px 0;
	padding: 10px 20px 10px 20px;
	position: relative;
}
#result .result-group:before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	background: #dfe6e1;
	border-top: 1px solid #cdd4cf;
	border-left: 1px solid #cdd4cf;
	border: none !important;
	transform: rotate(45deg);
	position: absolute;
	bottom: 100%;
	left: 0;
	right: 0;
	margin: 0 auto -8px auto;
}

#result .form-group-row {
	position: relative;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin: 0 -20px 10px -20px;
	padding: 0 20px 10px 20px;
	border-bottom: 1px solid #cdd4cf;
}
#result .form-group-row:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border: none;
}

#result .form-group-row label {
	margin: 0 15px 0 0;
	font-weight: normal;
	line-height: 1;
}

#result .form-group-row div {
	font-weight: bold;
	white-space: nowrap;
}

#result .result-group-circles {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	margin: 0 -10px 0 -10px;
}

#result .form-group-circle {
	flex: 0 0 33.33%;
	width: 33.33%;
	max-width: 33.33%;
	padding: 0 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#result .form-group-circle label {
	font-weight: 400;
	font-size: 0.85em;
	margin: 0 0 5px 0;
	line-height: 1;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#result .form-group-circle div {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	font-weight: bold;
	text-align: center;
	line-height: 1;
	padding: 0 5px;
	background: #dfe6e1;
}

/*** Buttons Row ***/

#buttons_row {
	display: none;
	padding: 20px 0;
	margin: 0 0 20px 0;
	border-top: 1px solid #dfe6e1;
	border-bottom: 1px solid #dfe6e1;
}

#buttons_row .btn {
	background: #a4c035 !important;
	border-color: #a4c035 !important;
	color: #1e4533 !important;
	display: block;
	width: 100%;
	text-align: center;
	margin: 0 0 10px 0;
	padding: 10px 20px !important;
	white-space: normal !important;
}
#buttons_row .btn:last-child {
	margin-bottom: 0;
}

#buttons_row .btn:focus,
#buttons_row .btn:active,
#buttons_row .btn:hover {
	background: #82982a !important;
	border-color: #82982a !important;
	color: #000000 !important;
}

/*** Bottom Info ***/

#bottom_info {
	display: none;
	margin: 20px 0 0 0;
	text-align: center;
	font-size: 0.85em;
}

#bottom_info .btn {
	margin-bottom: 10px;
}

/*** Responsive ***/

@media screen and (max-width: 400px) {
	.radio label {
		font-size: 1rem;
	}

	.radio .radio_check {
		width: 18px;
		height: 18px;
	}
}

@media screen and (max-width: 340px) {
	.radio label {
		padding-left: 35px;
	    text-align: left;
	    justify-content: flex-start;
	}

	.radio .radio_check {
		width: 14px;
		height: 14px;
	}
}

@media screen and (max-width: 315px) {
	.radio label {
		padding-left: 10px;
		padding-right: 10px;
	    text-align: center;
	    justify-content: center;
	}

	.radio .radio_check {
		display: none;
	}
}

#note {
	font-size: 12px;
	display:flex;
	font-style: italic;
}

#note span {
	width:15px;
} 