* {
	box-sizing: border-box;
}
body {
	font-family: 'Poppins', sans-serif, Arial;
	font-size: 30px;
	margin: 0;
}
.whitemode {
	color: black;
	background-color: white;
}
#background_div {
	width: 100%;
	height: 100vh;
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background: linear-gradient(120deg, #52e7fe, #44d34a);
	position: fixed;
	left: 0;
	right: 0;
	z-index: -1;
	display: block;
}
.whitemode #background_div {
	background: white;
}
div.content {
	margin: 0;
	padding: 10px;
}
header > h1 {
	font-size: 2.5em;
	margin: 2px;
	color: #3d4293;
	text-decoration: underline;
	text-decoration-skip-ink: none;
	font-family: 'Pacifico';
	font-weight: 400;
}
.whitemode h1 {
	color: black;
	background-color: white;
}
header {
	text-align: center;
	margin: 10px;
}
main {
	width: 100%;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	padding: 5px;
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	justify-content: center;
}
div.calculator {
	text-align: left;
	margin: 1.3em;
	border: 5px solid #3d4293;
	padding: 10px;
	background-color: #39aac2;
	color: #3d4293;
	font-size: 1.7rem;
	line-height: 2em;
	border-radius: 7px;
	text-align: center;
	flex-basis: 20em;
}
.whitemode div.calculator {
	color: black;
	background-color: white;
}
div.calculator > h2 {
	text-align: center;
	color: #3d4293;
	font-size: 1.5em;
	margin: 25px 0 10px 0;
	font-weight: 800;
	font-family: 'Poppins', sans-serif, 'Roboto Mono', monospace, Arial;
	letter-spacing: 3px;
	line-height: 1.1em;
	word-wrap: break-word;
}
.whitemode div.calculator h2 {
	color: black;
	background-color: white;
}
form.calc input, form.calc select {
	background-color: #48c2e2;
	color: #3d4293;
	border: 2px solid #7070d8;
	border-radius: 5px;
	font-size: 0.8em;
	padding: 10px;
	outline: none;
	font-family: 'Roboto Mono', monospace, Arial;
}
.whitemode form.calc input, .whitemode form.calc select {
	color: black;
	background-color: white;
}
.whitemode form.calc {
	color: black;
	background-color: white;
}
form.calc input:not([type="checkbox"]):focus, form.calc select:focus {
	-webkit-box-shadow: 0px 0px 10px 5px #48c2e2e6;
	-moz-box-shadow: 0px 0px 10px 5px #48c2e2e6;
	box-shadow: 0px 0px 10px 5px #48c2e2e6;
	background-color: #1893b3;
	color: white;
}
.whitemode form.calc input:not([type="checkbox"]):focus, .whitemode form.calc select:focus {
	color: black;
	background-color: white;
}
form.calc input:not([type="checkbox"]) {
	width: 110px;
}
form.calc select {
	max-width: 95%;
}
form.calc input[type="button"] {
	width: 200px;
	background-color: #7074d8;
	color: white;
	cursor: pointer;
	letter-spacing: 5px;
	border: 2px solid #3d4293;
	display: block;
	margin-left: auto;
	margin-right: auto;
	font-family: 'Roboto Mono', monospace, Arial;
	letter-spacing: 1px;
	margin-top: 20px;
}
form.calc input[type="button"]:hover {
	background-color: #3d4293;
}
button {
	background-color: #7074d8;
	color: #332e2b;
	border: 2px solid #b51919;
	border-radius: 5px;
	padding: 10px;
	outline: none;
	width: 200px;
	background-color: 7074d8;
	color: white;
	cursor: pointer;
	letter-spacing: 2px;
	border: 2px solid #3d4293;
	margin-left: auto;
	margin-right: auto;
	font-size: 0.5em;
	font-family: 'Roboto Mono', monospace, Arial;
	letter-spacing: 1px;
}
.whitemode button {
	color: black;
	background-color: white;
}
div.calculator button {
	display: none;
}
div.calculator button:hover {
	background-color: #3d4293;
}
.whitemode button:hover {
	color: black;
	background-color: white;
}
.calc > ul {
	list-style-type: none;
	line-height: 50px;
	margin: 10px 0;
	padding: 0;
}
.calculator > ol, .calculator > p {
	line-height: 30px;
	margin-left: 50px;
	margin-right: 50px;
}
::selection {
	background: #7074d8db;
	color: white;
}
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	background-color: #48c2e2;
	background-color: rgba(0,0,0,0.4);
}
.modal-content {
	background-color: #3d4293;
	margin: auto;
	padding: 0;
	border: 5px solid #3d4293;
	border-radius: 5px;
	width: 80%;
	height: auto;
	max-height: 80%;
	box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
	-webkit-animation-name: animatetop;
	-webkit-animation-duration: 0.4s;
	animation-name: animatetop;
	animation-duration: 0.4s;
	position: absolute;
	margin-top: 50px;
	margin-bottom: 50px;
	top: 40%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
}

