* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}

.container {
	width: 600px;
	margin: 30px auto;
}

.container h1 {
	text-align: center;
	margin: 5px auto;
	font-size: 32px;
}

.controls {
	margin: 0 auto;
	margin-top: 20px;
	margin-bottom: 10px;
	width: 400px;
}

#calculator {
	margin: 30px auto;
}

#calculator fieldset {
	box-sizing: border-box;
	border-radius: 5px;
	border: 1px solid #dee2e6;
	padding: 7px 12px;
	font-size: 16px;
}

legend {
	font-weight: bold;
	font-size: 18px;
}

fieldset {
	margin-top: 10px;
}

fieldset div {
	margin: 5px 0;
}

.legend {
	font-weight: bold;
	font-size: 18px;
}

.section {
	font-weight: bold;
	font-size: 16px;
}

input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	margin: 0;
	margin-right: 10px;
	font: inherit;
	color: currentColor;
	height: 16px;
	width: 16px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	cursor: pointer;
}

input[type="checkbox"]:checked {
	border-color: #3461eb;
	background-color: #3461eb;
}

input[type="checkbox"]:checked::after {
	content: "";
	display: block;
	width: 3px;
	height: 7px;
	margin: 0.12em 0 0 0.28em;
	border: solid #fff;
	border-width: 0 0.15em 0.15em 0;
	transform: rotate(45deg);
}

input[type="checkbox"][disabled]:checked {
	border-color: gray;
	background-color: gray;
	cursor: auto;
	opacity: 1;
}

.flex-container {
	display: flex;
	justify-content: space-between;
}

.flex-container > fieldset{
	display: flex;
	justify-content: center;
}

.vertical {
	text-align: center;
	flex-direction: column;
	margin: 0;
}

.vertical .number-input {
	margin-right: 0;
	border-radius: 20px;
	height: 26px;
	width: 72px;
	margin-top: 5px;
	
	input[type="number"] {
		height: 24px;
		width: 24px;
		padding: 2px;
		font-size: 18px;
	}
	
	button {
		width: 24px;
		height: 24px;
	}

}

.short {
	width: 400px;
	margin: 0 auto;
}

.bold {
	font-weight: bold;
}

#displayResult,
#displayMissing,
#displayDamageLoss,
#displayCap,
#critRate,
input[type="text"][disabled],
.result,
.result div {
	border: none;
	text-align: center;
	font-size: 20px;
	font-family: sans-serif;
	color: inherit;
	opacity: 1;
	background: none;
}

#displayResult {
	width: 60px;
}

#displayMissing {
	width: 100px;
}

#displayCap {
	width: 60px;
}

#displayDamageLoss {
	width: 80px;
}

#critRate {
	width: 50px;
	font-size: 16px;
	text-align: left;
	padding: 0 5px;
}

#critRateDiv {
	position: relative;
	margin-right: 0;
	margin-top: 10px;
}

#critRateDiv:after {
	content: '%';
	display: inline-block;
	position: absolute;
  top: -1px;
  right: 20px;
  font-size: 16px;
	}

.source {
	display: flex;
	justify-content: space-between;
}

.source span {
	padding-top: 5px;
}

.medium {
	width: 500px;
	justify-content: flex-start;
}

.result-legend {
	text-align: center;
	margin-top: 10px;
	font-size: 16px;
	font-weight: bold;
}

.result-legend div {
	padding-bottom: 5px;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #dee2e6;
	margin: 1em 0;
	padding: 0;
}

.number-input {
	border: 1px solid #dee2e6;
	display: inline-flex;
	border-radius: 10px;
	height: 18px;
	margin: 0;
	margin-right: 10px;
	
	&, * { box-sizing: border-box; }
	
	input[type="number"] {
		-webkit-appearance: textfield;
		-moz-appearance: textfield;
		appearance: textfield;
		font-family: sans-serif;
		margin: 0;
		border:0;
		text-align: center;
		outline:none;
		height: 16px;
		width: 20px;
		padding: 2px;
		font-size: 14px;

		&::-webkit-inner-spin-button, &::-webkit-outer-spin-button{
			-webkit-appearance: none;
		}
	}

	input[type="number"][disabled] {
		color: lightgray;
		opacity: 1;
	}
	
	button {
		outline:none;
		-webkit-appearance: none;
		background-color: #f5f5f5;
		border: none;
		align-items: center;
		justify-content: center;
		width: 16px;
		height: 16px;
		margin: 0;
		position: relative;
		padding: 0;
		border-radius: 50%;
	}

	button:enabled {
		cursor: pointer;
	}

	button:hover:enabled {
		background-color: #dfdfdf;
	}

	button:active:enabled {
		background-color: #b0b0b0;
	}
	
	button:before, button:after {
		display: inline-block;
		position: absolute;
		content: '';
		width: 0.5rem;
		height: 2px;
		background-color: #212529;
		transform: translate(-50%, -50%);
	}
	button:disabled:before, button:disabled:after {
		background-color: lightgray;
	}
	button.plus:after {
		transform: translate(-50%, -50%) rotate(90deg);
	}
}  

