*,
*::before,
*::after {
  margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
}

div.span-parent-metric {
  font-size: 0;
}

div.span-parent-metric span {
  display: inline-block;
  font-size: 16px;
}

div.span-parent-imperial {
  font-size: 0;
}

div.span-parent-imperial span {
  display: inline-block;
  font-size: 16px;
}

.main {
	background-color: white;
	padding: 18px;
}

.dropdown-container {
  display: flex;
  flex-direction: column;
}

.dropdown-inline {
  width: 100%;

}

@media screen and (min-width: 640px) {
  .dropdown-container {
    display: flex;
    flex-direction: column;
  }

  .container {
		padding: 0 12px;
		max-width: 1000px;
		margin: 0 auto;
	}
}

td > label {
	font-size: 14px;
}

option {
  height: 100%;
	width: 100%;
	padding: 10px;
}

input[type=number],
select {
	border: none;
	border-bottom: 2px #252525 solid;
	height: 100%;
	width: 100%;
	padding: 10px;
  text-overflow: ellipsis;
}

input:focus {
	border-bottom: 3px #2859d5 solid;
}

input::placeholder {
	color: #dd363bed;
	font-size: 12px;
}

button {
	margin-top: 10px;
	background-color: #030a1b;
	color: white;
	border: 2px black solid;
	border-radius: 22px;
	padding: 5px 20px;
	font-size: 16px;
}

button:hover {
	background-color: white;
	color: #2859d5;
	transition: ease-in 200ms;
}

button:focus {
	background-color: white;
	color: #2859d5;
	transition: ease-in 200ms;
}

button:disabled,
button[disabled]{
  background-color: #cccccc;
  color: #666666;
}

.calculator-table {
	width: 100%;
}

table,
tr,
td {
	border-collapse: collapse;
	padding: 10px 10px 0px;
}

thead {
	background-color: #3E3E3E;
	color: white;
	font-size: 12px;
}

th {
	padding: 10px;
}

tr > td:nth-last-child(1) {
	max-width: 200px;
}

.form-container {
	padding: 3px;
	background-color: #fbfbfb;
	max-width: 550px;
}

.button-container {
	display: flex;
	justify-content: right;
	max-width: 550px;
	margin: 10px 0;
}

.button-container > button {
	margin-left: 10px;
}

#calculator-result {
	font-size: 16px;
}

@media screen and (max-width: 400px) {
	#conversionInputs {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
}