@-webkit-keyframes animatetop {
	from {middle:-300px; opacity:0} 
	to {middle:0; opacity:1}
}

@keyframes animatetop {
	from {top:-300px; opacity:0}
	to {middle:0; opacity:1}
}
.closeModal {
	color: white;
	font-size: 50px;
	font-weight: bold;
	position: absolute;
	right: 0;
	margin-right: 10px;
}
.closeModal:hover, .closeModal:focus {
	color: #39aac2;
	text-decoration: none;
	cursor: pointer;
}
.modal-header {
	padding: 10px 16px;
	background-color: #3d4293;
	color: white;
	text-align: center;
	height: 70px;
	position: relative;
}
.modal-header > h2 {
	margin: 0;
	font-size: 1.4em;
	letter-spacing: 5px;
}
.modal-body {
	padding: 16px;
	padding-bottom: 10px;
	color: #353030;
	max-height: 70vh;
	overflow: auto;
	background-color: #fefefe;
	width: 100%;
}
.modal-body h3 {
	font-size: 1.3em;
	margin-top: 15px;
	margin-bottom: 15px;
}
.modal-body > p, .modal-body > ol {
	margin-top: 5px;
	margin-bottom: 5px;
}
.modal-body > ol {
	margin-left: 5px;
	margin-right: 5px;
	padding-left: 0;
	list-style-position: inside;
}
.modal-body > ol.roman {
	list-style-type: upper-roman;
}
.modal-body > ol > li {
	margin-top: 10px;
	margin-bottom: 10px;
}
footer {
	text-align: center;
}
footer > p {
	margin: 7px 0;
}
p.author {
	font-size: 0.9em;
	font-style: italic;
	margin: 10px 0;
}
.numb {
	font-family: "Roboto Mono", monospace, Arial;
}
.modal-body ol li .numb {
	background-color: lightgray;
}
a {
	color: #3d4293;
}
a.mailto {
	color: black;
	text-decoration: none;
}
a:hover {
	color: #39aac2;
	cursor: pointer;
}
.calcOutput {
	text-align: left;
	list-style-position: inside;
	list-style-type: "\2794";
}
.countInstructions {
	font-style: italic;
	font-size: 0.8em;
	padding-left: 50px;
}
.no_padding {
	padding: 0;
}
.colNumb {
	color: #332e2b;
}
@media screen and (max-width: 768px) {
	main {
		display: flex;
	}
	div.calculator {
		min-width: 100%;
		margin: 1em 0.1em;
	}
	div.popup {
		padding: 0;
		margin: 0;
		height: 100vh;
	}
	#modal-title {
		font-size: 0.6em;
	}
	.modal-content {
		margin: 0;
		border: 0;
		font-size: 0.7em;
		width: 100%;
	}
	.modal-body {
		max-height: 90vh;
	}
}