.big {
	border-radius: 50px;
	height: 26px;
	margin-top: 4px;
	margin-bottom: 10px;
	margin-right: 0px;
	
	input[type="number"] {
		position: relative;
		height: 24px;
		width: 20px;
		padding: 2px;
		font-size: 20px;
	}
	
	button {
		width: 24px;
		height: 24px;
	}
}

.green {
	color: #20b044;
}

.red {
	color: #eb4634;
}

.blue {
	color: #3461eb;
}

#Heavy, #Medium, #Light {
	margin-top: 0;
	padding-top: 0;
}

.form-control {
	display: grid;
	grid-template-columns: 1em auto;
	gap: 0.5em;
}

input[type="radio"] {
	/* Add if not using autoprefixer */
	-webkit-appearance: none;
	/* Remove most all native input styles */
	appearance: none;
	/* For iOS < 15 */
	background-color: none;
	/* Not removed via appearance */
	margin: 0;

	font: inherit;
	color: inhert;
	width: 16px;
	height: 16px;
	border: 2px solid black;
	border-radius: 50%;
	transform: translateY(-0.075em);

	display: grid;
	place-content: center;
	cursor: pointer;
}

input[type="radio"][disabled] {
	cursor: auto;
	opacity: 0.25;
}

input[type="radio"]::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	transform: scale(0);
	transition: 120ms transform ease-in-out;
	box-shadow: inset 16px 16px #3461eb;
	/* Windows High Contrast Mode */
	background-color: CanvasText;
}

input[type="radio"]:checked::before {
	transform: scale(1);
}

.tooltip {
	display: inline-block;
	position: relative;
	height: 28px;
	width: 28px;
}

.tooltip svg {
	vertical-align: middle;
}

.tooltip:hover svg path {
	fill: #3461eb;
}

.tooltip:hover {
	cursor: pointer;
}

.tooltip:hover:before,
.tooltip:hover:after {
	opacity: 1;
	transform: translateY(0) translateX(-50%);
}

.tooltip:before {
	border-color: #222 rgb(0, 0, 0, 0);
	border-style: solid;
	border-width: 0 5px 5px;
	bottom: -15px;
	content: "";
	display: block;
	left: 50%;
	opacity: 0;
	position: absolute;
	width: 0;
	transform: translateY(-10px) translateX(-50%);
	transition: all 300ms ease;
}

.tooltip:after {
	content: attr(tooltip);
	bottom: -43px;
	height: 18px;
	left: 50%;
	padding: 5px 10px 5px 10px;
	border-radius: 4px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	background-color: #000000;
	color: #ffffff;
	transform: translateY(-10px) translateX(-50%);
	transition: all 300ms ease;
	text-align: center;
}

.announcement, .warning {
	text-align: center;
	margin: 5px auto;
	border-radius: 5px;
	padding: 5px;
	font-size: 14px;
	font-weight: normal;
}

.announcement {
	background: rgb(187, 247, 208);
	border: 1px solid rgb(32, 176, 68);
	color: rgb(21, 128, 61);
}

.warning {
	position: relative;
	background: rgb(247, 187, 208);
	border: 1px solid rgb(235, 70, 52);
	color: rgb(128, 21, 61);
}

.x {
	width: 16px;
	height: 16px;
	display: inline-block;
	position: absolute;
	right: 10px;
	top: 5px;
}
.x:before,
.x:after {
  position: absolute;
  content: ' ';
  height: 16px;
  width: 2px;
  background-color: #333;
}
.x:before {
  transform: rotate(45deg);
}
.x:after {
  transform: rotate(-45deg);
}
.x:hover {
	cursor: pointer;
}

.disabled {
	color: lightgray;
}

#time {
	font-weight: bold;
}

.wrapper-dropdown {
	width: 100px;
  position: relative;
  display: inline-block;
  padding: 0;
  margin: 0;
  margin-top: 5px;
  background: #1c2028;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: Arial;
  vertical-align: middle;
}

.scrollable-menu {
  height: auto;
  overflow-x: hidden;
}

.arrow {
	content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
	height: 12px;
	width: 12px;
	float: right;
	margin-top: 7px;
	rotate: -180deg;
}

.selected-display {
	display: inline-flex;
	align-items: center;
	background-color: #f3f4f7;
	font-size: 14px;
	padding: 3px 8px;
	border-radius: 5px;
}

.rotated {
  transform: rotate(-180deg);
}

.wrapper-dropdown .dropdown {
  position: absolute;
  bottom: 40px;
  width: 100px;
  list-style: none;
  z-index: 99;
  box-shadow: inherit;
  background: white;
  -webkit-transform-origin: top;
  -moz-transform-origin: top;
  -ms-transform-origin: top;
  transform-origin: top;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.wrapper-dropdown .dropdown li {
  padding: 10px 5px;
  overflow: hidden;
  font-size: 16px;
}

.wrapper-dropdown .dropdown li:last-child {
  border-bottom: none;
}

.dropdown {
  padding: 5px;
}

.wrapper-dropdown .dropdown li:hover {
  background: #f3f4f7;
  border-radius: 5px;
}

.wrapper-dropdown.active .dropdown {
  opacity: 1;
  visibility: visible;
}